Opened 7 years ago

Closed 5 years ago

#6341 closed defect (fixed)

last subtitle line in mp4 continues until end of file, real end time ignored

Reported by: sneaker Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mov_text
Cc: fumoboy007@me.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
The last subtitle line of timed text in mp4 continues until end of a move, the real end time of the subtitle line is ignored. But this only happens with mp4 files created by ffmpeg itself. So it could be an mp4 muxer bug plus the mp4 demuxer not handling this error well.

Considering the subtitle track duration is limited by the edit list anyways this may be considered a triple bug:

  1. original mp4 muxer problem
  2. mp4 demuxer error handling
  3. mp4 demuxer not using edit list

To reproduce:
`
ffmpeg -report -i "source.mkv" -c:v copy -c:s mov_text "interm.mp4"
ffmpeg -report -i "interm.mp4" -c:v copy -c:s ass "final.mkv"
ffmpeg -report -i "interm_mp4box.mp4" -c:v copy -c:s ass "final_mp4box.mkv"
`
Download sample package with all files and logs is attached.

Here's the report of mkv to mp4 by ffmpeg and the subtitle file to get an overview. There are more reports in the sample package.
`
1
00:00:03,000 --> 00:00:13,000
line 1

2
00:00:15,000 --> 00:00:17,000
line 2 (last)

`

ffmpeg started on 2017-04-21 at 23:44:03
Report written to "ffmpeg-20170421-234403.log"
Command line:
ffmpeg -report -i source.mkv -c:v copy -c:s mov_text interm.mp4
ffmpeg version N-85588-g6108805 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --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-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-zlib
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 93.100 / 57. 93.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 84.101 /  6. 84.101
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input url with argument 'source.mkv'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-c:s' ... matched as option 'c' (codec name) with argument 'mov_text'.
Reading option 'interm.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url source.mkv.
Successfully parsed a group of options.
Opening an input file: source.mkv.
[file @ 00000000004694a0] Setting default whitelist 'file,crypto'
[matroska,webm @ 00000000004ba880] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[matroska,webm @ 00000000004ba880] Before avformat_find_stream_info() pos: 5505 bytes read:33585 seeks:2 nb_streams:2
[h264 @ 00000000004bb080] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 00000000004bb080] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 00000000004bb080] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 00000000004bb080] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 00000000004bb080] user data:"x264 - core 148 r2762 90a61ec - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
[h264 @ 00000000004bb080] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 00000000004bb080] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 00000000004bb080] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 00000000004bb080] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 00000000004bb080] user data:"x264 - core 148 r2762 90a61ec - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
[h264 @ 00000000004bb080] Reinit context to 848x480, pix_fmt: yuv420p
[h264 @ 00000000004bb080] no picture 
[matroska,webm @ 00000000004ba880] All info found
[matroska,webm @ 00000000004ba880] After avformat_find_stream_info() pos: 38386 bytes read:99121 seeks:2 frames:4
Input #0, matroska,webm, from 'source.mkv':
  Metadata:
    encoder         : libebml v1.3.4 + libmatroska v1.4.5
    creation_time   : 2017-04-21T19:50:27.000000Z
  Duration: 00:00:30.00, start: 0.000000, bitrate: 45 kb/s
    Stream #0:0, 4, 1/1000: Video: h264 (High), yuv420p(progressive), 848x480, SAR 1:1 DAR 53:30, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      BPS             : 43016
      BPS-eng         : 43016
      DURATION        : 00:00:30.000000000
      DURATION-eng    : 00:00:30.000000000
      NUMBER_OF_FRAMES: 750
      NUMBER_OF_FRAMES-eng: 750
      NUMBER_OF_BYTES : 161311
      NUMBER_OF_BYTES-eng: 161311
      _STATISTICS_WRITING_APP: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_DATE_UTC: 2017-04-21 19:50:27
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-21 19:50:27
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1, 0, 1/1000: Subtitle: subrip (default)
    Metadata:
      BPS             : 10
      BPS-eng         : 10
      DURATION        : 00:00:14.000000000
      DURATION-eng    : 00:00:14.000000000
      NUMBER_OF_FRAMES: 2
      NUMBER_OF_FRAMES-eng: 2
      NUMBER_OF_BYTES : 19
      NUMBER_OF_BYTES-eng: 19
      _STATISTICS_WRITING_APP: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_DATE_UTC: 2017-04-21 19:50:27
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-21 19:50:27
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Successfully opened the file.
Parsing a group of options: output url interm.mp4.
Applying option c:v (codec name) with argument copy.
Applying option c:s (codec name) with argument mov_text.
Successfully parsed a group of options.
Opening an output file: interm.mp4.
[file @ 00000000004bc720] Setting default whitelist 'file,crypto'
Successfully opened the file.
Output #0, mp4, to 'interm.mp4':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0, 0, 1/16000: Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p(progressive), 848x480 [SAR 1:1 DAR 53:30], q=2-31, 25 fps, 25 tbr, 16k tbn, 1k tbc (default)
    Metadata:
      BPS             : 43016
      BPS-eng         : 43016
      DURATION        : 00:00:30.000000000
      DURATION-eng    : 00:00:30.000000000
      NUMBER_OF_FRAMES: 750
      NUMBER_OF_FRAMES-eng: 750
      NUMBER_OF_BYTES : 161311
      NUMBER_OF_BYTES-eng: 161311
      _STATISTICS_WRITING_APP: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_DATE_UTC: 2017-04-21 19:50:27
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-21 19:50:27
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1, 0, 1/1000000: Subtitle: mov_text ([8][0][0][0] / 0x0008) (default)
    Metadata:
      BPS             : 10
      BPS-eng         : 10
      DURATION        : 00:00:14.000000000
      DURATION-eng    : 00:00:14.000000000
      NUMBER_OF_FRAMES: 2
      NUMBER_OF_FRAMES-eng: 2
      NUMBER_OF_BYTES : 19
      NUMBER_OF_BYTES-eng: 19
      _STATISTICS_WRITING_APP: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v10.0.0 ('To Drown In You') 32bit
      _STATISTICS_WRITING_DATE_UTC: 2017-04-21 19:50:27
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-21 19:50:27
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder         : Lavc57.93.100 mov_text
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
[mp4 @ 00000000004c1900] Delay between the first packet and last packet in the muxing queue is 10040000 > 10000000: forcing output
No more output streams to write to, finishing.
frame=  750 fps=0.0 q=-1.0 Lsize=     167kB time=00:00:29.88 bitrate=  45.7kbits/s speed=4.27e+003x    
video:158kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.751422%
Input file #0 (source.mkv):
  Input stream #0:0 (video): 750 packets read (161311 bytes); 
  Input stream #0:1 (subtitle): 2 packets read (19 bytes); 2 frames decoded; 
  Total: 752 packets (161330 bytes) demuxed
Output file #0 (interm.mp4):
  Output stream #0:0 (video): 750 packets muxed (161311 bytes); 
  Output stream #0:1 (subtitle): 2 frames encoded; 2 packets muxed (23 bytes); 
  Total: 752 packets (161334 bytes) muxed
2 frames successfully decoded, 0 decoding errors
[AVIOContext @ 000000000056d740] Statistics: 58 seeks, 800 writeouts
[AVIOContext @ 0000000000469640] Statistics: 200472 bytes read, 2 seeks

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

ffmpeg_mp4_subtitle_last_line_does_not_end.7z (178.9 KB ) - added by sneaker 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegavcodec
Keywords: mov_text added
Version: unspecifiedgit-master

I wonder if this is related to #7637.

in reply to:  1 comment:2 by fumoboy007, 5 years ago

Replying to cehoyos:

I wonder if this is related to #7637.

I don’t think this is related to the encoder. The file that I uploaded to #7855 is valid; QuickTime Player plays the file with the correct subtitle duration.

comment:3 by fumoboy007, 5 years ago

Cc: fumoboy007@me.com added

comment:4 by mkver, 5 years ago

Component: avcodecavformat
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.