[FFmpeg-trac] #7855(undetermined:new): Last subtitle in MP4 is displayed forever

FFmpeg trac at avcodec.org
Thu Apr 18 08:29:42 EEST 2019


#7855: Last subtitle in MP4 is displayed forever
--------------------------------------+----------------------------------
             Reporter:  fumoboy007    |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  4.1
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 Summary of the bug:
 Decoding the last tx3g subtitle in an MP4 produces an incorrect duration,
 causing the subtitle to stay on-screen until the end of the media.

 How to reproduce:
 Play the attached file in VLC. Also, run the following command and compare
 the outputted subtitle file with the original subtitle file (also
 attached).

 {{{
 $ ffmpeg -i Permanent\ Last\ Subtitle.mp4 -map 0:s:0 FFmpeg\ Output.srt
 ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
   built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1_1 --enable-shared
 --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-
 avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay
 --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy
 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfreetype
 --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-
 libopencore-amrwb --enable-librtmp --enable-libspeex --enable-videotoolbox
   libavutil      56. 22.100 / 56. 22.100
   libavcodec     58. 35.100 / 58. 35.100
   libavformat    58. 20.100 / 58. 20.100
   libavdevice    58.  5.100 / 58.  5.100
   libavfilter     7. 40.101 /  7. 40.101
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  3.100 /  5.  3.100
   libswresample   3.  3.100 /  3.  3.100
   libpostproc    55.  3.100 / 55.  3.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Permanent Last Subtitle.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 1
     compatible_brands: mp41mp42isom
     creation_time   : 2019-04-18T05:09:42.000000Z
   Duration: 00:01:05.04, start: 0.000000, bitrate: 431 kb/s
     Stream #0:0(deu): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
 smpte170m), 640x360, 289 kb/s, 23.97 fps, 23.98 tbr, 24k tbn, 48k tbc
 (default)
     Metadata:
       creation_time   : 2019-04-18T05:09:42.000000Z
       handler_name    : Core Media Video
       encoder         : AVC Coding
     Stream #0:1(deu): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 137 kb/s (default)
     Metadata:
       creation_time   : 2019-04-18T05:09:42.000000Z
       handler_name    : Core Media Audio
     Stream #0:2(eng): Subtitle: mov_text (tx3g / 0x67337874), 640x54, 0
 kb/s (default)
     Metadata:
       rotate          : 0
       creation_time   : 2019-04-18T05:10:26.000000Z
 Output #0, srt, to 'FFmpeg Output.srt':
   Metadata:
     major_brand     : mp42
     minor_version   : 1
     compatible_brands: mp41mp42isom
     encoder         : Lavf58.20.100
     Stream #0:0(eng): Subtitle: subrip (srt), 640x54 (default)
     Metadata:
       encoder         : Lavc58.35.100 srt
       creation_time   : 2019-04-18T05:10:26.000000Z
 Stream mapping:
   Stream #0:2 -> #0:0 (mov_text (native) -> subrip (srt))
 Press [q] to stop, [?] for help
 size=       0kB time=00:00:45.25 bitrate=   0.0kbits/s speed=3.59e+04x
 video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 79.069771%
 }}}

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


More information about the FFmpeg-trac mailing list