[FFmpeg-trac] #2111(undetermined:new): files made by ffmpeg cannot correctly be playbacked with panasonic hdd recoder.

FFmpeg trac at avcodec.org
Fri Jan 25 11:16:55 CET 2013


#2111: files made by ffmpeg cannot correctly be playbacked with panasonic hdd
recoder.
-------------------------------------+-------------------------------------
             Reporter:  bonconboy    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by bonconboy):

 > Thank you for explaining!
 You are welcome!

 > $ ffmpeg -i 00003.MTS -vcodec copy -acodec copy out.m2ts
 Fine! though an alert appears.
 [mpegts @ 0x10288de00] st:0 PTS: 480479 DTS: 480479 < 480480 invalid,
 clipping
 {{{
 ffmpeg  -i 00003.MTS -vcodec copy -acodec copy 00003_MTS_to_m2ts.m2ts
 ffmpeg version 1.0.git-5a2f3f0 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan  2 2013 18:09:20 with gcc 4.7.2 (MacPorts gcc47 4.7.2_2)
   configuration: --prefix=/sw --cc=gcc-mp-4.7 --cxx=g++-mp-4.7 --extra-
 cflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --extra-
 cxxflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --enable-gpl
 --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx
 --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-
 libvorbis --enable-libx264 --enable-nonfree --enable-libfaac --enable-
 libopenjpeg --enable-libschroedinger --enable-libmodplug --enable-libxvid
 --enable-libfreetype --enable-openssl --enable-avfilter --enable-filters
 --arch=x86_64 --cpu=corei7-avx --enable-libass --enable-libbluray
 --enable-libopencore_amrwb --enable-libopencore_amrnb
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 85.100 / 54. 85.100
   libavformat    54. 59.100 / 54. 59.100
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 30.102 /  3. 30.102
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [mpegts @ 0x10280ec00] max_analyze_duration 5000000 reached at 5005000
 Input #0, mpegts, from '00003.MTS':
   Duration: 00:00:15.01, start: 599.966644, bitrate: 1231 kb/s
   Program 1
     Stream #0:0[0x1011](eng): Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn,
 59.94 tbc
     Stream #0:1[0x1100](und): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
 stereo, fltp, 96 kb/s
 Output #0, mpegts, to '00003_MTS_to_m2ts.m2ts':
   Metadata:
     encoder         : Lavf54.59.100
     Stream #0:0(eng): Video: h264 ([27][0][0][0] / 0x001B), yuv420p,
 720x480 [SAR 32:27 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
     Stream #0:1(und): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 96
 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 0x10288de00] st:0 PTS: 480479 DTS: 480479 < 480480 invalid,
 clipping
 frame=  449 fps=0.0 q=-1.0 Lsize=    2239kB time=00:00:15.04
 bitrate=1219.6kbits/s
 video:1802kB audio:176kB subtitle:0 global headers:0kB muxing overhead
 13.233755%
 }}}

 I paste additional results of some tests though it may lead to confusion.
 Converting both mp4 and mkv files made by ffmpeg to m2ts files by ffmpeg,
 both mp4 and mkv files are smoothly playbacked in Step 3. But the m2ts
 file converting from the mkv file by ffmpeg is recognized as 1 minite 20
 seconds and the last 2 seconds of it isn't playbacked by panasonic hdd
 recorder in Step 3.
 Making mp4 by ffmpeg
 {{{
 ffmpeg  -i input.mp4  -t 15  -vf "fifo, scale= 720:480" -vcodec libx264
 -aspect 16:9 -r 29.97 -acodec ac3 -ac 2 -ar 48000 -ab 96000 o_ff_mp4.mp4
 ffmpeg version 1.0.git-5a2f3f0 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan  2 2013 18:09:20 with gcc 4.7.2 (MacPorts gcc47 4.7.2_2)
   configuration: --prefix=/sw --cc=gcc-mp-4.7 --cxx=g++-mp-4.7 --extra-
 cflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --extra-
 cxxflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --enable-gpl
 --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx
 --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-
 libvorbis --enable-libx264 --enable-nonfree --enable-libfaac --enable-
 libopenjpeg --enable-libschroedinger --enable-libmodplug --enable-libxvid
 --enable-libfreetype --enable-openssl --enable-avfilter --enable-filters
 --arch=x86_64 --cpu=corei7-avx --enable-libass --enable-libbluray
 --enable-libopencore_amrwb --enable-libopencore_amrnb
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 85.100 / 54. 85.100
   libavformat    54. 59.100 / 54. 59.100
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 30.102 /  3. 30.102
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2013-01-02 11:53:23
   Duration: 00:04:11.16, start: 0.000000, bitrate: 5772 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1920x1080, 5578 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 192 kb/s
     Metadata:
       creation_time   : 2013-01-02 11:53:24
       handler_name    : IsoMedia File Produced by Google, 5-11-2011
 [libx264 @ 0x102873000] using SAR=32/27
 [libx264 @ 0x102873000] using cpu capabilities: MMX2 SSE2Fast SSSE3
 FastShuffle SSE4.2 AVX
 [libx264 @ 0x102873000] profile High, level 3.0
 [libx264 @ 0x102873000] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft
 2003-2012 - 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=12
 lookahead_threads=2 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 'o_ff_mp4.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     encoder         : Lavf54.59.100
     Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 11988 tbn, 29.97 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz,
 stereo, fltp, 96 kb/s
     Metadata:
       creation_time   : 2013-01-02 11:53:24
       handler_name    : IsoMedia File Produced by Google, 5-11-2011
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> libx264)
   Stream #0:1 -> #0:1 (aac -> ac3)
 Press [q] to stop, [?] for help
 frame=   78 fps=0.0 q=29.0 size=      49kB time=00:00:02.45 bitrate=
 162.3kbits/frame=  145 fps=144 q=29.0 size=     225kB time=00:00:04.89
 bitrate= 376.5kbits/frame=  210 fps=140 q=29.0 size=     417kB
 time=00:00:07.32 bitrate= 466.7kbits/frame=  277 fps=138 q=29.0 size=
 577kB time=00:00:09.27 bitrate= 509.8kbits/frame=  328 fps=130 q=29.0
 size=     844kB time=00:00:11.22 bitrate= 616.1kbits/frame=  370 fps=122
 q=29.0 size=    1155kB time=00:00:12.66 bitrate= 746.7kbits/frame=  418
 fps=119 q=29.0 size=    1463kB time=00:00:14.13 bitrate= 847.9kbits/frame=
 450 fps=108 q=-1.0 Lsize=    1956kB time=00:00:15.00 bitrate=1067.9kbits/s
 dup=75 drop=0
 video:1770kB audio:176kB subtitle:0 global headers:0kB muxing overhead
 0.483340%
 [libx264 @ 0x102873000] frame I:10    Avg QP:21.48  size: 14929
 [libx264 @ 0x102873000] frame P:295   Avg QP:23.69  size:  4984
 [libx264 @ 0x102873000] frame B:145   Avg QP:25.69  size:  1329
 [libx264 @ 0x102873000] consecutive B-frames: 40.7% 48.0%  3.3%  8.0%
 [libx264 @ 0x102873000] mb I  I16..4: 17.6% 67.6% 14.7%
 [libx264 @ 0x102873000] mb P  I16..4:  5.7% 12.9%  1.4%  P16..4: 31.8%
 9.3%  4.0%  0.0%  0.0%    skip:34.8%
 [libx264 @ 0x102873000] mb B  I16..4:  0.2%  0.3%  0.1%  B16..8: 25.6%
 3.7%  0.7%  direct: 1.7%  skip:67.6%  L0:30.1% L1:64.4% BI: 5.5%
 [libx264 @ 0x102873000] 8x8 transform intra:64.7% inter:77.3%
 [libx264 @ 0x102873000] coded y,uvDC,uvAC intra: 42.7% 60.8% 18.1% inter:
 14.1% 20.1% 0.8%
 [libx264 @ 0x102873000] i16 v,h,dc,p: 35% 30%  6% 30%
 [libx264 @ 0x102873000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 22% 22%  4%  6%
 6%  7%  5%  4%
 [libx264 @ 0x102873000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 22% 13%  4%  8%
 8%  8%  5%  3%
 [libx264 @ 0x102873000] i8c dc,h,v,p: 56% 21% 18%  5%
 [libx264 @ 0x102873000] Weighted P-Frames: Y:12.5% UV:8.8%
 [libx264 @ 0x102873000] ref P L0: 65.6% 18.3% 11.6%  4.2%  0.3%
 [libx264 @ 0x102873000] ref B L0: 87.7% 12.3%  0.0%
 [libx264 @ 0x102873000] ref B L1: 99.7%  0.3%
 [libx264 @ 0x102873000] kb/s:965.54
 }}}

 Converting mp4 to m2ts
 {{{
 ffmpeg  -i o_ff_mp4.mp4 -bsf h264_mp4toannexb -vcodec copy -acodec copy
 o_ff_mp4_to_m2ts.m2ts
 ffmpeg version 1.0.git-5a2f3f0 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan  2 2013 18:09:20 with gcc 4.7.2 (MacPorts gcc47 4.7.2_2)
   configuration: --prefix=/sw --cc=gcc-mp-4.7 --cxx=g++-mp-4.7 --extra-
 cflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --extra-
 cxxflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --enable-gpl
 --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx
 --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-
 libvorbis --enable-libx264 --enable-nonfree --enable-libfaac --enable-
 libopenjpeg --enable-libschroedinger --enable-libmodplug --enable-libxvid
 --enable-libfreetype --enable-openssl --enable-avfilter --enable-filters
 --arch=x86_64 --cpu=corei7-avx --enable-libass --enable-libbluray
 --enable-libopencore_amrwb --enable-libopencore_amrnb
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 85.100 / 54. 85.100
   libavformat    54. 59.100 / 54. 59.100
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 30.102 /  3. 30.102
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'o_ff_mp4.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf54.59.100
   Duration: 00:00:15.02, start: 0.005333, bitrate: 1066 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 720x480 [SAR 32:27 DAR 16:9], 965 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn,
 59.94 tbc
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo,
 fltp, 96 kb/s
     Metadata:
       handler_name    : SoundHandler
 Output #0, mpegts, to 'o_ff_mp4_to_m2ts.m2ts':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf54.59.100
     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 720x480
 [SAR 32:27 DAR 16:9], q=2-31, 965 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, 96
 kb/s
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  450 fps=0.0 q=-1.0 Lsize=    2207kB time=00:00:15.00
 bitrate=1204.9kbits/s
 video:1770kB audio:176kB subtitle:0 global headers:0kB muxing overhead
 13.419583%
 }}}

 Making mkv by ffmpeg
 {{{
 ffmpeg  -i input.mp4  -t 15  -vf "fifo, scale= 720:480" -vcodec libx264
 -aspect 16:9 -r 29.97 -acodec ac3 -ac 2 -ar 48000 -ab 96000 o_ff_mkv.mkv
 ffmpeg version 1.0.git-5a2f3f0 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan  2 2013 18:09:20 with gcc 4.7.2 (MacPorts gcc47 4.7.2_2)
   configuration: --prefix=/sw --cc=gcc-mp-4.7 --cxx=g++-mp-4.7 --extra-
 cflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --extra-
 cxxflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --enable-gpl
 --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx
 --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-
 libvorbis --enable-libx264 --enable-nonfree --enable-libfaac --enable-
 libopenjpeg --enable-libschroedinger --enable-libmodplug --enable-libxvid
 --enable-libfreetype --enable-openssl --enable-avfilter --enable-filters
 --arch=x86_64 --cpu=corei7-avx --enable-libass --enable-libbluray
 --enable-libopencore_amrwb --enable-libopencore_amrnb
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 85.100 / 54. 85.100
   libavformat    54. 59.100 / 54. 59.100
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 30.102 /  3. 30.102
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2013-01-02 11:53:23
   Duration: 00:04:11.16, start: 0.000000, bitrate: 5772 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1920x1080, 5578 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 192 kb/s
     Metadata:
       creation_time   : 2013-01-02 11:53:24
       handler_name    : IsoMedia File Produced by Google, 5-11-2011
 [libx264 @ 0x102873000] using SAR=32/27
 [libx264 @ 0x102873000] using cpu capabilities: MMX2 SSE2Fast SSSE3
 FastShuffle SSE4.2 AVX
 [libx264 @ 0x102873000] profile High, level 3.0
 [libx264 @ 0x102873000] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft
 2003-2012 - 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=12
 lookahead_threads=2 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, matroska, to 'o_ff_mkv.mkv':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     encoder         : Lavf54.59.100
     Stream #0:0(und): Video: h264, yuv420p, 720x480 [SAR 32:27 DAR 16:9],
 q=-1--1, 1k tbn, 29.97 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, fltp, 96 kb/s
     Metadata:
       creation_time   : 2013-01-02 11:53:24
       handler_name    : IsoMedia File Produced by Google, 5-11-2011
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> libx264)
   Stream #0:1 -> #0:1 (aac -> ac3)
 Press [q] to stop, [?] for help
 frame=   68 fps=0.0 q=28.0 size=       1kB time=00:00:02.93 bitrate=
 2.8kbits/frame=  125 fps=124 q=29.0 size=     194kB time=00:00:05.14
 bitrate= 308.7kbits/frame=  181 fps=120 q=29.0 size=     385kB
 time=00:00:07.32 bitrate= 430.4kbits/frame=  240 fps=120 q=29.0 size=
 538kB time=00:00:09.75 bitrate= 452.1kbits/frame=  285 fps=113 q=29.0
 size=     862kB time=00:00:11.70 bitrate= 603.5kbits/frame=  321 fps=106
 q=29.0 size=    1182kB time=00:00:13.17 bitrate= 735.0kbits/frame=  364
 fps=103 q=27.0 size=    1513kB time=00:00:14.61 bitrate= 847.9kbits/frame=
 375 fps= 93 q=-1.0 Lsize=    1979kB time=00:00:15.00 bitrate=1080.8kbits/s
 video:1797kB audio:176kB subtitle:0 global headers:0kB muxing overhead
 0.354533%
 [libx264 @ 0x102873000] frame I:9     Avg QP:21.70  size: 16250
 [libx264 @ 0x102873000] frame P:254   Avg QP:23.82  size:  5820
 [libx264 @ 0x102873000] frame B:112   Avg QP:24.80  size:  1916
 [libx264 @ 0x102873000] consecutive B-frames: 44.3% 47.5%  0.8%  7.5%
 [libx264 @ 0x102873000] mb I  I16..4: 17.6% 66.6% 15.8%
 [libx264 @ 0x102873000] mb P  I16..4:  6.9% 15.5%  1.7%  P16..4: 34.4%
 10.8%  4.5%  0.0%  0.0%    skip:26.3%
 [libx264 @ 0x102873000] mb B  I16..4:  0.3%  0.5%  0.1%  B16..8: 32.0%
 5.3%  1.1%  direct: 2.6%  skip:58.2%  L0:32.7% L1:60.6% BI: 6.7%
 [libx264 @ 0x102873000] 8x8 transform intra:64.6% inter:77.1%
 [libx264 @ 0x102873000] coded y,uvDC,uvAC intra: 42.8% 61.5% 18.5% inter:
 17.8% 25.1% 1.1%
 [libx264 @ 0x102873000] i16 v,h,dc,p: 35% 30%  6% 29%
 [libx264 @ 0x102873000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 22% 22%  4%  6%
 6%  7%  5%  5%
 [libx264 @ 0x102873000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 22% 13%  4%  8%
 7%  8%  5%  3%
 [libx264 @ 0x102873000] i8c dc,h,v,p: 56% 21% 19%  5%
 [libx264 @ 0x102873000] Weighted P-Frames: Y:14.2% UV:10.2%
 [libx264 @ 0x102873000] ref P L0: 65.4% 18.6% 11.6%  4.1%  0.3%
 [libx264 @ 0x102873000] ref B L0: 88.8% 11.2%
 [libx264 @ 0x102873000] ref B L1: 99.8%  0.2%
 [libx264 @ 0x102873000] kb/s:982.01
 }}}

 Converting mkv to m2ts by ffmpeg
 {{{
 ffmpeg  -i o_ff_mkv.mkv -bsf h264_mp4toannexb -vcodec copy -acodec copy
 o_ff_mkv_to_m2ts.m2ts
 ffmpeg version 1.0.git-5a2f3f0 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan  2 2013 18:09:20 with gcc 4.7.2 (MacPorts gcc47 4.7.2_2)
   configuration: --prefix=/sw --cc=gcc-mp-4.7 --cxx=g++-mp-4.7 --extra-
 cflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --extra-
 cxxflags='-mtune=native -mno-avx -mfpmath=sse -msse4.2' --enable-gpl
 --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx
 --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-
 libvorbis --enable-libx264 --enable-nonfree --enable-libfaac --enable-
 libopenjpeg --enable-libschroedinger --enable-libmodplug --enable-libxvid
 --enable-libfreetype --enable-openssl --enable-avfilter --enable-filters
 --arch=x86_64 --cpu=corei7-avx --enable-libass --enable-libbluray
 --enable-libopencore_amrwb --enable-libopencore_amrnb
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 85.100 / 54. 85.100
   libavformat    54. 59.100 / 54. 59.100
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 30.102 /  3. 30.102
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, matroska,webm, from 'o_ff_mkv.mkv':
   Metadata:
     MAJOR_BRAND     : mp42
     MINOR_VERSION   : 0
     COMPATIBLE_BRANDS: isommp42
     ENCODER         : Lavf54.59.100
   Duration: 00:00:15.07, start: 0.000000, bitrate: 1076 kb/s
     Stream #0:0(und): Video: h264 (High), yuv420p, 720x480 [SAR 32:27 DAR
 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
 (default)
     Metadata:
       CREATION_TIME   : 1970-01-01 00:00:00
       LANGUAGE        : und
       HANDLER_NAME    : VideoHandler
     Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, fltp, 96 kb/s
 (default)
     Metadata:
       CREATION_TIME   : 2013-01-02 11:53:24
       LANGUAGE        : und
       HANDLER_NAME    : IsoMedia File Produced by Google, 5-11-2011
 Output #0, mpegts, to 'o_ff_mkv_to_m2ts.m2ts':
   Metadata:
     MAJOR_BRAND     : mp42
     MINOR_VERSION   : 0
     COMPATIBLE_BRANDS: isommp42
     encoder         : Lavf54.59.100
     Stream #0:0(und): Video: h264, yuv420p, 720x480 [SAR 186:157 DAR
 279:157], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc (default)
     Metadata:
       CREATION_TIME   : 1970-01-01 00:00:00
       LANGUAGE        : und
       HANDLER_NAME    : VideoHandler
     Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, 96 kb/s (default)
     Metadata:
       CREATION_TIME   : 2013-01-02 11:53:24
       LANGUAGE        : und
       HANDLER_NAME    : IsoMedia File Produced by Google, 5-11-2011
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  375 fps=0.0 q=-1.0 Lsize=    2228kB time=00:00:15.07
 bitrate=1211.0kbits/s
 video:1797kB audio:176kB subtitle:0 global headers:0kB muxing overhead
 12.939667%
 }}}

 In another step, MediaInfo recognizes
 the mp4 file as Frame rate mode: Constant,FrameRate_Mode_Original: VFR
 the mkv file as Frame rate mode: Variable / Variable,
 while I set -r 29.97.
 Why does this happen?

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2111#comment:25>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list