Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (33)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (5955)

  • lavfi/vf_avgblur_opencl : remove useless clFinish().

    3 juillet 2018, par Ruiling Song
    lavfi/vf_avgblur_opencl : remove useless clFinish().
    

    The very last clFinish() should be ok.

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>
    Reviewed-by : Danil Iashchenko <danyaschenko@gmail.com>

    • [DH] libavfilter/vf_avgblur_opencl.c
  • FFmpegPCMAudio not playing in discord no error

    9 mars 2023, par Anton Abboud

    Okey, it might be something obvious that ive missed but i really can't find the issue. I am currently making a discord-music-bot which has worked fine before. However as soon as i moved over to yt-dlp from youtube-dl (due to an error with youtube-dl) FFmpegPCMAudio doesn't play the music. It read through the code like normal but it simply doesn't play the sound. It even downloads the music from youtube so I am a bit confused. Here is what my code looks like :

    &#xA;

    class music_cog(commands.Cog):&#xA;    &#xA;     #Searching the keyword on youtube&#xA;    def search_yt(self, item):&#xA;        with yt_dlp.YoutubeDL(self.YDL_OPTIONS) as ydl:&#xA;            try: &#xA;                info = ydl.extract_info("ytsearch:%s" % item, download=False)[&#x27;entries&#x27;][0]&#xA;            except Exception: &#xA;                return False&#xA;&#xA;        return {&#x27;source&#x27;: info[&#x27;formats&#x27;][0][&#x27;url&#x27;], &#x27;title&#x27;: info[&#x27;title&#x27;]}&#xA;&#xA;    def play_next(self):&#xA;        if len(self.music_queue) > 0:&#xA;            self.is_playing = True&#xA;&#xA;            &#xA;            #Get the first url&#xA;            my_url = self.music_queue[0][0][&#x27;source&#x27;]&#xA;&#xA;            global current_song_title&#xA;            current_song_title = self.music_queue[0][0][&#x27;title&#x27;]&#xA;&#xA;            #Remove the first song in queue as you are currently playing it&#xA;            self.music_queue.pop(0)&#xA;&#xA;            self.vc.play(nextcord.FFmpegPCMAudio(my_url, **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())&#xA;        else:&#xA;            self.is_playing = False&#xA;&#xA;    # Infinite loop checking if there is a song in queue&#xA;    async def play_music(self, ctx):&#xA;        if len(self.music_queue) > 0:&#xA;            self.is_playing = True&#xA;            my_url = self.music_queue[0][0][&#x27;source&#x27;]&#xA;            &#xA;            global current_song_title&#xA;            current_song_title = self.music_queue[0][0][&#x27;title&#x27;]&#xA;            &#xA;            #Try to connect to voice channel if bot is not already connected&#xA;            if self.vc == None or not self.vc.is_connected():&#xA;                self.vc = await self.music_queue[0][1].connect()&#xA;&#xA;                #In case the bot fails to connect&#xA;                if self.vc == None:&#xA;                    await ctx.send("Could not connect to the voice channel")&#xA;                    return&#xA;            else:&#xA;                await self.vc.move_to(self.music_queue[0][1])&#xA;            &#xA;            self.music_queue.pop(0)&#xA;            print("hello")&#xA;            self.vc.play(nextcord.FFmpegPCMAudio(my_url, **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())&#xA;            &#xA;        else:&#xA;            self.is_playing = False&#xA;&#xA;    @commands.command(name="play", aliases=["p"], help="Plays a selected song from youtube")&#xA;    async def play(self, ctx, *args):&#xA;        query = " ".join(args)&#xA;        &#xA;        if ctx.author.voice is None:&#xA;            #User needs to be connected so that the bot knows where to go&#xA;            await ctx.send("Connect to a voice channel!")&#xA;        &#xA;        elif self.is_paused:&#xA;            self.vc.resume()&#xA;        &#xA;        else:&#xA;            global song&#xA;            song = self.search_yt(query)&#xA;            if type(song) == type(True):&#xA;                #In case the song is not able to download&#xA;                await ctx.send("Could not download the song. Incorrect format try another keyword. This could be due to playlist or a livestream format.")&#xA;            else:&#xA;                await ctx.send(f"{song[&#x27;title&#x27;]} added to the queue, and gets played if nothing else is in the queue or currently playing")&#xA;                voice_channel = ctx.author.voice.channel&#xA;                self.music_queue.append([song, voice_channel])&#xA;                &#xA;                if self.is_playing == False:&#xA;                    await self.play_music(ctx)&#xA;

    &#xA;

    I have tried searching on how to use FFmpeg even though I have made it work before. but I haven't found anything of use. I wanted to convert back to youtube-dl but realized that it still won't work because of an issue in thier code. I can't really try anything else since im not getting an error. The terminal displays :

    &#xA;

    [youtube:search] Extracting URL: ytsearch:heh &#xA;[download] Downloading playlist: heh &#xA;[youtube:search] query "heh": Downloading web client config&#xA;[youtube:search] query "heh" page 1: Downloading API JSON &#xA;[youtube:search] Playlist heh: Downloading 1 items of 1 &#xA;[download] Downloading item 1 of 1&#xA;[youtube] Extracting URL: https://www.youtube.com/watch?v=8EhaZG7i9Bk&#xA;[youtube] 8EhaZG7i9Bk: Downloading webpage&#xA;[youtube] 8EhaZG7i9Bk: Downloading android player API JSON &#xA;[download] Finished downloading playlist: heh &#xA;hello&#xA;

    &#xA;

    I used "heh" as an example searchword and "hello" to check if the code actually read what it where it is supposed to play the audio.

    &#xA;

    Please help !

    &#xA;

  • FFmpeg Matching decibel level between two audio tracks when mixing ?

    9 août 2022, par JohnWick

    I have a collection of mp3 files for various frequencies (i.e. 528hz). I also have a collection of mp3's of ambient background music. So here is the scenario :

    &#xA;

    I am mixing the tone frequency mp3's with the music mp3's. This works great using the amix filter, no problem. However, some of the ambient music is quiet, which makes the tones sound overpowering. Conversely, some of the ambient music is also fairly loud, making the tones inaudible.

    &#xA;

    It seems to me, the solution would be to adjust the volume of the tone to match the decibel level of the associated music track. How can this be done programmatically ? Perhaps parsing the output of a ffprobe call, but at that point I wouldn't quite be sure how to proceed towards my goal. I figured reaching out on Super User might save me a ton of pain, by turning to more experienced ffmpeg users. Maybe my approach is also flawed, and would be happy if someone can suggest a better method to achieve what I am looking for.

    &#xA;

    Here is my python code so far.

    &#xA;

    import ffmpeg&#xA;import os&#xA;&#xA;tones = os.listdir(&#x27;tones&#x27;)&#xA;songs = os.listdir(&#x27;music&#x27;)&#xA;&#xA;for tone in tones:&#xA;    for song in songs:&#xA;        tone_in = ffmpeg.input(f&#x27;tones/{tone}&#x27;, stream_loop=-1)&#xA;        music_in = ffmpeg.input(f&#x27;music/{song}&#x27;)&#xA;        mixed = ffmpeg.filter([tone_in, music_in], &#x27;amix&#x27;, inputs=2, duration=&#x27;shortest&#x27;)&#xA;        out = ffmpeg.output(mixed, f&#x27;output/{tone} {song}.mp3&#x27;)&#xA;        out.run()&#xA;

    &#xA;