Opened 4 years ago

Last modified 3 years ago

#5434 new enhancement

add support of WebVTT subtitles in Matroksa files

Reported by: Klaus1189 Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: mkv
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


I contacted Moritz Bunkus, the developer of MKVToolNix, because according to ironic_monkey from Kodi forum FFMPEG doesn't support the new spec. Here you can see the full thread at Kodi forum:

Moritz Bunkus explained the issue to me.
Up until a couple of days ago the storage of WebVTT in Matroska hadn't been specified yet. What ffmpeg seems to support (D_WEBVTT/…) is an old and outdated work-in-progress paper by the WebM project[1]. We (as in the Matroska project) have decided not to use their proposal in Matroska
for several reasons:

  1. The proposal is old (from February 2012). The WebVTT specs have changed considerably since then, and therefore the WebM proposal doesn't handle several of those additions and changes.
  1. It suggests splitting the single WebVTT file into multiple tracks inside WebM. This is possible but it makes handling of multiple tracks more difficult than it has to be for demuxers and remuxers. Additionally there's no way to specify that several tracks belong to the same logical track and must be handled all at once.
  1. The WebM proposal is still a work in progress and WebM still officially doesn't support subtitles at all[2].

The Matroska project has now formalized the storage of WebVTT in
Matroska[3]. The specs have been added to the Matroska web site[4].

The next step should be to add support in ffmpeg for the current storage method.


Here you can get a sample file:

Change History (2)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords mkv added
  • Priority changed from normal to wish
  • Version changed from unspecified to git-master

comment:2 Changed 3 years ago by Klaus1189

any news?

Note: See TracTickets for help on using tickets.