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 YouTube Live Too Fast

    6 avril 2017, par Liam Martens

    So I am streaming video and audio to YouTube as follows

    THE CONTEXT

    1. First I convert a graphic GIF to an MP4 file

    ffmpeg -f gif -i graphic.gif -c:v libx264 -pix_fmt yuv420p -vf scale=1280:-1 temp.mp4

    2. Then I overlay a PNG with text over the MP4

    ffmpeg -i temp.mp4 -i overlay.png -filter_complex "overlay=10:10" '.$graphicsPath.'/graphic.mp4

    3. Then I start the stream the video and combine it with audio using following code (sources.txt is just a concat list *)

    ffmpeg -f concat -i sources.txt -i music.mp3 \
       -c:v libx264 -c:a aac -shortest -deinterlace \
       -pix_fmt yuv420p -preset '.$encoding.' -r 30 -g 60 -b:v 2500k \
       -acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 \
       -maxrate 800k -bufsize 1400k \
       -f flv rtmp://a.rtmp.youtube.com/live2/KEY

    4. After the stream ends, the code starts over again with a new song to mimic a 247 stream.

    THE ISSUE

    So the issue I am having is that it appears to be streaming too fast. It’s like the opposite of buffering issues where the buffer is way too long (as in a full song buffered by the time the first one has finished if you open the stream)

    Does anyone know how I could throttle the output ? I have tried with maxrate and bufsize but no real result.

    * sources.txt example
    file ’graphic.mp4’
    file ’graphic.mp4’
    file ’graphic.mp4’
    file ’graphic.mp4’
    file ’graphic.mp4’
    file ’graphic.mp4’
    and so on

  • Batch File : How can I make input videos to be sequentially named in same loop

    2 décembre 2022, par Ionut Bejinariu

    I end up with the code in this form.

    


    the first ffmpeg .. its working alone but not inside the second For 
that's why I made a second one, also I did this because I need to increment the Videos-*
to be be Videos-1.mp4, Videos-2.mp4 ... Videos-99.mp4 , all the videos are in %videodir% named like this.

    


    I tried also "%videodir%\Videos-%d.mp4" also "%videodir%\*.mp4" for videos to be sequentially named loop after loop, but not worked for me.

    


    @echo off
setlocal enabledelayedexpansion
 
set "musicdir=F:\MONTAJ VIDEO\video-simplu\MUZICA-wav-mp3"  
set "videodir=F:\LUCRU-VIDEO\primele-15sec"  
set "exportdir=E:\Export-yt-shorts

for /l %%c in (1,1,2200) Do (
 
  ffmpeg -i "%videodir%\Videos-%%c.mp4" -i "%videodir%\Videos-%%c.mp4" -filter_complex "[0:v]scale=3413:1920,boxblur=4[bg];[1:v]scale=1080:-1[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2[tmp];[tmp]crop=1080:1920:(3413-1080)/2:0[out]" -map [out] -map 0:a output01.mp4
 
)

    for %%A in ("%musicdir%\*") DO (
   ffmpeg -i output01.mp4 -i "%%A" -map 0:v -map 1:a -vcodec copy -c:a aac -b:a 320k -shortest "%exportdir%\%%~nA.mp4"
    del output01.mp4
 )




    


    Can anyone help me on this ? Thank you
Later Edit :
I want to explain the logic I thought about the two FOR

    


    I have two folders.
— 1 folders with mp4 videos wide ratio 16/9 Full HD

    


    are named like this ---> Videos-1.mp4, Videos-2.mp4 .. Videos-3.mp4 ... Videos-2200.mp4

    


    and 1 folder with music mp3 and wav's

    


    in first for its first mp4 export that I want to combine with first song from the second for then second video with second song from folder. etc

    


    in the end I want to have 9/16 ratio video

    


  • How to create/repair the XingHeader for total stream size using taglib or other tools ?

    6 novembre 2012, par user784637

    I downloaded a video from youtube whose audio was encoded in aac and then I transcoded it to an mp3 using the libmp3lame codec.

    $ ffmpeg -i video.mp4 -vn -acodec libmp3lame -ab 128K -- cold.mp3

    Now when I try to write id3 tags to it using the taglib example tagwriter I get the following warning :

    $ ./testwriter -t 'stuff' cold.mp3
    TagLib: MPEG::XingHeader::parse() -- Xing header doesn't contain the total stream size.

    The id3 tags are written and display correctly, but the lack of well formed XingHeaders causes older mp3 players to loop the song several times or even crash (I don't know why, this song has been encoded as cbr not vbr.) In windows 7 the Bit rate displays as 0kbps.
    enter image description here

    How do I create a wellformed XingHeader for total stream size using taglib or other tools that can be executed from the commandline ?

    Here's some documentation for xingheaders on taglib

    http://taglib.github.com/api/classTagLib_1_1MPEG_1_1XingHeader.html#ac0ba25f2922757c4bdd2851fdc2ccdde

    http://taglib.github.com/api/xingheader_8h_source.html