[FFmpeg-devel] [PATCH] libavformat: libavformat: output cues for each subtitle block in MKV muxer

John Peebles johnpeeb at gmail.com
Thu May 22 22:22:32 CEST 2014


If you use ffmpeg to remux an mkv file and the file has ASS subtitles, only
the first subtitle with a given timecode will be added to the list of cues.

This is caused by two issues:
(1) the MKV muxer only writes one cue per AVPacket, but ASS subtitles may
have multiple blocks corresponding to one AVPacket.
(2) The MKV muxer only writes a cue for the first block in a track with a
given timecode. For subtitles, multiple blocks may have the same timecode.

This patch fixes these issues by always writing one cue per block for
subtitle tracks, even if multiple blocks have the same timecode.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-output-cues-for-each-subtitle-block-in-M.patch
Type: application/octet-stream
Size: 9584 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140522/e061994f/attachment.obj>


More information about the ffmpeg-devel mailing list