Description
Maps a MPEG-2 stream to a DVD language. The MPEG-2 stream defined by this element can be an audio stream or a subtitle/sub-picture stream.
<stream
languageCode="string"
mpegStreamID="num"
mpegSubStreamID="num"/>
- Required Attributes
Attribute | Description |
languageCode | A two letter language code (e.g. EN, FR). See DVD Language Codes for more information. |
mpegStreamID | MPEG stream ID. A stream with this ID must exist in all video objects in the title set. |
- Optional Attributes
Attribute | Description |
mpegSubstreamID | MPEG substream ID. Use this attribute when the value of the mpegStreamID attribute is set to 0xBD (private stream). A private stream with this substream ID must exist in all video objects in the title set. |
- Audio Streams
Stream | MPEG Stream ID | MPEG Substream ID |
MP2 (MPEG-2 Audio) | From 0xC0 to 0xDF | N/A |
AC-3 (Dolby Digital Audio) | 0xBD | From 0x80 to 0x87 |
DTS (Digital Theater System Audio) | 0xBD | From 0x88 to 0x8F |
LPCM (Linear Pulse Code Modulation Audio) | 0xBD | From 0xA0 to 0xA7 |
- Sub-picture Streams
Stream | MPEG Stream ID | MPEG Substream ID |
Subtitles | 0xBD | From 0x20 to 0x3F |
Example
The following example shows a DVD that has one title with two audio streams (Bulgarian and English) and three subtitle streams (Bulgarian, English and French).
<?xml version='1.0' encoding='utf-8'?>
<dvd version='2.3' xmlns='http://www.primosoftware.com/dvdbuilder/2.3'>
<videoManager firstPlayNavigate='Title=1;'/>
<titleSet>
<audioStreams>
<stream languageCode='BG' mpegStreamID='0xBD' mpegSubstreamID='0x80'/>
<stream languageCode='EN' mpegStreamID='0xBD' mpegSubstreamID='0x81'/>
</audioStreams>
<subPictureStreams>
<stream languageCode='BG' mpegStreamID='0xBD' mpegSubstreamID='0x20'/>
<stream languageCode='EN' mpegStreamID='0xBD' mpegSubstreamID='0x21'/>
<stream languageCode='FR' mpegStreamID='0xBD' mpegSubstreamID='0x22'/>
</subPictureStreams>
<titles>
<title id='1' chapters='00:00:00'>
<videoObject file='1.mpg' />
</title>
</titles>
</titleSet>
</dvd>