[FFmpeg-devel] [PATCH] Matroska demuxer adds WebVTT support

Nicolas George nicolas.george at normalesup.org
Fri Jul 19 20:01:26 CEST 2013


Le primidi 1er thermidor, an CCXXI, wm4 a écrit :
> To be fair, it's exactly the same for ASS subtitles. FFmpeg now has two
> packet formats for ASS: one as used in Matroska packets ("ass"), and one
> as used in .ass files ("ssa", has nothing to do with SSA). This is a
> recent change, and before this, matroskadec.c mangled the Matroska
> packets to make them look like the packets assdec.c outputs. But this
> was a problem in some ways (for example, duplicated timestamps), so it
> was changed.
> 
> In my opinion, the Matroska ASS packet format is a superset of what
> assdec.c outputs, so assdec.c should be changed to output the Matroska
> format.

That is the plan. The packet format for the SSA codec id was a quick hack to
get the interface with libass working, but it was very badly designed from
an API point of view.

The plan is to deprecate the SSA codec id in favour of ASS, both for the
Matroska muxer and demuxer (done), the .ass text file muxer (done) and the
.ass text file demuxer (not yet done, should be easy).

The ultimate goal would be that ffprobe -show_data shows the same thing when
reading from a .ass file or from a Matroska file produced by a third-party
application (mkvmerge), and also the same thing as visible in a hex dump of
the Matroska file directly.

Regards,

-- 
  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/20130719/227740fb/attachment.asc>


More information about the ffmpeg-devel mailing list