Subtitles and dual-audio in WebM?

840 views
Skip to first unread message

cso...@gmail.com

unread,
Jan 31, 2011, 7:24:32 PM1/31/11
to webm-d...@webmproject.org
As you should know, the WebM format is a subset of Matroska. The latter is able to embed any number of video, audio, and subtitle formats. But I'm unsure on how many video/audio/subtitle tracks can a particular .webm file contain. As far as I am concerned, it would be one video track, one audio track and zero subtitle tracks. Am I right on that?
- Carlos Solís

Matthew Heaney

unread,
Jan 31, 2011, 7:56:12 PM1/31/11
to webm-d...@webmproject.org
On Mon, Jan 31, 2011 at 4:24 PM, cso...@gmail.com <cso...@gmail.com> wrote:
> As you should know, the WebM format is a subset of Matroska.

Correct, but it has a different doctype: "webm" instead of "matroska".


> The latter is
> able to embed any number of video, audio, and subtitle formats. But I'm
> unsure on how many video/audio/subtitle tracks can a particular .webm file
> contain. As far as I am concerned, it would be one video track, one audio
> track and zero subtitle tracks. Am I right on that?

I think that's what the container standard says. Here's link:

http://www.webmproject.org/code/specs/container/

For now, assume that a webm file has 0 or 1 video tracks, 0 or 1 audio
tracks, and no subtitles. (Work on subtitles, XMP metatdata, etc, is
in work, however.)

-Matt

Steve Lhomme

unread,
Feb 1, 2011, 12:02:34 PM2/1/11
to webm-d...@webmproject.org
Are these limitations written anywhere ? For example I wasn't aware
that a WebM file can only contain one audio stream.

Steve

> --
> You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
> To post to this group, send email to webm-d...@webmproject.org.
> To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
> For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.
>
>

--
Steve Lhomme
Matroska association Chairman

Vladimir Pantelic

unread,
Feb 1, 2011, 1:31:59 PM2/1/11
to webm-d...@webmproject.org
Steve Lhomme wrote:
> Are these limitations written anywhere ? For example I wasn't aware
> that a WebM file can only contain one audio stream.

I guess by the same reasoning that subtitles are to be kept outside,
a different audio track means a different file served...

Matthew Heaney

unread,
Feb 1, 2011, 6:23:17 PM2/1/11
to webm-d...@webmproject.org
On Tue, Feb 1, 2011 at 9:02 AM, Steve Lhomme <slh...@matroska.org> wrote:
> Are these limitations written anywhere ? For example I wasn't aware
> that a WebM file can only contain one audio stream.

If it's not specifically prohibited by the spec, then I guess that
means it's OK. I know the parsers I wrote don't care how many streams
are in the file. The usual rule applies: be conservative about what
you write, and liberal about what you read.

-Matt

Reply all
Reply to author
Forward
0 new messages