[ogg-dev] How to embede text into the Ogg stream
giles at xiph.org
Thu Jan 10 11:24:15 PST 2008
On Thu, Jan 10, 2008 at 10:20:51AM -0800, Boian Mitov wrote:
> What is the proper way to embed text stream into the Ogg stream? I need to have text information (lyrics as example) recorded together with the audio. Is there a standard mechanism for that? What is the right way to do it?
There's no standard way to do that. Some people embed lyrics wholesale
in a vorbis comment tag. "LYRICS=line 1\nline2\n..." This has the
advantage of working with older audio-only players.
A better way is to put the text in its own stream and multiplex it with
the audio. Especially if the text has a time index or is generated on
the fly, in parallel with the audio. There have been a couple of
proposals for this; the most popular one right now is to use the
<description> or <caption> tags inside an CMML stream.
We would like to get this standardized, so let us know how it goes.
More information about the ogg-dev