[FFmpeg-trac] #7567(undetermined:new): Incorrect timetamps when decoding teletext subtitles from TS file

FFmpeg trac at avcodec.org
Thu Nov 29 07:31:20 EET 2018


#7567: Incorrect timetamps when decoding teletext subtitles from TS file
-------------------------------------+-------------------------------------
             Reporter:  ExTechOp     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  mpegts       |               Resolution:
  dvb_teletext                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ExTechOp):

 I've built the latest snapshot version of ffmpeg by following the
 compilation guide given at
 https://trac.ffmpeg.org/wiki/CompilationGuide/Centos and the result is
 that subtitle extraction on the sample file I uploaded earlier works wrong
 in the same way (only one timestamp is produced, although, the times are
 even more messed up):

 {{{
 % ffmpeg -txt_page 451 -txt_format text -i "50Mbytes-Frontline-
 Trump's_Showdown.ts" -map 0:4 -an -vn -scodec srt "50Mbytes-Frontline-
 Trump's_Showdown.fin.srt"
 ffmpeg started on 2018-11-29 at 07:24:13
 Report written to "ffmpeg-20181129-072413.log"
 ffmpeg version N-92549-g3317155 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 8 (GCC)
   configuration: --prefix=/home/otto/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/otto/ffmpeg_build/include --extra-
 ldflags=-L/home/otto/ffmpeg_build/lib --extra-libs=-lpthread --extra-
 libs=-lm --bindir=/home/otto/bin --enable-gpl --enable-libfdk_aac
 --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-
 libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-
 nonfree --enable-libzvbi
   libavutil      56. 24.101 / 56. 24.101
   libavcodec     58. 40.100 / 58. 40.100
   libavformat    58. 23.100 / 58. 23.100
   libavdevice    58.  6.100 / 58.  6.100
   libavfilter     7. 46.101 /  7. 46.101
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 [mpeg2video @ 0x467df80] Invalid frame dimensions 0x0.
 [mp3float @ 0x467f040] Header missing
 [mp3float @ 0x4680200] Header missing
 [mpegts @ 0x4659880] start time for stream 3 is not set in
 estimate_timings_from_pts
 [mpegts @ 0x4659880] PES packet size mismatch
     Last message repeated 2 times
 Input #0, mpegts, from '50Mbytes-Frontline-Trump's_Showdown.ts':
   Duration: 00:01:51.35, start: 74490.161789, bitrate: 3678 kb/s
   Program 17
     Stream #0:0[0x200]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k
 tbn, 50 tbc
     Stream #0:1[0x28a](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, fltp, 224 kb/s
     Stream #0:2[0x28c](dut): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, fltp, 160 kb/s (visual impaired) (descriptions)
     Stream #0:3[0x403](fin): Subtitle: dvb_subtitle ([6][0][0][0] /
 0x0006)
     Stream #0:4[0x1388](fin): Subtitle: dvb_teletext ([6][0][0][0] /
 0x0006)
   Program 33
   Program 81
   Program 200
   Program 351
 Output #0, srt, to '50Mbytes-Frontline-Trump's_Showdown.fin.srt':
   Metadata:
     encoder         : Lavf58.23.100
     Stream #0:0(fin): Subtitle: subrip (srt)
     Metadata:
       encoder         : Lavc58.40.100 srt
 Stream mapping:
   Stream #0:4 -> #0:0 (dvb_teletext (libzvbi_teletextdec) -> subrip (srt))
 Press [q] to stop, [?] for help
 [mpegts @ 0x4659880] PES packet size mismatch
 50Mbytes-Frontline-Trump's_Showdown.ts: corrupt input packet in stream 4
 size=       2kB time=00:00:00.00 bitrate=N/A speed=   0x
 video:0kB audio:0kB subtitle:1kB other streams:0kB global headers:0kB
 muxing overhead: 91.532974%

 % fgrep -- "-->" 50Mbytes-Frontline-Trump\'s_Showdown.fin.srt | wc -l
 28

 % fgrep -- "-->" 50Mbytes-Frontline-Trump\'s_Showdown.fin.srt | sort -u
 00:00:00,000 --> 1193:02:47,295
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7567#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list