Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (8)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (4672)

  • Discord bot not playing any audio and immediately terminates once joined channel (Python)

    28 novembre 2024, par MrPwnageLegend

    I am trying to create a small discord bot for me and my friends. Currently, I tried several examples online for a music bot using ffmpeg. I added the path to environment variables as well. I simplified the code to make it easier to debug. Below is the code :

    


    voice_client = await msg.author.voice.channel.connect()
print(voice_client.is_playing())
FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5','options': '-vn'}
voice_client.play(discord.FFmpegPCMAudio(source="test.mp3", **FFMPEG_OPTIONS))


    


    The moment the bot enters the channel, it displays this on the terminal and nothing else happens :
discord.player ffmpeg process 18792 successfully terminated with return code of 2880417800

    


    I originally tried Youtube videos, but that did not work. So, I tried local files, and that did not work as well. Tried bypassing the ffmpeg path using executable = "C:\\ffmpeg\\ffmpeg.exe", still the same error. Is there some other reasons for the error such as firewalls etc ? I have set the intents to all(). Could that be a problem as well ?

    


  • My discord bot (python) isn't connecting to voice channel

    24 juin 2023, par BeanieYi

    My discord bot for some reason is not connecting to my voice channel when I type
 !play some url ... My bot is running because I've ran other tests on it. No error messages show up, so I'm lost as to why it's not working. This is the part of the code where it commands to bot to connect

    


        async def play_song(self, ctx):
        """
        Function plays music. Checks if user in voice channel
        """
        if len(self.queue) > 0:
            self.play = True
            url = self.queue[0][0]["source"]

            if self.vc is None or not self.vc.is_connected():   # If not in voice channel
                self.vc = await self.queue[0][1].connect()  # Wait until user joins channel
                if self.vc == None: # If user doesn't join channel, quit
                    await ctx.send("Could not connect D:")
                    return  
            else:
                await self.vc.move_to(self.queue[0][1]) # Moves bot to channel user is in

            self.queue.pop(0) 
            self.vc.play(discord.FfmpegPCMAudio(url, **self.ffmpeg_options), after=lambda e: self.next_song()) 
        else:
            self.play = False


    


    I added the following code below because this was the "new" method for cog, but it didn't yield any results for me. I also made sure my bot had permission on Discord to join channels and talk.

    


    async def setup(bot):
    await bot.add_cog(Event(bot))


    


  • Adding background audio in FFMPEG, but quieting it if there is sound in another channel

    9 septembre 2021, par Connor Bell

    I'm appending several videos together with FFMPEG. Some of these videos have accompanying audio, and some do not.

    


    I'd like to add music in the background, and have found out how to do so from here. However, I'd like the background music to be (let's say 80%) quieter if there is already audio in that video. Note that all videos have a null audio track, so just checking for the existence of an audio track isn't sufficient.

    


    My current process is :

    


      

    • Take source videos, add a null audio source and upscale (The null audio source is required for ffmpeg-concat to work due to a bug, I think)
    • 


    • Combine the videos using ffmpeg-concat
    • 


    


    Preferably, adding the background music should be the third step, as splitting the background music prior to combining the videos sounds more complex, but I may be wrong.