Recherche avancée

Médias (1)

Mot : - Tags -/publishing

Autres articles (29)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • 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 (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (7449)

  • 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