Recherche avancée

Médias (91)

Autres articles (78)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (11935)

  • ffmpeg amerge prefer longest audio track

    4 décembre 2013, par Adam Chance

    I'm trying to combine two audio tracks in ffmpeg with amerge, but it is only as long as the shortest feature. The ffmpeg wiki says that this is the behaviour of the amerge filter, but I need the output to be as long as the longest audio track. The code I'm using is

    ffmpeg -i audio.flac -i song.flac -filter_complex amerge -acodec mp2 -b:a 128k audiotrack.mp2

    Console output :

       ffmpeg version N-58688-gc46ab34 Copyright (c) 2000-2013 the FFmpeg developers
       built on Dec  1 2013 14:39:22 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
       configuration: --enable-outdev=alsa --enable-indev=alsa --enable-gpl --enable-x11grab --enable-libpulse --enable-libopus --enable-libvorbis --enable-libtheora --enable-pthreads
       libavutil      52. 56.100 / 52. 56.100
       libavcodec     55. 44.100 / 55. 44.100
       libavformat    55. 22.100 / 55. 22.100
       libavdevice    55.  5.102 / 55.  5.102
       libavfilter     3. 91.100 /  3. 91.100
       libswscale      2.  5.101 /  2.  5.101
       libswresample   0. 17.104 /  0. 17.104
       libpostproc    52.  3.100 / 52.  3.100
       Input #0, flac, from 'audio.flac':
       Metadata:
       ENCODER         : Lavf55.22.100
       Duration: 00:00:04.14, bitrate: 172 kb/s
       Stream #0:0: Audio: flac, 16000 Hz, mono, s16
       Input #1, flac, from 'song.flac':
       Duration: 00:07:38.04, bitrate: 676 kb/s
       Stream #1:0: Audio: flac, 44100 Hz, stereo, s16
       Stream #1:1: Video: mjpeg, yuvj444p(pc), 500x500 [SAR 28:28 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
       Metadata:
       comment         : Cover (front)
       File 'audiotrack.mp2' already exists. Overwrite ? [y/N] y
       [Parsed_amerge_0 @ 0x317f580] No channel layout for input 1
       Output #0, mp2, to 'audiotrack.mp2':
       Metadata:
       encoder         : Lavf55.22.100
       Stream #0:0: Audio: mp2, 16000 Hz, stereo, s16, 128 kb/s (default)
       Stream mapping:
       Stream #0:0 (flac) -> amerge:in0
       Stream #1:0 (flac) -> amerge:in1
       amerge -> Stream #0:0 (mp2)
       Press [q] to stop, [?] for help
       size=      65kB time=00:00:04.14 bitrate= 128.9kbits/s
  • Discord.py ffprobe/avprobe and ffmpeg/avconv not found error

    20 juillet 2021, par Exd Craft

    Im hosting this discord bot using android device and the bot is used to play music using youtube_dl module, and when i launch the play music command, i got and error where ffprobe/avprobe and ffmpeg/avconv not found. I know how to solve this problem in pc but im still dont know how to fix this on android. For the test here, im using a music from soundcloud since its more faster to download the music.

    


    Here's the error message on the terminal

    


    Logged in as Test Bot#6599\
[soundcloud] user-785177525/yoasobi-yoru-ni-kakeru-x-l-a-b-remix: Downloading info JSON\
[soundcloud] None: Downloading webpage\
[soundcloud] None: Downloading webpage\
[soundcloud] user-785177525/yoasobi-yoru-ni-kakeru-x-l-a-b-remix: Downloading info JSON\
[soundcloud] 895894084: Downloading JSON metadata\
[soundcloud] 895894084: Downloading JSON metadata\
[soundcloud] 895894084: Downloading JSON metadata\
[download] Destination: YOASOBI - Yoru ni Kakeru [x l a b. Remix]-895894084.mp3\
[download] 100% of 3.60MiB in 00:03\
ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.


    


    Here's the sample code for the play music command

    


    

    

         @client.command()
     async def playsc(ctx, url : str, *, message):
         song_there = os.path.isfile("song.mp3")
         try:
             if song_there:
                 os.remove("song.mp3")
         except PermissionError:
             em8 = discord.Embed(title = "Music Is Currently Playing", description = 'Please wait for the current playing music to end or use %leave <:_Paimon6:827074349450133524>.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
             await ctx.send(embed = em8)
             return

         voiceChannel = discord.utils.get(ctx.guild.voice_channels, name=message)
         await voiceChannel.connect()
         voice = discord.utils.get(client.voice_clients, guild=ctx.guild)
         em6 = discord.Embed(title = "Downloading Soundcloud Music", description = f'{url}\n\nPlease wait for paimon to setup the music you provide.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
         await ctx.send(embed = em6, delete_after = 2)
         await ctx.message.delete()

         ydl_opts = {
             'format': 'bestaudio/best',
             'postprocessors': [{
                 'key': 'FFmpegExtractAudio',
                 'preferredcodec': 'mp3',
                 'preferredquality': '192',
             }],
         }
         with youtube_dl.YoutubeDL(ydl_opts) as ydl:
             ydl.download([url])
         for file in os.listdir("./"):
             if file.endswith(".mp3"):
                 os.rename(file, "song.mp3")
         voice.play(discord.FFmpegPCMAudio("song.mp3"))
        
         em1 = discord.Embed(title = "Now Listening Soundcloud Music", description = f'{url}\n\nPlease use %leave first to change music.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
         await ctx.send(embed = em1)

    


    


    



  • lavfi/colorspace : move some functions to common file

    22 janvier 2019, par Ruiling Song
    lavfi/colorspace : move some functions to common file
    

    These functions can be reused by other colorspace filters,
    so move them to common file. No functional changes.

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>

    • [DH] libavfilter/colorspace.c
    • [DH] libavfilter/colorspace.h
    • [DH] libavfilter/vf_colorspace.c