[vdr] merging correctly several .ts files to a single ts file or better mkv

Eric Valette eric.valette at free.fr
Sat Mar 27 13:54:09 CET 2010


O
> Well I do not understand either but try with smplayer and you will see
> strange thing happen (slow motion; out of sync, bad timestand displayed,
> ...). Each .ts works fine in mplayer, not the result of the cat command.
>
> Note that its VC1 + eac3 (HDTV in france).

Note the error below when trying to convert the "cat merged ts files" 
into a mkv

[matroska @ 0x66ace0]st:2 error, non monotone timestamps 147691 >= 
147691ts/s

    ---------------------
 

valette at tri-yann3:~$ ffmpeg -i /multimedia/Video/foo.ts -vcodec copy 
-sameq -acodec copy -sameq -scodec copy -f matroska 
/multimedia/Video/foo.mkv
FFmpeg version UNKNOWN, Copyright (c) 2000-2010 the FFmpeg developers 
 

   built on Mar 21 2010 12:00:07 with gcc 4.4.3 
 

   configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall 
-g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl 
--enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac 
--enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 
--enable-libtheora --enable-libspeex --enable-nonfree 
--disable-stripping --enable-avfilter --enable-libdirac 
--disable-decoder=libdirac --enable-libschroedinger 
--disable-encoder=libschroedinger --enable-avfilter-lavf 
--enable-libopenjpeg --enable-version3 --disable-altivec 
--disable-armv5te --disable-armv6 --disable-vis
   libavutil     50.12. 0 / 50.12. 0
   libavcodec    52.59. 0 / 52.59. 0
   libavformat   52.56. 1 / 52.56. 1
   libavdevice   52. 2. 0 / 52. 2. 0
   libavfilter    1.18. 0 /  1.18. 0
   libswscale     0.10. 0 /  0.10. 0
   libpostproc   51. 2. 0 / 51. 2. 0
[h264 @ 0x667dc0]number of reference frames exceeds max (probably 
corrupt input), discarding one
     Last message repeated 39 times
[h264 @ 0x667dc0]mmco: unref short failure
     Last message repeated 1 times
[mpegts @ 0x64b5f0]max_analyze_duration reached
Input #0, mpegts, from '/multimedia/Video/foo.ts':
   Duration: 02:39:54.00, start: 93129.649278, bitrate: 7907 kb/s
   Program 132
     Stream #0.0[0x2d0]: Video: h264, yuv420p, 1440x1080 [PAR 4:3 DAR 
16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
     Stream #0.1[0x2da](fra): Audio: mp2, 48000 Hz, 2 channels, s16, 256 
kb/s
     Stream #0.2[0x2db](deu): Audio: mp2, 48000 Hz, 2 channels, s16, 256 
kb/s
     Stream #0.3[0x2e4](fra): Subtitle: dvbsub
     Stream #0.4[0x2e5](deu): Subtitle: dvbsub
     Stream #0.5[0x2e6](fra): Subtitle: dvbsub
[matroska @ 0x66ace0]Codec for stream 2 does not use global headers but 
container format requires global headers
Output #0, matroska, to '/multimedia/Video/foo.mkv':
   Metadata:
     encoder         : Lavf52.56.1
     Stream #0.0: Video: libx264, yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 
q=2-31, 1k tbn, 25 tbc
     Stream #0.1(fra): Audio: mp2, 48000 Hz, 2 channels, 256 kb/s
     Stream #0.2(fra): Subtitle: dvbsub
Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
   Stream #0.3 -> #0.2
Press [q] to stop encoding
[matroska @ 0x66ace0]st:2 error, non monotone timestamps 147691 >= 
147691ts/s
     Last message repeated 427 times33841kB time=147.69 
bitrate=7423.8kbits/s
[mpegts @ 0x64b5f0]Invalid timestamps stream=0, pts=1050, 
dts=8589914042, size=22580
[mpegts @ 0x64b5f0]Invalid timestamps stream=0, pts=13650, 
dts=8589926642, size=43564
[mpegts @ 0x64b5f0]Invalid timestamps stream=0, pts=15450, 
dts=8589928442, size=23132
[mpegts @ 0x64b5f0]Invalid timestamps stream=0, pts=6450, 
dts=8589930242, size=30860
[mpegts @ 0x64b5f0]Invalid timestamps stream=0, pts=8250, 
dts=8589932042, size=20924
[mpegts @ 0x64b5f0]Invalid timestamps stream=0, pts=2850, 
dts=8589933842, size=5468
[matroska @ 0x66ace0]st:2 error, non monotone timestamps 147691 >= 147691s/s
Processus arrêté=212 q=-1.0 size=  133850kB time=147.69 
bitrate=7424.3kbits/s








More information about the vdr mailing list