[FFmpeg-user] ffmpeg convert to wrong duration using dvd2concat

Etienne Desautels etienne.desautels at gmail.com
Tue Jan 26 15:53:31 CET 2016


On 2016-01-21, at 05:36, Nicolas George wrote:
> There is so much in the VOB files of a DVD image that anything can go wrong,
> especially with so-called anti-piracy measures. Full-fledged players have
> counter-measures, but not simple tools.

Yes, DVDs are a bit (too) complex. But in my present case there's no anti-piracy measure, at least...

>> file 'subfile,,start,0,end,312870912,,:/home/mmac/iso/mountpoint/VIDEO_TS/VTS_01_1.VOB'
>> duration 00:04:57.734
>> 
>> file 'subfile,,start,312870912,end,625534976,,:/home/mmac/iso/mountpoint/VIDEO_TS/VTS_01_1.VOB'
>> duration 00:04:57.433
> 
> I suggest you extract the given segments of this file into temp files and
> try to decode them to see if they match the declared duration.

I did some tests. If I extract the stream directly from de .VOB or from the .iso, there's no problem. Output matches the declared duration. But if I extract it using concat, that gives me many buffer underflow errors and then the time jumps and duration is wrong on playback, stall on 1 frame for the added duration. If I extract the stream to .mkv instead of .mpg that gives me the same results with the exception that instead of the underflow errors I got this warning: Starting new cluster due to timestamp.

To MPEG from .VOB
----------------------------
ffmpeg -i iso/mountpoint/VIDEO_TS/VTS_01_1.VOB -map 0:1 -c:v copy out.mpg
ffmpeg version N-75845-g079d553 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
  configuration: --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  4.100 / 57.  4.100
  libavformat    57.  3.100 / 57.  3.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 10.100 /  6. 10.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpeg, from 'iso/mountpoint/VIDEO_TS/VTS_01_1.VOB':
  Duration: 00:09:55.14, start: 0.228411, bitrate: 8408 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Output #0, mpeg, to 'out.mpg':
  Metadata:
    encoder         : Lavf57.3.100
    Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 2970 fps=0.0 q=-1.0 size=   97136kB time=00:01:39.06 bitrate=8032.4kbits
frame= 6505 fps=6504 q=-1.0 size=  212748kB time=00:03:37.01 bitrate=8030.9kbits
frame=10043 fps=6694 q=-1.0 size=  328476kB time=00:05:35.06 bitrate=8030.8kbits
frame=13604 fps=6801 q=-1.0 size=  444964kB time=00:07:33.88 bitrate=8031.0kbits
frame=17194 fps=6876 q=-1.0 size=  562380kB time=00:09:33.67 bitrate=8030.7kbits
frame=17837 fps=6875 q=-1.0 Lsize=  583416kB time=00:09:55.12 bitrate=8030.8kbits/s    
video:581203kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.380809%

To MPEG from concat
------------------------------
ffmpeg -f concat -safe 0 -i concat.txt -map 0:0 -c:v copy out.mpg
ffmpeg version N-75845-g079d553 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
  configuration: --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  4.100 / 57.  4.100
  libavformat    57.  3.100 / 57.  3.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 10.100 /  6. 10.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, concat, from 'concat.txt':
  Duration: 00:09:55.17, start: 0.228411, bitrate: 0 kb/s
    Stream #0:0: Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Output #0, mpeg, to 'out.mpg':
  Metadata:
    encoder         : Lavf57.3.100
    Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 3035 fps=0.0 q=-1.0 size=   99254kB time=00:01:41.23 bitrate=8031.7kbits
frame= 6585 fps=6585 q=-1.0 size=  215376kB time=00:03:39.68 bitrate=8031.3kbits
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=361 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=2390 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=4431 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=6472 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=8513 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=10554 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=12595 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=14636 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=16677 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=18718 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=20759 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=22800 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=24841 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=26882 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28923 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30964 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=33005 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=35046 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=37087 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=39128 size=40148
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=1017 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=3058 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=5099 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=7140 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=9181 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=11222 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=13263 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=15304 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17345 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19386 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21427 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23468 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25509 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27550 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29591 size=30611
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=1017 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=3058 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=5099 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=7140 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=9181 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=11222 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=13263 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=15304 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17345 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19386 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21427 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23468 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25509 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27550 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29591 size=30808
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=4906 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=6947 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=8988 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=11029 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=13070 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=15111 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17152 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19193 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21234 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23275 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25316 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27357 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29398 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31439 size=32295
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=7304 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=9345 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=11386 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=13427 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=15468 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17509 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19550 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21591 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23632 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25673 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27714 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29755 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31796 size=32971
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=9026 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=11067 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=13108 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=15149 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17190 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19231 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21272 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23313 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25354 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27395 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29436 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31477 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=10356 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=12397 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=14438 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=16479 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=18520 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=20561 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=22602 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=24643 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=26684 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28725 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30766 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=32807 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=13724 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=15765 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17806 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19847 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21888 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23929 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25970 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28011 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30052 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=32093 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=15050 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17091 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19132 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21173 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23214 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25255 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27296 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29337 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31378 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=16380 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=18421 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=20462 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=22503 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=24544 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=26585 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28626 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30667 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=32708 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=17707 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19748 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21789 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23830 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25871 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27912 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29953 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31994 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=19033 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=21074 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23115 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25156 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27197 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29238 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31279 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=33320 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=20363 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=22404 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=24445 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=26486 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28527 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30568 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=32609 size=33366
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=23731 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25772 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27813 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29854 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31895 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=25057 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=27098 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=29139 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=31180 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=33221 size=33367
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=26378 size=40449
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28419 size=40449
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30460 size=40449
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=32501 size=40449
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=34542 size=40449
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=36583 size=40449
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=38624 size=40449
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=20622 size=30816
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=22663 size=30816
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=24704 size=30816
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=26745 size=30816
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28786 size=30816
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=24499 size=30999
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=26540 size=30999
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28581 size=30999
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30622 size=30999
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=28197 size=32704
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=30238 size=32704
[mpeg @ 0x35903a0] buffer underflow st=0 bufi=32279 size=32704
frame=10010 fps=6673 q=-1.0 size=  327398kB time=00:10:31.47 bitrate=4247.3kbits
frame=13558 fps=6778 q=-1.0 size=  443446kB time=00:12:29.85 bitrate=4844.5kbits
frame=17166 fps=6866 q=-1.0 size=  561462kB time=00:14:30.24 bitrate=5285.3kbits
frame=17837 fps=6866 q=-1.0 Lsize=  583414kB time=00:14:52.63 bitrate=5354.2kbits/s    
video:581203kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.380464%

To MKV from concat
---------------------------
ffmpeg -fflags +genpts -f concat -safe 0 -i concat.txt -map 0:0 -c:v copy out.mkv
ffmpeg version N-75845-g079d553 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
  configuration: --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  4.100 / 57.  4.100
  libavformat    57.  3.100 / 57.  3.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 10.100 /  6. 10.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, concat, from 'concat.txt':
  Duration: 00:09:55.17, start: 0.228411, bitrate: 0 kb/s
    Stream #0:0: Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[matroska @ 0x3ce0920] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf57.3.100
    Stream #0:0: Video: mpeg2video (mpg2 / 0x3267706D), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 8000 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 4161 fps=0.0 q=-1.0 size=  135619kB time=00:02:18.77 bitrate=8005.8kbits
frame= 8747 fps=8745 q=-1.0 size=  285087kB time=00:04:51.79 bitrate=8003.8kbits
[matroska @ 0x3ce0920] Starting new cluster due to timestamp
frame=13212 fps=8806 q=-1.0 size=  430617kB time=00:12:18.27 bitrate=4778.2kbits
frame=17837 fps=8918 q=-1.0 Lsize=  581387kB time=00:14:52.60 bitrate=5335.8kbits/s    
video:581203kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.031633%

Regards,
Etienne


More information about the ffmpeg-user mailing list