From 509642b4bd8411d3a6965e97cf7dacc3c45fe92a Mon Sep 17 00:00:00 2001 From: Matthew Heaney Date: Mon, 8 Jul 2013 16:25:30 -0700 Subject: WebM muxer writes WebVTT subtitle track The Matroska muxer now allows WebVTT subtitle tracks to be written while in WebM muxing mode. WebVTT subtitle tracks have four kinds: "subtitles", "captions", "descriptions", and "metadata". Each text track kind has a distinct Mastroska CodecID and track type, as described in the temporal metadata guidelines here: http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm When the stream has codec id AV_CODEC_ID_WEBVTT, the stream packet is serialized per the temporal metadata guidelines cited above. The WebVTT cue is written as a Matroska block group. The block frame comprises the WebVTT cue id, followed by the cue settings, followed by the cue text. (The block timestamp is synthesized from the cue timestamp.) Signed-off-by: Michael Niedermayer --- libavformat/matroska.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/matroska.h') diff --git a/libavformat/matroska.h b/libavformat/matroska.h index af662bea4d..886a34636d 100644 --- a/libavformat/matroska.h +++ b/libavformat/matroska.h @@ -230,6 +230,7 @@ typedef enum { MATROSKA_TRACK_TYPE_LOGO = 0x10, MATROSKA_TRACK_TYPE_SUBTITLE = 0x11, MATROSKA_TRACK_TYPE_CONTROL = 0x20, + MATROSKA_TRACK_TYPE_METADATA = 0x21, } MatroskaTrackType; typedef enum { -- cgit v1.2.3