[FFmpeg-devel] [PATCH] matroska: Identify S_TEXT/UTF-8 tracks as SRT and not TEXT.

Hendrik Leppkes h.leppkes at gmail.com
Mon May 21 09:21:40 CEST 2012


I don't think this is correct.
Matroska contains the plain text inside the packet, it does not store SRT
data, nor does the matroska demuxer try to re-create SRT packets.

For comparison, the .srt demuxer in libavformat does re-produce the SRT
packets completely, including the timestamp line. Matroska and the SRT
demuxer would produce incompatible output.
Additionally, the SRT Decoder in avcodec expects the timing line to be
included in the SRT packet, therefor i doubt this kind of handling would
actually work with avcodecs SRT decoder.

For all intents and purposes, this is just text, and the timing metadata is
stored separately, in contrast to SRT where the timing is part of the text.


More information about the ffmpeg-devel mailing list