Opened 12 months ago

#5934 new defect

Bad timing when extracting Teletext Subtitles from concatenated files

Reported by: edumj Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I have these 2 files from a DVB recording:

[000.ts https://mega.nz/#!6V8gRaLZ!RQSBy7HY_R3reTRQbygPbK3KNd98Th6lI3cHWd7VfgU]
[001.ts https://mega.nz/#!Pdk3lJxR!tgVdInKWYb7GN2VnonoGABGf2VtZksz9dX8QKh78ltY]

If I try to make a new .ts file with both files (with audio, video and subs), or only with subtitles (I do this to make faster the detection of the visible size of subtitles) with this:

ffmpeg -analyzeduration 40M -probesize 40M -i "concat:000.ts|001.ts" -vn -an -map 0:s:0 -scodec copy -f mpegts "subs.ts"

It seems to work...:

ffmpeg version N-81452-g01aee81 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --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-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 54.100 / 57. 54.100
  libavformat    57. 48.100 / 57. 48.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 54.100 /  6. 54.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] SPS unavailable in decode_picture_timing
[h264 @ 03169060] non-existing PPS 0 referenced
[h264 @ 03169060] decode_slice_header error
[h264 @ 03169060] no frame!
[h264 @ 03169060] mmco: unref short failure
[mpegts @ 0356b4a0] start time for stream 4 is not set in estimate_timings_from_pts
[mpegts @ 0356b4a0] PES packet size mismatch
    Last message repeated 1 times
Input #0, mpegts, from 'concat:000.ts|001.ts':
  Duration: 02:38:41.06, start: 39692.638600, bitrate: 1060 kb/s
  Program 344 
    Metadata:
      service_name    : ?laSexta HD
      service_provider: La Sexta
    Stream #0:0[0x5de](spa,spa): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:1[0x7d1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x7d3](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
    Stream #0:3[0x7d4](und): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 96 kb/s
    Stream #0:4[0x7db](spa): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
  Program 1059 
    Metadata:
      service_name    : ?Energy
      service_provider: ?TELECINCO
  Program 1064 
    Metadata:
      service_name    : ?Cuatro HD
      service_provider: TELECINCO
[mpegts @ 07ed0020] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[null @ 06a57020] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mpegts, to 'subs.ts':
  Metadata:
    encoder         : Lavf57.48.100
    Stream #0:0(spa,spa): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Output #1, null, to 'nul':
  Metadata:
    encoder         : Lavf57.48.100
    Stream #1:0: Video: wrapped_avframe, yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.54.100 wrapped_avframe
    Stream #1:1(spa): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc57.54.100 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #1:0 (h264 (native) -> wrapped_avframe (native))
  Stream #0:2 -> #1:1 (mp2 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[h264 @ 04f23900] co located POCs unavailable
[h264 @ 04f23d40] number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
[h264 @ 04f24180] number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
[h264 @ 04f245c0] number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
[h264 @ 04f252a0] mmco: unref short failure
[h264 @ 04f24a20] mmco: unref short failure
frame=  200 fps=0.0 q=-0.0 size=     369kB time=00:00:10.32 bitrate= 292.9kbits/s speed=20.6x    
frame=  465 fps=463 q=-0.0 size=     786kB time=00:00:20.92 bitrate= 307.8kbits/s speed=20.8x    
frame=  689 fps=458 q=-0.0 size=    1138kB time=00:00:29.88 bitrate= 311.9kbits/s speed=19.9x    
frame=  912 fps=455 q=-0.0 size=    1472kB time=00:00:38.80 bitrate= 310.8kbits/s speed=19.4x    
frame= 1141 fps=455 q=-0.0 size=    1829kB time=00:00:47.96 bitrate= 312.3kbits/s speed=19.1x    
frame= 1377 fps=458 q=-0.0 size=    2207kB time=00:00:57.40 bitrate= 314.9kbits/s speed=19.1x    
frame= 1598 fps=456 q=-0.0 size=    2535kB time=00:01:06.24 bitrate= 313.6kbits/s speed=18.9x    
frame= 1818 fps=453 q=-0.0 size=    2884kB time=00:01:15.04 bitrate= 314.8kbits/s speed=18.7x    
frame= 2059 fps=455 q=-0.0 size=    3258kB time=00:01:24.68 bitrate= 315.1kbits/s speed=18.7x    
frame= 2305 fps=459 q=-0.0 size=    3632kB time=00:01:34.52 bitrate= 314.8kbits/s speed=18.8x    
frame= 2540 fps=460 q=-0.0 size=    4000kB time=00:01:43.92 bitrate= 315.3kbits/s speed=18.8x    
frame= 2795 fps=464 q=-0.0 size=    4398kB time=00:01:54.12 bitrate= 315.7kbits/s speed=18.9x    
frame= 3069 fps=470 q=-0.0 size=    4818kB time=00:02:05.08 bitrate= 315.5kbits/s speed=19.2x    
frame= 3321 fps=473 q=-0.0 size=    5205kB time=00:02:15.16 bitrate= 315.5kbits/s speed=19.2x    
frame= 3564 fps=473 q=-0.0 size=    5582kB time=00:02:24.88 bitrate= 315.6kbits/s speed=19.2x    
frame= 3824 fps=476 q=-0.0 size=    5988kB time=00:02:35.28 bitrate= 315.9kbits/s speed=19.3x    
frame= 4072 fps=477 q=-0.0 size=    6371kB time=00:02:45.20 bitrate= 315.9kbits/s speed=19.4x    
frame= 4331 fps=479 q=-0.0 size=    6773kB time=00:02:55.56 bitrate= 316.1kbits/s speed=19.4x    
frame= 4601 fps=482 q=-0.0 size=    7192kB time=00:03:06.36 bitrate= 316.1kbits/s speed=19.5x    
frame= 4917 fps=490 q=-0.0 size=    7680kB time=00:03:19.00 bitrate= 316.1kbits/s speed=19.8x    
frame= 5169 fps=490 q=-0.0 size=    8076kB time=00:03:29.08 bitrate= 316.4kbits/s speed=19.8x    
frame= 5405 fps=489 q=-0.0 size=    8441kB time=00:03:38.52 bitrate= 316.4kbits/s speed=19.8x    
frame= 5646 fps=489 q=-0.0 size=    8809kB time=00:03:48.16 bitrate= 316.3kbits/s speed=19.8x    
frame= 5888 fps=489 q=-0.0 size=    9184kB time=00:03:57.84 bitrate= 316.3kbits/s speed=19.7x    
frame= 6133 fps=489 q=-0.0 size=    9565kB time=00:04:07.64 bitrate= 316.4kbits/s speed=19.7x    
frame= 6389 fps=490 q=-0.0 size=    9961kB time=00:04:17.88 bitrate= 316.4kbits/s speed=19.8x    
frame= 6649 fps=491 q=-0.0 size=   10364kB time=00:04:28.28 bitrate= 316.5kbits/s speed=19.8x    
frame= 6909 fps=492 q=-0.0 size=   10765kB time=00:04:38.68 bitrate= 316.4kbits/s speed=19.8x    
frame= 7168 fps=492 q=-0.0 size=   11166kB time=00:04:49.04 bitrate= 316.5kbits/s speed=19.9x    
frame= 7416 fps=492 q=-0.0 size=   11555kB time=00:04:58.96 bitrate= 316.6kbits/s speed=19.9x    
frame= 7676 fps=493 q=-0.0 size=   11955kB time=00:05:09.36 bitrate= 316.6kbits/s speed=19.9x    
frame= 7928 fps=494 q=-0.0 size=   12348kB time=00:05:19.44 bitrate= 316.7kbits/s speed=19.9x    
frame= 8220 fps=496 q=-0.0 size=   12803kB time=00:05:31.12 bitrate= 316.7kbits/s speed=  20x    
frame= 8464 fps=496 q=-0.0 size=   13177kB time=00:05:40.88 bitrate= 316.7kbits/s speed=  20x    
frame= 8701 fps=495 q=-0.0 size=   13543kB time=00:05:50.36 bitrate= 316.7kbits/s speed=19.9x    
frame= 8974 fps=497 q=-0.0 size=   13966kB time=00:06:01.28 bitrate= 316.7kbits/s speed=  20x    
frame= 9235 fps=497 q=-0.0 size=   14374kB time=00:06:11.72 bitrate= 316.8kbits/s speed=  20x    
frame= 9503 fps=498 q=-0.0 size=   14786kB time=00:06:22.44 bitrate= 316.7kbits/s speed=20.1x    
frame= 9779 fps=500 q=-0.0 size=   15215kB time=00:06:33.48 bitrate= 316.8kbits/s speed=20.1x    
frame=10033 fps=500 q=-0.0 size=   15610kB time=00:06:43.64 bitrate= 316.8kbits/s speed=20.1x    
frame=10279 fps=500 q=-0.0 size=   15997kB time=00:06:53.48 bitrate= 316.9kbits/s speed=20.1x    
frame=10527 fps=499 q=-0.0 size=   16374kB time=00:07:03.40 bitrate= 316.8kbits/s speed=20.1x    
frame=10763 fps=499 q=-0.0 size=   16757kB time=00:07:12.84 bitrate= 317.1kbits/s speed=20.1x    
frame=11006 fps=498 q=-0.0 size=   17113kB time=00:07:22.56 bitrate= 316.8kbits/s speed=  20x    
frame=11288 fps=500 q=-0.0 size=   17550kB time=00:07:33.84 bitrate= 316.8kbits/s speed=20.1x    
frame=11584 fps=502 q=-0.0 size=   18010kB time=00:07:45.68 bitrate= 316.8kbits/s speed=20.2x    
frame=11837 fps=502 q=-0.0 size=   18403kB time=00:07:55.80 bitrate= 316.8kbits/s speed=20.2x    
frame=12098 fps=502 q=-0.0 size=   18808kB time=00:08:06.24 bitrate= 316.9kbits/s speed=20.2x    
frame=12370 fps=503 q=-0.0 size=   19230kB time=00:08:17.12 bitrate= 316.9kbits/s speed=20.2x    
frame=12632 fps=503 q=-0.0 size=   19631kB time=00:08:27.60 bitrate= 316.8kbits/s speed=20.2x    
frame=12895 fps=504 q=-0.0 size=   20043kB time=00:08:38.12 bitrate= 316.9kbits/s speed=20.2x    
frame=13195 fps=506 q=-0.0 size=   20505kB time=00:08:50.12 bitrate= 316.9kbits/s speed=20.3x    
frame=13485 fps=507 q=-0.0 size=   20959kB time=00:09:01.72 bitrate= 317.0kbits/s speed=20.4x    
frame=13738 fps=507 q=-0.0 size=   21351kB time=00:09:11.84 bitrate= 317.0kbits/s speed=20.4x    
frame=13994 fps=507 q=-0.0 size=   21746kB time=00:09:22.08 bitrate= 316.9kbits/s speed=20.4x    
frame=14235 fps=506 q=-0.0 size=   22129kB time=00:09:31.72 bitrate= 317.1kbits/s speed=20.3x    
frame=14489 fps=507 q=-0.0 size=   22513kB time=00:09:41.88 bitrate= 317.0kbits/s speed=20.3x    
frame=14742 fps=506 q=-0.0 size=   22922kB time=00:09:52.00 bitrate= 317.2kbits/s speed=20.3x    
frame=14992 fps=506 q=-0.0 size=   23294kB time=00:10:02.00 bitrate= 317.0kbits/s speed=20.3x    
frame=15276 fps=507 q=-0.0 size=   23731kB time=00:10:13.36 bitrate= 317.0kbits/s speed=20.4x    
frame=15541 fps=508 q=-0.0 size=   24151kB time=00:10:23.96 bitrate= 317.1kbits/s speed=20.4x    
frame=15787 fps=507 q=-0.0 size=   24525kB time=00:10:33.80 bitrate= 317.0kbits/s speed=20.4x    
frame=16044 fps=507 q=-0.0 size=   24921kB time=00:10:44.08 bitrate= 317.0kbits/s speed=20.4x    
frame=16278 fps=507 q=-0.0 size=   25284kB time=00:10:53.44 bitrate= 317.0kbits/s speed=20.3x    
frame=16515 fps=506 q=-0.0 size=   25651kB time=00:11:02.92 bitrate= 317.0kbits/s speed=20.3x    
frame=16772 fps=506 q=-0.0 size=   26059kB time=00:11:13.20 bitrate= 317.1kbits/s speed=20.3x    
frame=17029 fps=506 q=-0.0 size=   26448kB time=00:11:23.48 bitrate= 317.0kbits/s speed=20.3x    
frame=17292 fps=507 q=-0.0 size=   26855kB time=00:11:34.00 bitrate= 317.0kbits/s speed=20.3x    
frame=17550 fps=507 q=-0.0 size=   27261kB time=00:11:44.32 bitrate= 317.1kbits/s speed=20.3x    
frame=17790 fps=506 q=-0.0 size=   27625kB time=00:11:53.92 bitrate= 317.0kbits/s speed=20.3x    
frame=18044 fps=506 q=-0.0 size=   28020kB time=00:12:04.08 bitrate= 317.0kbits/s speed=20.3x    
frame=18312 fps=507 q=-0.0 size=   28440kB time=00:12:14.80 bitrate= 317.1kbits/s speed=20.3x    
frame=18547 fps=506 q=-0.0 size=   28803kB time=00:12:24.20 bitrate= 317.1kbits/s speed=20.3x    
frame=18782 fps=506 q=-0.0 size=   29170kB time=00:12:33.60 bitrate= 317.1kbits/s speed=20.3x    
frame=19052 fps=506 q=-0.0 size=   29582kB time=00:12:44.40 bitrate= 317.0kbits/s speed=20.3x    
frame=19280 fps=506 q=-0.0 size=   29936kB time=00:12:53.52 bitrate= 317.0kbits/s speed=20.3x    
frame=19517 fps=505 q=-0.0 size=   30305kB time=00:13:03.00 bitrate= 317.1kbits/s speed=20.3x    
frame=19753 fps=505 q=-0.0 size=   30672kB time=00:13:12.44 bitrate= 317.1kbits/s speed=20.2x    
frame=20041 fps=506 q=-0.0 size=   31124kB time=00:13:23.96 bitrate= 317.1kbits/s speed=20.3x    
frame=20314 fps=506 q=-0.0 size=   31536kB time=00:13:34.88 bitrate= 317.0kbits/s speed=20.3x    
frame=20604 fps=507 q=-0.0 size=   31987kB time=00:13:46.48 bitrate= 317.1kbits/s speed=20.3x    
frame=20857 fps=507 q=-0.0 size=   32395kB time=00:13:56.60 bitrate= 317.2kbits/s speed=20.3x    
frame=21095 fps=506 q=-0.0 size=   32751kB time=00:14:06.12 bitrate= 317.1kbits/s speed=20.3x    
frame=21395 fps=508 q=-0.0 size=   33216kB time=00:14:18.12 bitrate= 317.1kbits/s speed=20.4x    
frame=21646 fps=508 q=-0.0 size=   33600kB time=00:14:28.16 bitrate= 317.1kbits/s speed=20.4x    
frame=21954 fps=509 q=-0.0 size=   34079kB time=00:14:40.48 bitrate= 317.1kbits/s speed=20.4x    
frame=22215 fps=509 q=-0.0 size=   34483kB time=00:14:50.92 bitrate= 317.1kbits/s speed=20.4x    
frame=22475 fps=509 q=-0.0 size=   34893kB time=00:15:01.32 bitrate= 317.1kbits/s speed=20.4x    
frame=22725 fps=509 q=-0.0 size=   35274kB time=00:15:11.32 bitrate= 317.1kbits/s speed=20.4x    
frame=22976 fps=509 q=-0.0 size=   35663kB time=00:15:21.36 bitrate= 317.1kbits/s speed=20.4x    
frame=23211 fps=508 q=-0.0 size=   36027kB time=00:15:30.76 bitrate= 317.1kbits/s speed=20.4x    
frame=23470 fps=508 q=-0.0 size=   36427kB time=00:15:41.12 bitrate= 317.1kbits/s speed=20.4x    
frame=23749 fps=509 q=-0.0 size=   36860kB time=00:15:52.28 bitrate= 317.1kbits/s speed=20.4x    
frame=24012 fps=509 q=-0.0 size=   37271kB time=00:16:02.80 bitrate= 317.1kbits/s speed=20.4x    
frame=24252 fps=509 q=-0.0 size=   37641kB time=00:16:12.40 bitrate= 317.1kbits/s speed=20.4x    
frame=24507 fps=509 q=-0.0 size=   38038kB time=00:16:22.60 bitrate= 317.1kbits/s speed=20.4x    
frame=24750 fps=509 q=-0.0 size=   38411kB time=00:16:32.32 bitrate= 317.1kbits/s speed=20.4x    
frame=25014 fps=509 q=-0.0 size=   38821kB time=00:16:42.88 bitrate= 317.1kbits/s speed=20.4x    
frame=25292 fps=509 q=-0.0 size=   39256kB time=00:16:54.00 bitrate= 317.1kbits/s speed=20.4x    
frame=25528 fps=509 q=-0.0 size=   39614kB time=00:17:03.44 bitrate= 317.1kbits/s speed=20.4x    
frame=25764 fps=508 q=-0.0 size=   39984kB time=00:17:12.88 bitrate= 317.1kbits/s speed=20.4x    
frame=26009 fps=508 q=-0.0 size=   40361kB time=00:17:22.68 bitrate= 317.1kbits/s speed=20.4x    
frame=26245 fps=508 q=-0.0 size=   40728kB time=00:17:32.12 bitrate= 317.1kbits/s speed=20.4x    
frame=26495 fps=508 q=-0.0 size=   41115kB time=00:17:42.12 bitrate= 317.1kbits/s speed=20.4x    
frame=26749 fps=508 q=-0.0 size=   41506kB time=00:17:52.28 bitrate= 317.1kbits/s speed=20.4x    
frame=27028 fps=508 q=-0.0 size=   41940kB time=00:18:03.44 bitrate= 317.1kbits/s speed=20.4x    
frame=27289 fps=508 q=-0.0 size=   42357kB time=00:18:13.88 bitrate= 317.2kbits/s speed=20.4x    
frame=27564 fps=509 q=-0.0 size=   42772kB time=00:18:24.88 bitrate= 317.1kbits/s speed=20.4x    
frame=27859 fps=509 q=-0.0 size=   43230kB time=00:18:36.68 bitrate= 317.1kbits/s speed=20.4x    
frame=28132 fps=510 q=-0.0 size=   43650kB time=00:18:47.60 bitrate= 317.1kbits/s speed=20.4x    
frame=28432 fps=511 q=-0.0 size=   44117kB time=00:18:59.60 bitrate= 317.1kbits/s speed=20.5x    
frame=28718 fps=511 q=-0.0 size=   44559kB time=00:19:11.04 bitrate= 317.1kbits/s speed=20.5x    
frame=28996 fps=512 q=-0.0 size=   45009kB time=00:19:22.16 bitrate= 317.3kbits/s speed=20.5x    
frame=29284 fps=512 q=-0.0 size=   45443kB time=00:19:33.68 bitrate= 317.2kbits/s speed=20.5x    
frame=29535 fps=512 q=-0.0 size=   45829kB time=00:19:43.72 bitrate= 317.2kbits/s speed=20.5x    
frame=29803 fps=512 q=-0.0 size=   46248kB time=00:19:54.44 bitrate= 317.2kbits/s speed=20.5x    
frame=30043 fps=512 q=-0.0 size=   46613kB time=00:20:04.04 bitrate= 317.1kbits/s speed=20.5x    
frame=30316 fps=512 q=-0.0 size=   47033kB time=00:20:14.96 bitrate= 317.1kbits/s speed=20.5x    
frame=30583 fps=512 q=-0.0 size=   47451kB time=00:20:25.64 bitrate= 317.2kbits/s speed=20.5x    
frame=30856 fps=513 q=-0.0 size=   47871kB time=00:20:36.56 bitrate= 317.1kbits/s speed=20.5x    
frame=31112 fps=513 q=-0.0 size=   48270kB time=00:20:46.80 bitrate= 317.2kbits/s speed=20.5x    
frame=31358 fps=512 q=-0.0 size=   48652kB time=00:20:56.64 bitrate= 317.2kbits/s speed=20.5x    
frame=31603 fps=512 q=-0.0 size=   49031kB time=00:21:06.44 bitrate= 317.2kbits/s speed=20.5x    
frame=31879 fps=512 q=-0.0 size=   49458kB time=00:21:17.48 bitrate= 317.2kbits/s speed=20.5x    
frame=32140 fps=512 q=-0.0 size=   49861kB time=00:21:27.92 bitrate= 317.1kbits/s speed=20.5x    
frame=32397 fps=512 q=-0.0 size=   50261kB time=00:21:38.20 bitrate= 317.2kbits/s speed=20.5x    
frame=32669 fps=513 q=-0.0 size=   50679kB time=00:21:49.08 bitrate= 317.1kbits/s speed=20.5x    
frame=32948 fps=513 q=-0.0 size=   51115kB time=00:22:00.24 bitrate= 317.2kbits/s speed=20.6x    
frame=33207 fps=513 q=-0.0 size=   51516kB time=00:22:10.60 bitrate= 317.2kbits/s speed=20.6x    
frame=33446 fps=513 q=-0.0 size=   51886kB time=00:22:20.16 bitrate= 317.2kbits/s speed=20.5x    
frame=33689 fps=512 q=-0.0 size=   52264kB time=00:22:29.88 bitrate= 317.2kbits/s speed=20.5x    
frame=33949 fps=513 q=-0.0 size=   52669kB time=00:22:40.28 bitrate= 317.2kbits/s speed=20.5x    
frame=34197 fps=512 q=-0.0 size=   53052kB time=00:22:50.20 bitrate= 317.2kbits/s speed=20.5x    
frame=34442 fps=512 q=-0.0 size=   53438kB time=00:23:00.00 bitrate= 317.2kbits/s speed=20.5x    
frame=34695 fps=512 q=-0.0 size=   53822kB time=00:23:10.12 bitrate= 317.2kbits/s speed=20.5x    
frame=34979 fps=513 q=-0.0 size=   54265kB time=00:23:21.48 bitrate= 317.2kbits/s speed=20.5x    
frame=35259 fps=513 q=-0.0 size=   54693kB time=00:23:32.68 bitrate= 317.2kbits/s speed=20.5x    
frame=35504 fps=513 q=-0.0 size=   55075kB time=00:23:42.48 bitrate= 317.2kbits/s speed=20.5x    
frame=35764 fps=513 q=-0.0 size=   55477kB time=00:23:52.88 bitrate= 317.2kbits/s speed=20.5x    
frame=36052 fps=513 q=-0.0 size=   55924kB time=00:24:04.40 bitrate= 317.2kbits/s speed=20.6x    
frame=36317 fps=513 q=-0.0 size=   56335kB time=00:24:15.00 bitrate= 317.2kbits/s speed=20.6x    
frame=36595 fps=514 q=-0.0 size=   56769kB time=00:24:26.12 bitrate= 317.2kbits/s speed=20.6x    
frame=36867 fps=514 q=-0.0 size=   57190kB time=00:24:37.00 bitrate= 317.2kbits/s speed=20.6x    
frame=37145 fps=514 q=-0.0 size=   57618kB time=00:24:48.12 bitrate= 317.2kbits/s speed=20.6x    
frame=37423 fps=514 q=-0.0 size=   58047kB time=00:24:59.24 bitrate= 317.2kbits/s speed=20.6x    
frame=37689 fps=514 q=-0.0 size=   58460kB time=00:25:09.88 bitrate= 317.2kbits/s speed=20.6x    
frame=37946 fps=514 q=-0.0 size=   58859kB time=00:25:20.16 bitrate= 317.2kbits/s speed=20.6x    
frame=38222 fps=515 q=-0.0 size=   59285kB time=00:25:31.20 bitrate= 317.2kbits/s speed=20.6x    
frame=38493 fps=515 q=-0.0 size=   59707kB time=00:25:42.04 bitrate= 317.2kbits/s speed=20.6x    
frame=38757 fps=515 q=-0.0 size=   60120kB time=00:25:52.60 bitrate= 317.2kbits/s speed=20.6x    
frame=39004 fps=515 q=-0.0 size=   60497kB time=00:26:02.48 bitrate= 317.2kbits/s speed=20.6x    
frame=39279 fps=515 q=-0.0 size=   60925kB time=00:26:13.48 bitrate= 317.2kbits/s speed=20.6x    
frame=39546 fps=515 q=-0.0 size=   61338kB time=00:26:24.16 bitrate= 317.2kbits/s speed=20.6x    
frame=39836 fps=516 q=-0.0 size=   61788kB time=00:26:35.76 bitrate= 317.2kbits/s speed=20.7x    
frame=40108 fps=516 q=-0.0 size=   62208kB time=00:26:46.64 bitrate= 317.2kbits/s speed=20.7x    
frame=40404 fps=516 q=-0.0 size=   62668kB time=00:26:58.48 bitrate= 317.2kbits/s speed=20.7x    
frame=40699 fps=517 q=-0.0 size=   63124kB time=00:27:10.28 bitrate= 317.2kbits/s speed=20.7x    
frame=40953 fps=517 q=-0.0 size=   63517kB time=00:27:20.44 bitrate= 317.2kbits/s speed=20.7x    
frame=41241 fps=517 q=-0.0 size=   63963kB time=00:27:31.96 bitrate= 317.2kbits/s speed=20.7x    
frame=41556 fps=518 q=-0.0 size=   64451kB time=00:27:44.56 bitrate= 317.2kbits/s speed=20.7x    
frame=41810 fps=518 q=-0.0 size=   64856kB time=00:27:54.72 bitrate= 317.2kbits/s speed=20.7x    
frame=42074 fps=518 q=-0.0 size=   65256kB time=00:28:05.28 bitrate= 317.2kbits/s speed=20.7x    
frame=42356 fps=518 q=-0.0 size=   65692kB time=00:28:16.56 bitrate= 317.2kbits/s speed=20.7x    
frame=42627 fps=518 q=-0.0 size=   66120kB time=00:28:27.40 bitrate= 317.2kbits/s speed=20.7x    
frame=42852 fps=518 q=-0.0 size=   66467kB time=00:28:36.40 bitrate= 317.2kbits/s speed=20.7x    
frame=43156 fps=518 q=-0.0 size=   66931kB time=00:28:48.56 bitrate= 317.2kbits/s speed=20.8x    
frame=43478 fps=519 q=-0.0 size=   67433kB time=00:29:01.44 bitrate= 317.2kbits/s speed=20.8x    
frame=43740 fps=519 q=-0.0 size=   67839kB time=00:29:11.92 bitrate= 317.2kbits/s speed=20.8x    
frame=43996 fps=519 q=-0.0 size=   68232kB time=00:29:22.16 bitrate= 317.2kbits/s speed=20.8x    
frame=44268 fps=519 q=-0.0 size=   68654kB time=00:29:33.04 bitrate= 317.2kbits/s speed=20.8x    
frame=44499 fps=519 q=-0.0 size=   69018kB time=00:29:42.28 bitrate= 317.2kbits/s speed=20.8x    
frame=44741 fps=518 q=-0.0 size=   69385kB time=00:29:51.96 bitrate= 317.2kbits/s speed=20.8x    
frame=45022 fps=519 q=-0.0 size=   69822kB time=00:30:03.20 bitrate= 317.2kbits/s speed=20.8x    
frame=45304 fps=519 q=-0.0 size=   70261kB time=00:30:14.48 bitrate= 317.2kbits/s speed=20.8x    
[mpegts @ 0356b4a0] PES packet size mismatch
[mp2 @ 04f216a0] Header missing
Error while decoding stream #0:2: Invalid data found when processing input
[h264 @ 04f25b40] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 04f25b40] illegal short term buffer state detected
[null @ 06a57020] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 87591221 >= 87588917
[null @ 06a57020] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 87591221 >= 87590069
[null @ 06a57020] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 87591221 >= 87591221
[h264 @ 04f24180] Increasing reorder buffer to 5
[h264 @ 04f252a0] Reference 2 >= 2
[h264 @ 04f252a0] error while decoding MB 17 32, bytestream 1976
[h264 @ 04f252a0] Cannot use next picture in error concealment
[h264 @ 04f252a0] concealing 3272 DC, 3272 AC, 3272 MV errors in P frame
frame=45593 fps=519 q=-0.0 size=   70710kB time=00:30:26.04 bitrate= 317.2kbits/s speed=20.8x    
[null @ 06a57020] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 45670 >= 45670
frame=45869 fps=519 q=-0.0 size=   71141kB time=00:30:37.08 bitrate= 317.2kbits/s speed=20.8x    
frame=46108 fps=519 q=-0.0 size=   71508kB time=00:30:46.64 bitrate= 317.2kbits/s speed=20.8x    
frame=46361 fps=519 q=-0.0 size=   71906kB time=00:30:56.76 bitrate= 317.2kbits/s speed=20.8x    
frame=46626 fps=519 q=-0.0 size=   72320kB time=00:31:07.36 bitrate= 317.3kbits/s speed=20.8x    
frame=46879 fps=519 q=-0.0 size=   72704kB time=00:31:17.48 bitrate= 317.2kbits/s speed=20.8x    
frame=47169 fps=519 q=-0.0 size=   73160kB time=00:31:29.08 bitrate= 317.3kbits/s speed=20.8x    
frame=47463 fps=520 q=-0.0 size=   73611kB time=00:31:40.84 bitrate= 317.2kbits/s speed=20.8x    
frame=47721 fps=520 q=-0.0 size=   74017kB time=00:31:51.16 bitrate= 317.3kbits/s speed=20.8x    
frame=47979 fps=520 q=-0.0 size=   74410kB time=00:32:01.48 bitrate= 317.2kbits/s speed=20.8x    
frame=48265 fps=520 q=-0.0 size=   74855kB time=00:32:12.92 bitrate= 317.2kbits/s speed=20.8x    
frame=48520 fps=520 q=-0.0 size=   75250kB time=00:32:23.12 bitrate= 317.2kbits/s speed=20.8x    
frame=48773 fps=520 q=-0.0 size=   75640kB time=00:32:33.24 bitrate= 317.2kbits/s speed=20.8x    
frame=49053 fps=520 q=-0.0 size=   76087kB time=00:32:44.44 bitrate= 317.3kbits/s speed=20.8x    
frame=49338 fps=520 q=-0.0 size=   76516kB time=00:32:55.84 bitrate= 317.2kbits/s speed=20.8x    
frame=49604 fps=520 q=-0.0 size=   76930kB time=00:33:06.48 bitrate= 317.2kbits/s speed=20.8x    
frame=49895 fps=521 q=-0.0 size=   77379kB time=00:33:18.12 bitrate= 317.2kbits/s speed=20.8x    
frame=50155 fps=521 q=-0.0 size=   77781kB time=00:33:28.52 bitrate= 317.2kbits/s speed=20.8x    
frame=50415 fps=521 q=-0.0 size=   78188kB time=00:33:38.92 bitrate= 317.3kbits/s speed=20.8x    
frame=50675 fps=521 q=-0.0 size=   78603kB time=00:33:49.32 bitrate= 317.3kbits/s speed=20.8x    
frame=50924 fps=520 q=-0.0 size=   78983kB time=00:33:59.28 bitrate= 317.3kbits/s speed=20.8x    
frame=51178 fps=520 q=-0.0 size=   79372kB time=00:34:09.44 bitrate= 317.3kbits/s speed=20.8x    
frame=51425 fps=520 q=-0.0 size=   79778kB time=00:34:19.32 bitrate= 317.4kbits/s speed=20.8x    
frame=51677 fps=520 q=-0.0 size=   80147kB time=00:34:29.40 bitrate= 317.3kbits/s speed=20.8x    
frame=51935 fps=520 q=-0.0 size=   80562kB time=00:34:39.72 bitrate= 317.3kbits/s speed=20.8x    
frame=52169 fps=520 q=-0.0 size=   80909kB time=00:34:49.08 bitrate= 317.3kbits/s speed=20.8x    
frame=52457 fps=520 q=-0.0 size=   81349kB time=00:35:00.60 bitrate= 317.2kbits/s speed=20.8x    
frame=52737 fps=520 q=-0.0 size=   81788kB time=00:35:11.80 bitrate= 317.3kbits/s speed=20.8x    
frame=52975 fps=520 q=-0.0 size=   82158kB time=00:35:21.32 bitrate= 317.3kbits/s speed=20.8x    
frame=53214 fps=520 q=-0.0 size=   82519kB time=00:35:30.88 bitrate= 317.2kbits/s speed=20.8x    
frame=53468 fps=520 q=-0.0 size=   82914kB time=00:35:41.04 bitrate= 317.2kbits/s speed=20.8x    
[mpegts @ 0356b4a0] PES packet size mismatch
[h264 @ 04f25b40] error while decoding MB 69 24, bytestream -25
[h264 @ 04f25b40] concealing 3940 DC, 3940 AC, 3940 MV errors in I frame
frame=53582 fps=520 q=-0.0 Lsize=   83077kB time=00:35:46.20 bitrate= 317.1kbits/s speed=20.8x    
video:20093kB audio:402066kB subtitle:65813kB other streams:0kB global headers:0kB muxing overhead: unknown

But when I extract subtitles, from joined file, with CCExtractor (or with ffmpeg with zvbi) with this:

"ccextractorwin.exe" "subs.ts" --goptime -autoprogram --nofontcolor --fixpadding -tpage 888 -out=srt -o "subs.ts.srt"

or this:

"ffmpeg.zvbi.exe" -txt_page 888 -txt_format text -fix_sub_duration -i "subs.ts" "ffmpeg.zvbi subs.ts.srt"

It doesn't start at time 0, but at time 2h04m!:

1
02:04:52,577 --> 02:04:55,664
¿Estás bien?
Sí, perfecto.

...

507
02:38:37,134 --> 02:38:38,986
Control, aquí Maniobras.
Hemos perdido propulsión.

The only way to start at min 1:57, is to use only 000.ts and not the joined file, but of course, gets truncated when 000.ts ends at time 30 min:

1
00:01:57,240 --> 00:02:00,320
¿Estás bien?
Sí, perfecto.

...


433
00:30:22,720 --> 00:30:24,120
Gracias de todos modos.

And if I extract subtitles with ffmpeg.zvbi, while concatenating, with this:

"ffmpeg.zvbi.exe" -txt_page 888 -txt_format text -fix_sub_duration			-i "concat:000.ts|001.ts" "ffmpeg.zvbi 000.ts+001.ts.srt"

I don't know why now it starts at 0:00:00,000 when the first subtitle really starts at 1m57s!:

1
00:00:00,000 --> 00:00:03,080
¿Estás bien?
Sí, perfecto.

...

I can't put full output of ffmpeg.zvbi, it doesn't work and says this!:

ffmpeg version N-80123-gd74cc61 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --disable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-avisynth --enable-gray --enable-libopenh264 --enable-libmfx --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 43.100 / 57. 43.100
  libavformat    57. 37.101 / 57. 37.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.100 /  6. 46.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpegts, from 'subs.ts':
  Duration: 02:38:38.99, start: 0.840600, bitrate: 71 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100](spa,spa): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
Output #1, null, to 'nul':
Output file #1 does not contain any stream

Change History (0)

Note: See TracTickets for help on using tickets.