Hi All,
In some of the sources I work with the convention of SD=BT.601 and HD=BT.709 isnt always followed. That makes it necessary to confirm that ffmpeg correctly detects and handles input colour space matrix coefficients. Unfortunately I cant find any way to show this information during input parsing, nor in the output produced by ffmpeg. Ill be very grateful for any pointers to help solve this. Some sample encodes below. These are not necessarily from problem inputs, but show that colour matrix coefficient information does not seem readily available unless I am hopefully overlooking something. Note that even color_range is not uniformly available from encodes. ffmpeg 1 -------- ffmpeg started on 2014-09-21 at 13:59:27 Report written to "ffmpeg-20140921-135927.log" Command line: ffmpeg -i input_file.avi -report test_out.mpg ffmpeg version N-66232-g5e3da25 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 10 2014 22:01:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Splitting the commandline. Reading option '-i' ... matched as input file with argument 'input_file.avi'. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option 'test_out.mpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file input_file.avi. Successfully parsed a group of options. Opening an input file: input_file.avi. [avi @ 029e8ce0] Format avi probed with size=2048 and score=100 [avi @ 029e93c0] use odml:1 st:1 removing common factor 4 from timebase [avi @ 029e8ce0] Before avformat_find_stream_info() pos: 10252 bytes read:254608 seeks:6 [avi @ 029e8ce0] parser not found for codec dvvideo, packets or times may be invalid. [avi @ 029e8ce0] parser not found for codec pcm_s16le, packets or times may be invalid. [avi @ 029e8ce0] parser not found for codec pcm_s16le, packets or times may be invalid. [avi @ 029e8ce0] parser not found for codec dvvideo, packets or times may be invalid. [avi @ 029e8ce0] All info found [avi @ 029e8ce0] After avformat_find_stream_info() pos: 250268 bytes read:472108 seeks:6 frames:25 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'input_file.avi': Duration: 00:01:12.72, start: 0.000000, bitrate: 30346 kb/s Stream #0:0, 1, 1/25: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28815 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1, 24, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s Successfully opened the file. Parsing a group of options: output file test_out.mpg. Successfully parsed a group of options. Opening an output file: test_out.mpg. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 029eccc0] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'pixel_aspect' to value '16/15' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 029eccc0] w:720 h:576 pixfmt:yuv420p tb:1/25 fr:25/1 sar:16/15 sws_param:flags=2 [format @ 03742020] compat: called with args=[yuv420p] [format @ 03742020] Setting 'pix_fmts' to value 'yuv420p' [AVFilterGraph @ 03728fa0] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [graph 1 input from stream 0:1 @ 0372e040] Setting 'time_base' to value '1/48000' [graph 1 input from stream 0:1 @ 0372e040] Setting 'sample_rate' to value '48000' [graph 1 input from stream 0:1 @ 0372e040] Setting 'sample_fmt' to value 's16' [graph 1 input from stream 0:1 @ 0372e040] Setting 'channel_layout' to value '0x3' [graph 1 input from stream 0:1 @ 0372e040] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [audio format for output stream 0:1 @ 0372e140] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:1 @ 0372e140] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000' [audio format for output stream 0:1 @ 0372e140] Setting 'channel_layouts' to value '0x4|0x3' [AVFilterGraph @ 037292e0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed [mpeg1video @ 029ebde0] intra_quant_bias = 96 inter_quant_bias = 0 [mpeg @ 03724ba0] VBV buffer size not set, using default size of 130KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, mpeg, to 'test_out.mpg': Metadata: encoder : Lavf56.4.101 Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc Metadata: encoder : Lavc56.1.100 mpeg1video Stream #0:1, 0, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s Metadata: encoder : Lavc56.1.100 mp2 Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> mpeg1video (native)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> mp2 (native)) Press [q] to stop, [?] for help [mpeg @ 03724ba0] First SCR: 0 First DTS: 45000 frame= 182 fps=0.0 q=24.8 size= 1114kB time=00:00:07.74 bitrate=1178.8kbits/s frame= 363 fps=362 q=31.0 size= 2054kB time=00:00:14.98 bitrate=1122.5kbits/s frame= 552 fps=368 q=31.0 size= 2964kB time=00:00:22.54 bitrate=1076.8kbits/s frame= 749 fps=374 q=31.0 size= 3668kB time=00:00:30.44 bitrate= 986.9kbits/s frame= 914 fps=365 q=24.8 size= 4288kB time=00:00:37.02 bitrate= 948.8kbits/s frame= 1090 fps=363 q=31.0 size= 4934kB time=00:00:44.05 bitrate= 917.5kbits/s frame= 1283 fps=366 q=31.0 size= 5690kB time=00:00:51.78 bitrate= 900.2kbits/s frame= 1474 fps=368 q=31.0 size= 6430kB time=00:00:59.41 bitrate= 886.6kbits/s frame= 1675 fps=372 q=31.0 size= 7306kB time=00:01:07.45 bitrate= 887.3kbits/s [output stream 0:0 @ 03741f00] EOF on sink link output stream 0:0:default. [output stream 0:1 @ 0372e0c0] EOF on sink link output stream 0:1:default. No more output streams to write to, finishing. frame= 1818 fps=376 q=31.0 Lsize= 7836kB time=00:01:12.70 bitrate= 882.9kbits/s video:4356kB audio:3409kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.911377% Input file #0 (input_file.avi): Input stream #0:0 (video): 1818 packets read (261792000 bytes); 1818 frames decoded; Input stream #0:1 (audio): 3635 packets read (13962240 bytes); 3635 frames decoded (3490560 samples); Total: 5453 packets (275754240 bytes) demuxed Output file #0 (test_out.mpg): Output stream #0:0 (video): 1818 frames encoded; 1818 packets muxed (4461035 bytes); Output stream #0:1 (audio): 3030 frames encoded (3490560 samples); 3030 packets muxed (3490560 bytes); Total: 4848 packets (7951595 bytes) muxed 5453 frames successfully decoded, 0 decoding errors [AVIOContext @ 037251c0] Statistics: 0 seeks, 3918 writeouts [AVIOContext @ 029e9320] Statistics: 276048100 bytes read, 7 seeks ffprobe 1 --------- ffprobe -bitexact -print_format default=nw=1 -select_streams v -show_streams -show_format test_out.mpg ffprobe version N-66232-g5e3da25 Copyright (c) 2007-2014 the FFmpeg developers built on Sep 10 2014 22:01:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Input #0, mpeg, from 'test_out.mpg': Duration: 00:01:12.72, start: 0.529978, bitrate: 882 kb/s Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 720x576 [SAR 178:163 DAR 445:326], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s index=0 codec_name=mpeg1video profile=unknown codec_type=video codec_time_base=1/25 codec_tag_string=[0][0][0][0] codec_tag=0x0000 width=720 height=576 has_b_frames=1 sample_aspect_ratio=178:163 display_aspect_ratio=445:326 pix_fmt=yuv420p level=-99 color_range=tv color_space=unknown timecode=00:00:00:00 id=0x1e0 r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/90000 start_pts=48600 start_time=0.540000 duration_ts=6530400 duration=72.560000 bit_rate=104857200 max_bit_rate=N/A bits_per_raw_sample=N/A nb_frames=N/A nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 filename=test_out.mpg nb_streams=2 nb_programs=0 format_name=mpeg start_time=0.529978 duration=72.720000 size=8024064 bit_rate=882735 probe_score=26 ffmpeg 2 -------- ffmpeg started on 2014-09-21 at 14:14:55 Report written to "ffmpeg-20140921-141455.log" Command line: ffmpeg -i input_file.avi -report test_out.mp4 ffmpeg version N-66232-g5e3da25 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 10 2014 22:01:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Splitting the commandline. Reading option '-i' ... matched as input file with argument 'input_file.avi'. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option 'test_out.mp4' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file input_file.avi. Successfully parsed a group of options. Opening an input file: input_file.avi. [avi @ 00378ce0] Format avi probed with size=2048 and score=100 [avi @ 003793c0] use odml:1 st:1 removing common factor 4 from timebase [avi @ 00378ce0] Before avformat_find_stream_info() pos: 10252 bytes read:254608 seeks:6 [avi @ 00378ce0] parser not found for codec dvvideo, packets or times may be invalid. [avi @ 00378ce0] parser not found for codec pcm_s16le, packets or times may be invalid. [avi @ 00378ce0] parser not found for codec pcm_s16le, packets or times may be invalid. [avi @ 00378ce0] parser not found for codec dvvideo, packets or times may be invalid. [avi @ 00378ce0] All info found [avi @ 00378ce0] After avformat_find_stream_info() pos: 250268 bytes read:472108 seeks:6 frames:25 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'input_file.avi': Duration: 00:01:12.72, start: 0.000000, bitrate: 30346 kb/s Stream #0:0, 1, 1/25: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28815 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1, 24, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s Successfully opened the file. Parsing a group of options: output file test_out.mp4. Successfully parsed a group of options. Opening an output file: test_out.mp4. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 037b0a40] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 037b0a40] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 037b0a40] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 037b0a40] Setting 'pixel_aspect' to value '16/15' [graph 0 input from stream 0:0 @ 037b0a40] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 037b0a40] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 037b0a40] w:720 h:576 pixfmt:yuv420p tb:1/25 fr:25/1 sar:16/15 sws_param:flags=2 [format @ 037b1d40] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16] [format @ 037b1d40] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16' [AVFilterGraph @ 03798fa0] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [graph 1 input from stream 0:1 @ 037a2fc0] Setting 'time_base' to value '1/48000' [graph 1 input from stream 0:1 @ 037a2fc0] Setting 'sample_rate' to value '48000' [graph 1 input from stream 0:1 @ 037a2fc0] Setting 'sample_fmt' to value 's16' [graph 1 input from stream 0:1 @ 037a2fc0] Setting 'channel_layout' to value '0x3' [graph 1 input from stream 0:1 @ 037a2fc0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [audio format for output stream 0:1 @ 037a30c0] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:1 @ 037a30c0] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350 ' [AVFilterGraph @ 037992e0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed [libx264 @ 0037bde0] using mv_range_thread = 40 [libx264 @ 0037bde0] using SAR=16/15 [libx264 @ 0037bde0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0037bde0] profile High, level 3.0 [libx264 @ 0037bde0] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'test_out.mp4': Metadata: encoder : Lavf56.4.101 Stream #0:0, 0, 1/12800: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc56.1.100 libx264 Stream #0:1, 0, 1/48000: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc56.1.100 libvo_aacenc Stream mapping: Stream #0:0 -> #0:0 (dvvideo (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (libvo_aacenc)) Press [q] to stop, [?] for help [libx264 @ 0037bde0] frame= 0 QP=24.58 NAL=3 Slice:I Poc:0 I:1620 P:0 SKIP:0 size=30015 bytes [libx264 @ 0037bde0] frame= 1 QP=25.60 NAL=2 Slice:P Poc:4 I:435 P:1100 SKIP:85 size=24921 bytes [libx264 @ 0037bde0] frame= 2 QP=27.66 NAL=0 Slice:B Poc:2 I:103 P:1040 SKIP:411 size=9565 bytes [libx264 @ 0037bde0] frame= 3 QP=25.15 NAL=2 Slice:P Poc:8 I:250 P:1302 SKIP:68 size=26279 bytes frame= 54 fps=0.0 q=28.0 size= 91kB time=00:00:02.59 bitrate= 287.5kbits/s << snip >> [libx264 @ 0037bde0] frame=1719 QP=22.21 NAL=2 Slice:P Poc:402 I:20 P:536 SKIP:1064 size=3681 bytes [libx264 @ 0037bde0] frame=1720 QP=22.43 NAL=2 Slice:P Poc:404 I:13 P:352 SKIP:1255 size=1838 bytes [libx264 @ 0037bde0] frame=1721 QP=22.90 NAL=2 Slice:P Poc:406 I:26 P:377 SKIP:1217 size=2986 bytes [libx264 @ 0037bde0] frame=1722 QP=23.44 NAL=2 Slice:P Poc:408 I:34 P:381 SKIP:1205 size=2858 bytes [libx264 @ 0037bde0] frame=1723 QP=24.47 NAL=2 Slice:P Poc:410 I:21 P:323 SKIP:1276 size=1718 bytes [libx264 @ 0037bde0] frame=1724 QP=23.30 NAL=2 Slice:P Poc:412 I:22 P:360 SKIP:1238 size=2912 bytes [libx264 @ 0037bde0] frame=1725 QP=22.75 NAL=2 Slice:P Poc:414 I:56 P:325 SKIP:1239 size=3104 bytes [libx264 @ 0037bde0] frame=1726 QP=23.51 NAL=2 Slice:P Poc:416 I:24 P:313 SKIP:1283 size=1604 bytes [libx264 @ 0037bde0] frame=1727 QP=24.07 NAL=2 Slice:P Poc:418 I:36 P:323 SKIP:1261 size=2827 bytes [libx264 @ 0037bde0] frame=1728 QP=21.20 NAL=2 Slice:P Poc:420 I:200 P:475 SKIP:945 size=5466 bytes [libx264 @ 0037bde0] frame=1729 QP=22.19 NAL=2 Slice:P Poc:422 I:43 P:335 SKIP:1242 size=1689 bytes [libx264 @ 0037bde0] frame=1730 QP=19.44 NAL=2 Slice:P Poc:430 I:257 P:513 SKIP:850 size=7709 bytes [libx264 @ 0037bde0] frame=1731 QP=21.75 NAL=2 Slice:B Poc:426 I:41 P:352 SKIP:1223 size=764 bytes [libx264 @ 0037bde0] frame=1732 QP=27.72 NAL=0 Slice:B Poc:424 I:1 P:300 SKIP:1317 size=374 bytes [libx264 @ 0037bde0] frame=1733 QP=24.28 NAL=0 Slice:B Poc:428 I:7 P:130 SKIP:1483 size=155 bytes [libx264 @ 0037bde0] frame=1734 QP=19.04 NAL=2 Slice:P Poc:438 I:145 P:244 SKIP:1231 size=3008 bytes [libx264 @ 0037bde0] frame=1735 QP=21.91 NAL=2 Slice:B Poc:434 I:20 P:132 SKIP:1466 size=285 bytes [libx264 @ 0037bde0] frame=1736 QP=25.05 NAL=0 Slice:B Poc:432 I:7 P:135 SKIP:1472 size=256 bytes [libx264 @ 0037bde0] frame=1737 QP=23.18 NAL=0 Slice:B Poc:436 I:30 P:120 SKIP:1470 size=322 bytes [libx264 @ 0037bde0] frame=1738 QP=18.10 NAL=2 Slice:P Poc:446 I:4 P:120 SKIP:1496 size=690 bytes [libx264 @ 0037bde0] frame=1739 QP=25.91 NAL=2 Slice:B Poc:442 I:11 P:86 SKIP:1523 size=139 bytes [libx264 @ 0037bde0] frame=1740 QP=22.89 NAL=0 Slice:B Poc:440 I:7 P:36 SKIP:1577 size=93 bytes [libx264 @ 0037bde0] frame=1741 QP=32.00 NAL=0 Slice:B Poc:444 I:5 P:32 SKIP:1583 size=78 bytes [libx264 @ 0037bde0] frame=1742 QP=18.97 NAL=2 Slice:P Poc:454 I:52 P:333 SKIP:1235 size=3098 bytes [libx264 @ 0037bde0] frame=1743 QP=19.46 NAL=2 Slice:B Poc:450 I:14 P:185 SKIP:1421 size=238 bytes [libx264 @ 0037bde0] frame=1744 QP=25.78 NAL=0 Slice:B Poc:448 I:3 P:157 SKIP:1460 size=154 bytes [libx264 @ 0037bde0] frame=1745 QP=32.00 NAL=0 Slice:B Poc:452 I:0 P:101 SKIP:1519 size=113 bytes [libx264 @ 0037bde0] frame=1746 QP=20.38 NAL=2 Slice:P Poc:462 I:7 P:220 SKIP:1393 size=1053 bytes [libx264 @ 0037bde0] frame=1747 QP=22.02 NAL=2 Slice:B Poc:458 I:6 P:145 SKIP:1469 size=175 bytes [libx264 @ 0037bde0] frame=1748 QP=28.72 NAL=0 Slice:B Poc:456 I:3 P:84 SKIP:1533 size=113 bytes [libx264 @ 0037bde0] frame=1749 QP=32.00 NAL=0 Slice:B Poc:460 I:2 P:38 SKIP:1580 size=75 bytes [libx264 @ 0037bde0] frame=1750 QP=19.84 NAL=2 Slice:P Poc:470 I:3 P:113 SKIP:1504 size=593 bytes [libx264 @ 0037bde0] frame=1751 QP=30.00 NAL=2 Slice:B Poc:466 I:10 P:100 SKIP:1510 size=153 bytes [libx264 @ 0037bde0] frame=1752 QP=27.91 NAL=0 Slice:B Poc:464 I:5 P:62 SKIP:1553 size=108 bytes [libx264 @ 0037bde0] frame=1753 QP=32.00 NAL=0 Slice:B Poc:468 I:6 P:43 SKIP:1571 size=94 bytes [libx264 @ 0037bde0] frame=1754 QP=20.03 NAL=2 Slice:P Poc:478 I:4 P:93 SKIP:1523 size=344 bytes [libx264 @ 0037bde0] frame=1755 QP=21.25 NAL=2 Slice:B Poc:474 I:19 P:71 SKIP:1530 size=161 bytes [libx264 @ 0037bde0] frame=1756 QP=32.00 NAL=0 Slice:B Poc:472 I:2 P:47 SKIP:1571 size=78 bytes [libx264 @ 0037bde0] frame=1757 QP=32.00 NAL=0 Slice:B Poc:476 I:4 P:39 SKIP:1577 size=74 bytes [libx264 @ 0037bde0] frame=1758 QP=19.92 NAL=2 Slice:P Poc:486 I:6 P:171 SKIP:1443 size=1002 bytes [libx264 @ 0037bde0] frame=1759 QP=29.00 NAL=2 Slice:B Poc:482 I:10 P:92 SKIP:1518 size=139 bytes [libx264 @ 0037bde0] frame=1760 QP=32.00 NAL=0 Slice:B Poc:480 I:7 P:48 SKIP:1565 size=94 bytes [libx264 @ 0037bde0] frame=1761 QP=28.72 NAL=0 Slice:B Poc:484 I:6 P:58 SKIP:1556 size=106 bytes [libx264 @ 0037bde0] frame=1762 QP=18.98 NAL=2 Slice:P Poc:494 I:5 P:97 SKIP:1518 size=480 bytes [libx264 @ 0037bde0] frame=1763 QP=19.77 NAL=2 Slice:B Poc:490 I:17 P:81 SKIP:1522 size=175 bytes [libx264 @ 0037bde0] frame=1764 QP=32.00 NAL=0 Slice:B Poc:488 I:3 P:54 SKIP:1563 size=85 bytes [libx264 @ 0037bde0] frame=1765 QP=32.00 NAL=0 Slice:B Poc:492 I:3 P:38 SKIP:1579 size=72 bytes [libx264 @ 0037bde0] frame=1766 QP=18.46 NAL=2 Slice:P Poc:498 I:9 P:5 SKIP:1606 size=65 bytes [libx264 @ 0037bde0] frame=1767 QP=28.72 NAL=0 Slice:B Poc:496 I:3 P:75 SKIP:1542 size=105 bytes [output stream 0:0 @ 037b1c60] EOF on sink link output stream 0:0:default. [output stream 0:1 @ 037a3040] EOF on sink link output stream 0:1:default. No more output streams to write to, finishing. [libx264 @ 0037bde0] frame=1768 QP=13.37 NAL=3 Slice:I Poc:0 I:1620 P:0 SKIP:0 size=44178 bytes [libx264 @ 0037bde0] frame=1769 QP=19.60 NAL=2 Slice:P Poc:8 I:3 P:32 SKIP:1585 size=121 bytes [libx264 @ 0037bde0] frame=1770 QP=30.00 NAL=2 Slice:B Poc:4 I:3 P:2 SKIP:1615 size=31 bytes [libx264 @ 0037bde0] frame=1771 QP=32.00 NAL=0 Slice:B Poc:2 I:0 P:8 SKIP:1612 size=32 bytes [libx264 @ 0037bde0] frame=1772 QP=32.00 NAL=0 Slice:B Poc:6 I:1 P:5 SKIP:1614 size=32 bytes [libx264 @ 0037bde0] frame=1773 QP=19.76 NAL=2 Slice:P Poc:16 I:2 P:77 SKIP:1541 size=333 bytes [libx264 @ 0037bde0] frame=1774 QP=30.00 NAL=2 Slice:B Poc:12 I:1 P:21 SKIP:1598 size=51 bytes [libx264 @ 0037bde0] frame=1775 QP=32.00 NAL=0 Slice:B Poc:10 I:1 P:18 SKIP:1601 size=42 bytes [libx264 @ 0037bde0] frame=1776 QP=32.00 NAL=0 Slice:B Poc:14 I:1 P:23 SKIP:1596 size=51 bytes [libx264 @ 0037bde0] frame=1777 QP=19.30 NAL=2 Slice:P Poc:24 I:2 P:31 SKIP:1587 size=115 bytes [libx264 @ 0037bde0] frame=1778 QP=30.00 NAL=2 Slice:B Poc:20 I:1 P:6 SKIP:1613 size=35 bytes [libx264 @ 0037bde0] frame=1779 QP=32.00 NAL=0 Slice:B Poc:18 I:0 P:6 SKIP:1614 size=31 bytes [libx264 @ 0037bde0] frame=1780 QP=32.00 NAL=0 Slice:B Poc:22 I:0 P:6 SKIP:1614 size=31 bytes [libx264 @ 0037bde0] frame=1781 QP=18.68 NAL=2 Slice:P Poc:32 I:1 P:20 SKIP:1599 size=79 bytes [libx264 @ 0037bde0] frame=1782 QP=30.00 NAL=2 Slice:B Poc:28 I:0 P:5 SKIP:1615 size=30 bytes [libx264 @ 0037bde0] frame=1783 QP=32.00 NAL=0 Slice:B Poc:26 I:1 P:5 SKIP:1614 size=31 bytes [libx264 @ 0037bde0] frame=1784 QP=32.00 NAL=0 Slice:B Poc:30 I:1 P:3 SKIP:1616 size=28 bytes [libx264 @ 0037bde0] frame=1785 QP=19.31 NAL=2 Slice:P Poc:40 I:1 P:19 SKIP:1600 size=88 bytes [libx264 @ 0037bde0] frame=1786 QP=30.00 NAL=2 Slice:B Poc:36 I:1 P:5 SKIP:1614 size=32 bytes [libx264 @ 0037bde0] frame=1787 QP=32.00 NAL=0 Slice:B Poc:34 I:0 P:4 SKIP:1616 size=27 bytes [libx264 @ 0037bde0] frame=1788 QP=32.00 NAL=0 Slice:B Poc:38 I:0 P:7 SKIP:1613 size=32 bytes [libx264 @ 0037bde0] frame=1789 QP=19.96 NAL=2 Slice:P Poc:48 I:1 P:25 SKIP:1594 size=134 bytes [libx264 @ 0037bde0] frame=1790 QP=32.00 NAL=2 Slice:B Poc:44 I:0 P:9 SKIP:1611 size=37 bytes [libx264 @ 0037bde0] frame=1791 QP=32.00 NAL=0 Slice:B Poc:42 I:1 P:6 SKIP:1613 size=32 bytes [libx264 @ 0037bde0] frame=1792 QP=32.00 NAL=0 Slice:B Poc:46 I:1 P:7 SKIP:1612 size=33 bytes [libx264 @ 0037bde0] frame=1793 QP=19.86 NAL=2 Slice:P Poc:56 I:1 P:13 SKIP:1606 size=66 bytes [libx264 @ 0037bde0] frame=1794 QP=30.00 NAL=2 Slice:B Poc:52 I:1 P:5 SKIP:1614 size=33 bytes [libx264 @ 0037bde0] frame=1795 QP=32.00 NAL=0 Slice:B Poc:50 I:0 P:7 SKIP:1613 size=32 bytes [libx264 @ 0037bde0] frame=1796 QP=32.00 NAL=0 Slice:B Poc:54 I:0 P:6 SKIP:1614 size=31 bytes [libx264 @ 0037bde0] frame=1797 QP=20.18 NAL=2 Slice:P Poc:64 I:2 P:5 SKIP:1613 size=46 bytes [libx264 @ 0037bde0] frame=1798 QP=30.00 NAL=2 Slice:B Poc:60 I:0 P:6 SKIP:1614 size=33 bytes [libx264 @ 0037bde0] frame=1799 QP=32.00 NAL=0 Slice:B Poc:58 I:1 P:4 SKIP:1615 size=31 bytes [libx264 @ 0037bde0] frame=1800 QP=32.00 NAL=0 Slice:B Poc:62 I:1 P:5 SKIP:1614 size=33 bytes [libx264 @ 0037bde0] frame=1801 QP=21.54 NAL=2 Slice:P Poc:72 I:1 P:2 SKIP:1617 size=37 bytes [libx264 @ 0037bde0] frame=1802 QP=30.00 NAL=2 Slice:B Poc:68 I:1 P:3 SKIP:1616 size=30 bytes [libx264 @ 0037bde0] frame=1803 QP=32.00 NAL=0 Slice:B Poc:66 I:0 P:4 SKIP:1616 size=27 bytes [libx264 @ 0037bde0] frame=1804 QP=32.00 NAL=0 Slice:B Poc:70 I:0 P:4 SKIP:1616 size=27 bytes [libx264 @ 0037bde0] frame=1805 QP=22.54 NAL=2 Slice:P Poc:80 I:0 P:5 SKIP:1615 size=42 bytes [libx264 @ 0037bde0] frame=1806 QP=29.00 NAL=2 Slice:B Poc:76 I:0 P:4 SKIP:1616 size=29 bytes [libx264 @ 0037bde0] frame=1807 QP=32.00 NAL=0 Slice:B Poc:74 I:1 P:4 SKIP:1615 size=30 bytes [libx264 @ 0037bde0] frame=1808 QP=32.00 NAL=0 Slice:B Poc:78 I:1 P:3 SKIP:1616 size=27 bytes [libx264 @ 0037bde0] frame=1809 QP=27.00 NAL=2 Slice:P Poc:88 I:0 P:1 SKIP:1619 size=29 bytes [libx264 @ 0037bde0] frame=1810 QP=30.00 NAL=2 Slice:B Poc:84 I:1 P:2 SKIP:1617 size=28 bytes [libx264 @ 0037bde0] frame=1811 QP=32.00 NAL=0 Slice:B Poc:82 I:0 P:3 SKIP:1617 size=26 bytes [libx264 @ 0037bde0] frame=1812 QP=32.00 NAL=0 Slice:B Poc:86 I:0 P:4 SKIP:1616 size=28 bytes [libx264 @ 0037bde0] frame=1813 QP=30.00 NAL=2 Slice:P Poc:96 I:0 P:0 SKIP:1620 size=28 bytes [libx264 @ 0037bde0] frame=1814 QP=30.00 NAL=2 Slice:B Poc:92 I:0 P:4 SKIP:1616 size=30 bytes [libx264 @ 0037bde0] frame=1815 QP=32.00 NAL=0 Slice:B Poc:90 I:1 P:2 SKIP:1617 size=26 bytes [libx264 @ 0037bde0] frame=1816 QP=32.00 NAL=0 Slice:B Poc:94 I:1 P:2 SKIP:1617 size=26 bytes [libx264 @ 0037bde0] frame=1817 QP=32.00 NAL=2 Slice:P Poc:98 I:0 P:1 SKIP:1619 size=30 bytes [libvo_aacenc @ 037affe0] Trying to remove 704 more samples than there are in the queue frame= 1818 fps= 36 q=-1.0 Lsize= 38528kB time=00:01:12.73 bitrate=4339.3kbits/s video:37341kB audio:1137kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.129302% Input file #0 (input_file.avi): Input stream #0:0 (video): 1818 packets read (261792000 bytes); 1818 frames decoded; Input stream #0:1 (audio): 3635 packets read (13962240 bytes); 3635 frames decoded (3490560 samples); Total: 5453 packets (275754240 bytes) demuxed Output file #0 (test_out.mp4): Output stream #0:0 (video): 1818 frames encoded; 1818 packets muxed (38237329 bytes); Output stream #0:1 (audio): 3409 frames encoded (3490560 samples); 3411 packets muxed (1164288 bytes); Total: 5229 packets (39401617 bytes) muxed 5453 frames successfully decoded, 0 decoding errors [AVIOContext @ 0037cc00] Statistics: 60 seeks, 5471 writeouts [libx264 @ 0037bde0] frame I:23 Avg QP:23.53 size: 44668 [libx264 @ 0037bde0] frame P:1226 Avg QP:25.57 size: 25760 [libx264 @ 0037bde0] frame B:569 Avg QP:27.20 size: 9891 [libx264 @ 0037bde0] consecutive B-frames: 44.0% 42.1% 2.0% 11.9% [libx264 @ 0037bde0] mb I I16..4: 5.0% 92.4% 2.6% [libx264 @ 0037bde0] mb P I16..4: 1.4% 40.7% 0.1% P16..4: 31.7% 12.2% 6.2% 0.0% 0.0% skip: 7.7% [libx264 @ 0037bde0] mb B I16..4: 0.4% 9.1% 0.0% B16..8: 31.6% 4.8% 1.3% direct: 9.0% skip:43.7% L0:49.7% L1:33.9% BI:16.4% [libx264 @ 0037bde0] 8x8 transform intra:96.1% inter:87.7% [libx264 @ 0037bde0] coded y,uvDC,uvAC intra: 87.8% 81.3% 22.5% inter: 45.0% 42.3% 3.5% [libx264 @ 0037bde0] i16 v,h,dc,p: 14% 46% 17% 23% [libx264 @ 0037bde0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 10% 67% 2% 2% 2% 2% 2% 5% [libx264 @ 0037bde0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 62% 14% 2% 2% 2% 3% 2% 3% [libx264 @ 0037bde0] i8c dc,h,v,p: 55% 23% 20% 2% [libx264 @ 0037bde0] Weighted P-Frames: Y:5.6% UV:2.2% [libx264 @ 0037bde0] ref P L0: 59.9% 15.5% 16.2% 8.1% 0.2% [libx264 @ 0037bde0] ref B L0: 88.6% 11.2% 0.2% [libx264 @ 0037bde0] ref B L1: 99.2% 0.8% [libx264 @ 0037bde0] kb/s:4206.45 [AVIOContext @ 00379320] Statistics: 276048100 bytes read, 7 seeks ffprobe 2 --------- ffprobe -bitexact -print_format default=nw=1 -select_streams v -show_streams -show_format test_out.mp4 ffprobe version N-66232-g5e3da25 Copyright (c) 2007-2014 the FFmpeg developers built on Sep 10 2014 22:01:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 / 56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_out.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.4.101 Duration: 00:01:12.75, start: 0.033333, bitrate: 4338 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 4206 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler index=0 codec_name=h264 profile=High codec_type=video codec_time_base=1/50 codec_tag_string=avc1 codec_tag=0x31637661 width=720 height=576 has_b_frames=2 sample_aspect_ratio=16:15 display_aspect_ratio=4:3 pix_fmt=yuv420p level=30 color_range=N/A color_space=unknown timecode=N/A id=N/A r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/12800 start_pts=0 start_time=0.000000 duration_ts=930816 duration=72.720000 bit_rate=4206526 max_bit_rate=N/A bits_per_raw_sample=8 nb_frames=1818 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 TAG:language=und TAG:handler_name=VideoHandler filename=test_out.mp4 nb_streams=2 nb_programs=0 format_name=mov,mp4,m4a,3gp,3g2,mj2 start_time=-0.033333 duration=72.754000 size=39452564 bit_rate=4338187 probe_score=100 TAG:major_brand=isom TAG:minor_version=512 TAG:compatible_brands=isomiso2avc1mp41 TAG:encoder=Lavf56.4.101 François Visagie T: +27 (83) 326-4358 F: +27 (86) 511-3490 E: francois.visa...@gmail.com _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user