#3145: Header inconsistencies for a certain range of video bit rate -------------------------------------+------------------------------------- Reporter: olitoli | Owner: Type: defect | Status: new Priority: normal | Component: FFmpeg Version: 2.1 | Resolution: Keywords: xvid avi | Blocked By: video bitrate | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+-------------------------------------
Comment (by olitoli): Thanks for taking a look. I'm not sure I can build and test the current git head. I usually only download the Mac OS X Tessus standalone builds. Since the problem is in both 1.2.1 and 2.1.0, I doubt that this is a recent bug and it's most likely present in the current hit head. The original testing described in the bug report was done with -c:v mpeg4. I did further testing using -c:v libxvid as you suggested and the results are the same (good for 2000k and bad for 1900k) so this does not seem to be associated with any video encoder. Since I had also tested both MP3 and AC3, this does not seem to be associated with any audio encoder either. I believe that it's the container header that is trashed for a certain range of video bitrate, not the streams headers themselves. I created the 2 test files outhighbitrate.avi and outlowbitrate.avi and while the GUI version of MediaInfo Mac 0.7.36.0 does not detect any issues, I can only play correctly outhighbitrate.avi on my DVD Player as outlowbitrate.avi makes it freeze. You asked for the complete uncut console output so please find it below. I already compared it and could not find any smoking gun there. $ffmpeg -i PR.m4v -c:v mpeg4 -vtag XVID -b:v 1900k -r 23.976 -c:a ac3 -b:a 128k -ar 48000 -ac 2 P_1900.avi ffmpeg version 1.2.1-tessus Copyright (c) 2000-2013 the FFmpeg developers built on May 9 2013 21:58:14 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable- libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/done/PR.m4v': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2013-11-13 16:27:35 encoder : HandBrake 0.9.9 2013051800 Duration: 02:11:17.46, start: 0.000000, bitrate: 4168 kb/s Chapter #0.0: start 0.000000, end 549.081867 Metadata: title : Chapter 1 Chapter #0.1: start 549.081867, end 1115.781333 Metadata: title : Chapter 2 Chapter #0.2: start 1115.781333, end 1384.416367 Metadata: title : Chapter 3 Chapter #0.3: start 1384.416367, end 1980.345033 Metadata: title : Chapter 4 Chapter #0.4: start 1980.345033, end 2564.895667 Metadata: title : Chapter 5 Chapter #0.5: start 2564.895667, end 3001.698700 Metadata: title : Chapter 6 Chapter #0.6: start 3001.698700, end 3669.699356 Metadata: title : Chapter 7 Chapter #0.7: start 3669.699356, end 4485.180689 Metadata: title : Chapter 8 Chapter #0.8: start 4485.180689, end 4941.269656 Metadata: title : Chapter 9 Chapter #0.9: start 4941.269656, end 5529.857656 Metadata: title : Chapter 10 Chapter #0.10: start 5529.857656, end 6115.609489 Metadata: title : Chapter 11 Chapter #0.11: start 6115.609489, end 6697.857822 Metadata: title : Chapter 12 Chapter #0.12: start 6697.857822, end 7160.987156 Metadata: title : Chapter 13 Chapter #0.13: start 7160.987156, end 7337.830489 Metadata: title : Chapter 14 Chapter #0.14: start 7337.830489, end 7877.002456 Metadata: title : Chapter 15 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x404, 3999 kb/s, 23.98 fps, 59.94 tbr, 90k tbn, 180k tbc Metadata: creation_time : 2013-11-13 16:27:35 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 164 kb/s Metadata: creation_time : 2013-11-13 16:27:35 Stream #0:2(und): Subtitle: mov_text (text / 0x74786574) Metadata: creation_time : 2013-11-13 16:27:35 Output #0, avi, to 'P_1900.avi': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 ISFT : Lavf54.63.104 Chapter #0.0: start 0.000000, end 549.081867 Metadata: title : Chapter 1 Chapter #0.1: start 549.081867, end 1115.781333 Metadata: title : Chapter 2 Chapter #0.2: start 1115.781333, end 1384.416367 Metadata: title : Chapter 3 Chapter #0.3: start 1384.416367, end 1980.345033 Metadata: title : Chapter 4 Chapter #0.4: start 1980.345033, end 2564.895667 Metadata: title : Chapter 5 Chapter #0.5: start 2564.895667, end 3001.698700 Metadata: title : Chapter 6 Chapter #0.6: start 3001.698700, end 3669.699356 Metadata: title : Chapter 7 Chapter #0.7: start 3669.699356, end 4485.180689 Metadata: title : Chapter 8 Chapter #0.8: start 4485.180689, end 4941.269656 Metadata: title : Chapter 9 Chapter #0.9: start 4941.269656, end 5529.857656 Metadata: title : Chapter 10 Chapter #0.10: start 5529.857656, end 6115.609489 Metadata: title : Chapter 11 Chapter #0.11: start 6115.609489, end 6697.857822 Metadata: title : Chapter 12 Chapter #0.12: start 6697.857822, end 7160.987156 Metadata: title : Chapter 13 Chapter #0.13: start 7160.987156, end 7337.830489 Metadata: title : Chapter 14 Chapter #0.14: start 7337.830489, end 7877.002456 Metadata: title : Chapter 15 Stream #0:0(und): Video: mpeg4 (XVID / 0x44495658), yuv420p, 720x404, q=2-31, 1900 kb/s, 23.98 tbn, 23.98 tbc Metadata: creation_time : 2013-11-13 16:27:35 Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 128 kb/s Metadata: creation_time : 2013-11-13 16:27:35 Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg4) Stream #0:1 -> #0:1 (aac -> ac3) Press [q] to stop, [?] for help frame=188870 fps=487 q=2.0 Lsize= 1957926kB time=02:11:17.46 bitrate=2036.1kbits/s video:1824299kB audio:123079kB subtitle:0 global headers:0kB muxing overhead 0.541614% $ffmpeg -i PR.m4v -c:v mpeg4 -vtag XVID -b:v 2000k -r 23.976 -c:a ac3 -b:a 128k -ar 48000 -ac 2 P_2000.avi ffmpeg version 1.2.1-tessus Copyright (c) 2000-2013 the FFmpeg developers built on May 9 2013 21:58:14 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable- libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/done/PR.m4v': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2013-11-13 16:27:35 encoder : HandBrake 0.9.9 2013051800 Duration: 02:11:17.46, start: 0.000000, bitrate: 4168 kb/s Chapter #0.0: start 0.000000, end 549.081867 Metadata: title : Chapter 1 Chapter #0.1: start 549.081867, end 1115.781333 Metadata: title : Chapter 2 Chapter #0.2: start 1115.781333, end 1384.416367 Metadata: title : Chapter 3 Chapter #0.3: start 1384.416367, end 1980.345033 Metadata: title : Chapter 4 Chapter #0.4: start 1980.345033, end 2564.895667 Metadata: title : Chapter 5 Chapter #0.5: start 2564.895667, end 3001.698700 Metadata: title : Chapter 6 Chapter #0.6: start 3001.698700, end 3669.699356 Metadata: title : Chapter 7 Chapter #0.7: start 3669.699356, end 4485.180689 Metadata: title : Chapter 8 Chapter #0.8: start 4485.180689, end 4941.269656 Metadata: title : Chapter 9 Chapter #0.9: start 4941.269656, end 5529.857656 Metadata: title : Chapter 10 Chapter #0.10: start 5529.857656, end 6115.609489 Metadata: title : Chapter 11 Chapter #0.11: start 6115.609489, end 6697.857822 Metadata: title : Chapter 12 Chapter #0.12: start 6697.857822, end 7160.987156 Metadata: title : Chapter 13 Chapter #0.13: start 7160.987156, end 7337.830489 Metadata: title : Chapter 14 Chapter #0.14: start 7337.830489, end 7877.002456 Metadata: title : Chapter 15 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x404, 3999 kb/s, 23.98 fps, 59.94 tbr, 90k tbn, 180k tbc Metadata: creation_time : 2013-11-13 16:27:35 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 164 kb/s Metadata: creation_time : 2013-11-13 16:27:35 Stream #0:2(und): Subtitle: mov_text (text / 0x74786574) Metadata: creation_time : 2013-11-13 16:27:35 Output #0, avi, to 'P_2000.avi': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 ISFT : Lavf54.63.104 Chapter #0.0: start 0.000000, end 549.081867 Metadata: title : Chapter 1 Chapter #0.1: start 549.081867, end 1115.781333 Metadata: title : Chapter 2 Chapter #0.2: start 1115.781333, end 1384.416367 Metadata: title : Chapter 3 Chapter #0.3: start 1384.416367, end 1980.345033 Metadata: title : Chapter 4 Chapter #0.4: start 1980.345033, end 2564.895667 Metadata: title : Chapter 5 Chapter #0.5: start 2564.895667, end 3001.698700 Metadata: title : Chapter 6 Chapter #0.6: start 3001.698700, end 3669.699356 Metadata: title : Chapter 7 Chapter #0.7: start 3669.699356, end 4485.180689 Metadata: title : Chapter 8 Chapter #0.8: start 4485.180689, end 4941.269656 Metadata: title : Chapter 9 Chapter #0.9: start 4941.269656, end 5529.857656 Metadata: title : Chapter 10 Chapter #0.10: start 5529.857656, end 6115.609489 Metadata: title : Chapter 11 Chapter #0.11: start 6115.609489, end 6697.857822 Metadata: title : Chapter 12 Chapter #0.12: start 6697.857822, end 7160.987156 Metadata: title : Chapter 13 Chapter #0.13: start 7160.987156, end 7337.830489 Metadata: title : Chapter 14 Chapter #0.14: start 7337.830489, end 7877.002456 Metadata: title : Chapter 15 Stream #0:0(und): Video: mpeg4 (XVID / 0x44495658), yuv420p, 720x404, q=2-31, 2000 kb/s, 23.98 tbn, 23.98 tbc Metadata: creation_time : 2013-11-13 16:27:35 Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 128 kb/s Metadata: creation_time : 2013-11-13 16:27:35 Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg4) Stream #0:1 -> #0:1 (aac -> ac3) Press [q] to stop, [?] for help frame=188870 fps=458 q=2.0 Lsize= 2053710kB time=02:11:17.46 bitrate=2135.7kbits/s video:1920254kB audio:123079kB subtitle:0 global headers:0kB muxing overhead 0.507827% -- Ticket URL: <https://trac.ffmpeg.org/ticket/3145#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac