Changes

Jump to: navigation, search

OggText

1,208 bytes added, 21:49, 13 November 2008
updates to the ident header
| Text type code | 36-39
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| cw sh | canvas Canvas width | ch sh | canvas height | 40-43
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message header fields... Canvas height | 44-47
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message header fields: Content-type & Content-language | 48-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ...
+-+-+
As per the Ogg specification, granule positions of pages must be non decreasing within the stream. Header pages have granule position 0.
* Padding/future use
The 3 Bytes padding data that may be used for future requirements and are mandated to zero in this revision. * Text type code:A 4 Byte string signifying one of the text codec types as listed above. This provides information to the media player as to what kind of data to expect in the sequel. * Canvas width / height:A 4 Byte unsigned integer each. They represent the width and height in pixels of the canvas onto which the text is meant to be displayed. This allows a render engine to adapt the screen layout of the text that can be provided in relative terms (percentage of the canvas width / height). If 0 width and height are provided, the width and height default to the size of the first video stream
* Message header fields
The number of Message header fields, following the generic Internet Message Format defined in RFC 2822 [Headers]. Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. The field value MAY be preceded by any amount of LWS, though a single SP is preferred. Header fields can be extended over multiple lines by preceding each extra line with at least one SP or HT.Message header fields are encoded in UTF-8, preferrably using US-ASCII code points. Two message header fields are mandatory:* Content-Type message header field, e.g. text/x-cmml, text/x-srt according to RFC 2045 * if no charset parameter is given, the character encoding defaults to UTF-8 * directionality of this text is implicitly given by the charset* Content-Language, e.g. en-AU, de-DE according to RFC 4646 and http://www.iana.org/assignments/language-tags
=== The format of the Skeleton Fisbone ===

Navigation menu