[FFmpeg-user] problems when updated the r-26400 version to thelatest git version

韩瑞松 550399108 at qq.com
Thu Jul 19 09:56:27 CEST 2012


ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -an -f flv -map_chapters -1:-1 -g 50 youku.mp4.flv 
ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 2 -vcodec libx264 -vpre normal -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -f flv -map_chapters -1:-1 -g 50 youku.mp4.flv





------------------ Original ------------------
From:  "iefvHRS"<550399108 at qq.com>;
Date:  Thu, Jul 19, 2012 03:46 PM
To:  "ffmpeg-user"<ffmpeg-user at ffmpeg.org>; 

Subject:  [FFmpeg-user] problems when updated the r-26400 version to thelatest git version



I used to use ffmpeg version r-26400 that is the svn-version
I encode videos into x264 + faac with the command as follow:


ffmpeg -y -i youku.mp4 -analyzeduration -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -an -f flv -map_chapters -1:-1 -g 50 /dev/null
ffmpeg -y -i youku.mp4 -analyzeduration -pass 2 -vcodec libx264 -vpre normal -b 512k -s 513x312 -aspect 513:312 -r 25 -psnr -acodec libfaac -ab 64k -ar 44100 -ac 2 -f flv -map_chapters -1:-1 -g 50 youku.mp4.flv


it works !


Now,I want to upgrade my ffmpeg to the latest git version.
When i compile my ffmpeg and try to use the command above.


I found there is no preset named fastfirstpass or normal.So I copy the options in this to file.I get result as follow:


command:
    ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -directpred 3 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null


ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 19 2012 12:39:08 with gcc 4.4.3
  configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libtheora --enable-libvorbis --enable-shared --enable-ffplay --enable-debug
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 41.100 / 54. 41.100
  libavformat    54. 17.100 / 54. 17.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2011-03-30 09:21:37
  Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
    Metadata:
      creation_time   : 2011-03-30 09:21:37
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s
    Metadata:
      creation_time   : 2011-03-30 09:21:43
      handler_name    : GPAC ISO Audio Handler
Unrecognized option 'directpred'
Failed to set value '3' for option 'directpred'




command:
    ffmpeg -y -i youku.mp4 -analyzeduration 2G -pass 1 -vcodec libx264 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -b 512k -s 576x312 -aspect 576:312 -r 25 -psnr -an -vf setpts=0.5*PTS -af atempo=2 -f flv -map_chapters -1 -g 50 /dev/null


ffmpeg version git-2012-07-19-6b7849e Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 19 2012 12:39:08 with gcc 4.4.3
  configuration: --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libxvid --enable-libtheora --enable-libvorbis --enable-shared --enable-ffplay --enable-debug
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 41.100 / 54. 41.100
  libavformat    54. 17.100 / 54. 17.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youku.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2011-03-30 09:21:37
  Duration: 00:06:01.48, start: 0.000000, bitrate: 592 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 576x312 [SAR 577:576 DAR 577:312], 557 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
    Metadata:
      creation_time   : 2011-03-30 09:21:37
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 32 kb/s
    Metadata:
      creation_time   : 2011-03-30 09:21:43
      handler_name    : GPAC ISO Audio Handler
Please use -b:a or -b:v, -b is ambiguous
[NULL @ 0x9eaa20] [Eval @ 0x7fff7da6f3b0] Undefined constant or missing '(' in 'bpyramid'
[NULL @ 0x9eaa20] Unable to parse option value "bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree"
[NULL @ 0x9eaa20] Error setting option flags2 to value -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree.
Output #0, flv, to '/dev/null':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    Stream #0:0(und): Video: none, yuv420p, 576x312 [SAR 1:1 DAR 24:13], q=10-51, pass 1, 512 kb/s, 90k tbn, 25 tbc
    Metadata:
      creation_time   : 2011-03-30 09:21:37
      handler_name    : GPAC ISO Video Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height




How can I use the lastest version ffmpeg to encode videos as the version r-26400 with 2-pass model?
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list