[FFmpeg-trac] #5939(undetermined:new): Bad timing with Teletext subtitles, when concatenating 2 DVB files

FFmpeg trac at avcodec.org
Fri Nov 11 07:46:04 EET 2016


#5939: Bad timing with Teletext subtitles, when concatenating 2 DVB files
-------------------------------------+-------------------------------------
             Reporter:  edumj        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I have these 2 files from a DVB recording (with DVB and Teletext
 Subtitles):

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

 If I first extract Teletext Subtitles with "concat" like this:

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

 They start at time 0:00:00, when they should start at 0:01:58 (when TV
 commercials end), so all of them are out of sync. They only start at
 0:01:58 when extracting only from first 000.ts, so the rest subtitles
 (from 001.ts) are missing.

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

 ...
 }}}


 Full output:

 {{{
 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
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 00acd580] decode_slice_header error
 [h264 @ 00acd580] no frame!
 [h264 @ 00acd580] Increasing reorder buffer to 2
 [h264 @ 00acd580] Increasing reorder buffer to 3
 [h264 @ 00acd580] Increasing reorder buffer to 4
 [h264 @ 00acd580] mmco: unref short failure
 [mpegts @ 0075f6a0] start time for stream 4 is not set in
 estimate_timings_from_pts
 [mpegts @ 0075f6a0] 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), 492x250
     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
     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
 [srt @ 00b7fa80] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
 Output #0, srt, to 'concat_txt_subs.srt':
   Metadata:
     encoder         : Lavf57.37.101
     Stream #0:0(spa,spa): Subtitle: subrip, 492x250
     Metadata:
       encoder         : Lavc57.43.100 srt
 Stream mapping:
   Stream #0:0 -> #0:0 (dvb_teletext (libzvbi_teletextdec) -> subrip (srt))
 Press [q] to stop, [?] for help
 size=      12kB time=-01:51:12.95 bitrate=N/A speed=N/A
 size=      25kB time=-01:39:33.03 bitrate=N/A speed=N/A
 size=      37kB time=-01:27:51.83 bitrate=N/A speed=N/A
 size=      37kB time=-01:27:16.87 bitrate=N/A speed=N/A
 video:0kB audio:0kB subtitle:20kB other streams:0kB global headers:0kB
 muxing overhead: 90.143372%
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5939>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list