Recherche avancée

Médias (0)

Mot : - Tags -/page unique

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (91)

Sur d’autres sites (16689)

  • ffmpeg : Unable to find a suitable output format, libfaac

    29 juin 2013, par StackOverflowNewbie

    I just downloaded "FFmpeg git-070b0e1 32-bit Static (Latest)" from http://ffmpeg.zeranoe.com/builds/. I extracted the files on my Vista machine and then updated my PATH to point to presets and bin folders.

    The first command I ran was this :

    ffmpeg -i C:/a.avi  -vcodec libtheora  -qscale 6  -acodec libvorbis  -ab 128k  -vf scale="480:-1"   C:/a.ogv

    I got this error :

    Please use -q:a or -q:v, -qscale is ambiguous
    [NULL @ 0200F800] Unable to find a suitable output format for 'C:/a.ogv''
    C:/a.ogv': Invalid argument

    The second command I ran was this :

    ffmpeg -i C:/a.avi  -vcodec libx264  -preset slow  -profile main  -crf 20  -acodec libfaac  -ab 128k  -vf scale="480:-1"   C:/a.mp4

    I got this error : Unknown encoder 'libfaac'

    Questions :

    1. I'm trying to convert an input video (I don't know what the MIME type is) and output it as ogv and mp4 so I can play it on a website. Of course, I'm looking for highest possible quality at the lowest possible file size. I've pieced my commands from what I can find on the net. Am I on the right track ? What can I do to improve ?

      1. Any ideas how to address the errors I'm getting ?
  • 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 ?