Revision as of 07:48, 20 March 2010
Adding Required Headers to Skeleton
With the HTML5 video element, Ogg is now a major format on the Web and is being applied to solve use cases it hasn't had to solve before, but was built to allow, see http://www.xiph.org/ogg/doc/oggstream.html.
One particular such use case is dealing with multitrack audio and video, such as in videos with multiple view angles encoded in one, or ones with a sign language video track, an audio description audio track, a caption track and several subtitle tracks in different languages (i.e. several theora, several vorbis and several kate tracks).
On this wiki page, we are collecting such new information fields.
Right now, there is one mandatory Message header field for all of the logical bitstreams: the "Content-type" header field, which contains the mime type of the track. The mime types in use here are listed at http://wiki.xiph.org/MIME_Types_and_File_Extensions#Codec_MIME_types.
In many applications it is necessary to walk through all the tracks in a media resource and address tracks by an index.
In Ogg, the means to number through the tracks is by the order in which the bos pages of the tracks appear in the Ogg stream.
For example, a video file with the following composition would have the following indexes:
- track: Skeleton BOS
- track: Theora BOS for main video
- track: Vorbis BOS for main audio
- track: Kate BOS for English captions
- track: Kate BOS for German subtitles
- track: Vorbis BOS for audio descriptions
- track: Theora BOS for sign language