[FFmpeg-devel] [PATCH 2/3] textdec: Rename all generic parts from srt to text.

Nicolas George nicolas.george at normalesup.org
Wed Aug 1 20:18:45 CEST 2012

Le quintidi 15 thermidor, an CCXX, Philip Langdale a écrit :
> So, the problem here is matroska. When you put SRT into matroska, it
> gets tagged as TEXT, but all the formatting remains, and should be
> respected. You may recall the change I proposed a couple of months ago
> to identify matroska TEXT tracks as SRT, as a way to make things line
> up again. You and Clément felt that was abusive as the track is text
> in the sense of not including SRT timing information. Fair enough, hence
> I made this change.
> But the pseudohtml styling is still present in the track and needs to
> be respected, so any decoder that wants to decode CODEC_ID_TEXT and
> work correctly with SRT-in-MKV must behave as written.
> Either we do this, or we identify mkv text tracks as srt. I don't see
> another solution (unless you want a third decoder just for
> srt-in-mkv...)

The problem is that anything SRT-like is a complete mess. There is this
pseudo-HTML markup, but there are also SRT files at large with ASS markup.
Even worse, there are files with both pseudo-HTML and ASS markup. I assume
the same goes for S_TEXT in Matroska.

Of course, we must try to make the best of it. But I do not understand the
kind of scenario you are trying to make work exactly.

As for the AVSubtitleRect.ass field, it is an abomination and must be killed
as soon as possible.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120801/8c03efa4/attachment.asc>

More information about the ffmpeg-devel mailing list