ffmpeg -threads 4 -i "/home/fabien/soccer_4cif.y4m" -f mp4 -r 25 -vcodec libx264 -s 1280x720 -b 1500kb -aspect 16:9 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -b 1750k -maxrate 2000k -bufsize 4M -bt 256k -refs 1 -bf 3 -coder 1 -me_method umh -me_range 16 -subq 7 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec libfaac -ab 128kb -ar 44100 -ac 2 "/home/fabien/soccer_4cif.mp4"
I double checked, and with x264 it works ! It seems that this bug is ffmpeg related.
Any other transcoders uses the libx264 ? I will check if it works with mencoder ...
FFmpeg output:
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 4 2010 12:35:30, gcc: 4.4.3 Input #0, yuv4mpegpipe, from '/home/fabien/soccer_4cif.y4m': Duration: N/A, bitrate: N/A Stream #0.0: Video: rawvideo, yuv420p, 704x576, PAR 128:117 DAR 1408:1053, 60 tbr, 60 tbn, 60 tbc File '/home/fabien/soccer_4cif.mp4' already exists. Overwrite ? [y/N] Y Output #0, mp4, to '/home/fabien/soccer_4cif.mp4': Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=10-51, 1750 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 [libx264 @ 0x84b25c0]using SAR=1/1 [libx264 @ 0x84b25c0]frame MB size (80x45) > level limit (1620) [libx264 @ 0x84b25c0]MB rate (90000) > level limit (40500) [libx264 @ 0x84b25c0]using cpu capabilities: none! [libx264 @ 0x84b25c0]profile Main, level 3.0 Press [q] to stop encoding frame= 20 fps= 0 q=575.0 size= 0kB time=10000000000.00 bitrate= 0.0kbframe= 38 fps= 36 q=575.0 size= 0kB time=10000000000.00 bitrate= 0.0kbframe= 48 fps= 18 q=35.0 size= 0kB time=10000000000.00 bitrate= 0.0kbiframe= 109 fps= 6 q=29.0 size= 515kB time=2.32 bitrate=1818.1kbits/s
ffmpeg -threads 4 -i "/home/ fabien/ soccer_ 4cif.y4m" -f mp4 -r 25 -vcodec libx264 -s 1280x720 -b 1500kb -aspect 16:9 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -b 1750k -maxrate 2000k -bufsize 4M -bt 256k -refs 1 -bf 3 -coder 1 -me_method umh -me_range 16 -subq 7 -partitions +parti4x4+ parti8x8+ partp8x8+ partb8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec libfaac -ab 128kb -ar 44100 -ac 2 "/home/ fabien/ soccer_ 4cif.mp4"
I double checked, and with x264 it works ! It seems that this bug is ffmpeg related.
Any other transcoders uses the libx264 ? I will check if it works with mencoder ...
FFmpeg output:
FFmpeg version SVN-r0. 5.1-4:0. 5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. version= 4:0.5.1- 1ubuntu1 --prefix=/usr --enable-avfilter --enable- avfilter- lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable- libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable- runtime- cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static fabien/ soccer_ 4cif.y4m' : fabien/ soccer_ 4cif.mp4' already exists. Overwrite ? [y/N] Y fabien/ soccer_ 4cif.mp4' : 1818.1kbits/ s
configuration: --extra-
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 4 2010 12:35:30, gcc: 4.4.3
Input #0, yuv4mpegpipe, from '/home/
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 704x576, PAR 128:117 DAR 1408:1053, 60 tbr, 60 tbn, 60 tbc
File '/home/
Output #0, mp4, to '/home/
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=10-51, 1750 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
[libx264 @ 0x84b25c0]using SAR=1/1
[libx264 @ 0x84b25c0]frame MB size (80x45) > level limit (1620)
[libx264 @ 0x84b25c0]MB rate (90000) > level limit (40500)
[libx264 @ 0x84b25c0]using cpu capabilities: none!
[libx264 @ 0x84b25c0]profile Main, level 3.0
Press [q] to stop encoding
frame= 20 fps= 0 q=575.0 size= 0kB time=10000000000.00 bitrate= 0.0kbframe= 38 fps= 36 q=575.0 size= 0kB time=10000000000.00 bitrate= 0.0kbframe= 48 fps= 18 q=35.0 size= 0kB time=10000000000.00 bitrate= 0.0kbiframe= 109 fps= 6 q=29.0 size= 515kB time=2.32 bitrate=