Recherche avancée

Médias (91)

Autres articles (105)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (10456)

  • How to use ffmpeg / x264 2-Pass encoding for multiple bitrate output files

    2 décembre 2014, par Jonesy

    While performing a 2-Pass encode to multiple output files I was receiving the error

    ratecontrol_init: can't open stats file 1 ffmpeg2pass-2.log

    My setup is to do a single first pass and then multiple second pass encodes to output files with different target bitrates using the same first pass results.

    ffmpeg -y -i $INPUT_FILE -an -vcodec libx264 -pass 1 -b:v 700k -f rawvideo /dev/null

    ffmpeg -y -i $INPUT_FILE -i out-aud.mp4 \
    $AUDIO_OPTIONS_P2 -vcodec libx264 -pass 2 -b:v 250k -f mp4 out-250.mp4 \
    $AUDIO_OPTIONS_P2 -vcodec libx264 -pass 2 -b:v 500k -f mp4 out-500.mp4 \
    $AUDIO_OPTIONS_P2 -vcodec libx264 -pass 2 -b:v 700k -f mp4 out-700.mp4

    This sequence resulted in the error listed above. What I discovered thru code-inspection is that ffmpeg/x264 looks for a different set of first-pass files for each second-pass encoding path. The first encoding path uses the set of files originally created

    ffmpeg2pass-0.log
    ffmpeg2pass-0.log.mbtree

    The second encoding path requires first-pass files with the names

    ffmpeg2pass-2.log
    ffmpeg2pass-2.log.mbtree

    The third encoding path requires first-pass files with the names starting with ffmpeg2pass-4*, etc.

    My solution was to create soft-links to the originally created set of files with the new names that were required for each pass before running the second-pass command.

    ln -s ffmpeg2pass-0.log ffmpeg2pass-2.log
    ln -s ffmpeg2pass-0.log.mbtree ffmpeg2pass-2.log.mbtree
    ln -s ffmpeg2pass-0.log ffmpeg2pass-4.log
    ln -s ffmpeg2pass-0.log.mbtree ffmpeg2pass-4.log.mbtree

    This seems to work as it results in the output encodes that I needed. However, I don’t know if this method is legitimate. Am I getting sub-optimal encoding results by using a first-pass output for one bitrate (700k) as the input to second-pass encodings for other bitrates ?

  • How to use ffmpeg / x264 2-Pass encoding for multiple bitrate output files

    2 décembre 2014, par Jonesy

    While performing a 2-Pass encode to multiple output files I was receiving the error

    ratecontrol_init: can't open stats file 1 ffmpeg2pass-2.log

    My setup is to do a single first pass and then multiple second pass encodes to output files with different target bitrates using the same first pass results.

    ffmpeg -y -i $INPUT_FILE -an -vcodec libx264 -pass 1 -b:v 700k -f rawvideo /dev/null

    ffmpeg -y -i $INPUT_FILE -i out-aud.mp4 \
    $AUDIO_OPTIONS_P2 -vcodec libx264 -pass 2 -b:v 250k -f mp4 out-250.mp4 \
    $AUDIO_OPTIONS_P2 -vcodec libx264 -pass 2 -b:v 500k -f mp4 out-500.mp4 \
    $AUDIO_OPTIONS_P2 -vcodec libx264 -pass 2 -b:v 700k -f mp4 out-700.mp4

    This sequence resulted in the error listed above. What I discovered thru code-inspection is that ffmpeg/x264 looks for a different set of first-pass files for each second-pass encoding path. The first encoding path uses the set of files originally created

    ffmpeg2pass-0.log
    ffmpeg2pass-0.log.mbtree

    The second encoding path requires first-pass files with the names

    ffmpeg2pass-2.log
    ffmpeg2pass-2.log.mbtree

    The third encoding path requires first-pass files with the names starting with ffmpeg2pass-4*, etc.

    My solution was to create soft-links to the originally created set of files with the new names that were required for each pass before running the second-pass command.

    ln -s ffmpeg2pass-0.log ffmpeg2pass-2.log
    ln -s ffmpeg2pass-0.log.mbtree ffmpeg2pass-2.log.mbtree
    ln -s ffmpeg2pass-0.log ffmpeg2pass-4.log
    ln -s ffmpeg2pass-0.log.mbtree ffmpeg2pass-4.log.mbtree

    This seems to work as it results in the output encodes that I needed. However, I don’t know if this method is legitimate. Am I getting sub-optimal encoding results by using a first-pass output for one bitrate (700k) as the input to second-pass encodings for other bitrates ?

  • two pass encoding in ffmpeg

    7 août 2015, par Robin

    I will be encoding different videos uploaded by the user asynchronously in my server. I saw this post, and according to this, this is how to endcode two pass encoding :

    ffmpeg -y -i input -c:v libx264 -preset medium -b:v 555k -pass 1 -c:a libfdk_aac -b:a 128k -f mp4 /dev/null && \

    ffmpeg -i input -c:v libx264 -preset medium -b:v 555k -pass 2 -c:a libfdk_aac -b:a 128k output.mp4

    I noticed the -pass 1 and -pass 2 flags. But I tried encoding a video by just giving it a -pass 2 flag without first encoding in -pass 1 flag. Although I had this warning, it executed anyway :

    2nd pass has more frames than 1st pass

    So, my concern is how will ffmpeg know which one is the first pass so that it can do its pass 2 encoding ? And since many videos will be uploaded simultaneously I can’t keep them all at the /dev/null won’t it will replace one with another. So how can I manage it ?

    Your help and guidance will be very much appreciated.

    Thank you.

    Upadate

    ffmpeg cmd :

    ffmpeg -i input.mp4 -codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v 1500k -maxrate 1500k -bufsize 15000k -s hd720 -threads 0 -pass 1 -an -f mp4 /dev/null

    ffmpeg -i input.mp4 -codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v 1000k -maxrate 1000k -bufsize 10000k -s hd720 -threads 0 -pass 2 -codec:a libfdk_aac -movflags +faststart output.mp4