Sprm 1: current audio stream number, Sprm 2: current subtitle stream number – Apple DVD Studio Pro 4 User Manual

Page 501

Advertising
background image

For example, the letters “en” represent English. The lowercase “e” is converted to an ASCII
value of 101 decimal or 65 in hexadecimal. The lowercase “n” is converted to an ASCII
value of 110 decimal or 6E in hexadecimal. When concatenated together in hexadecimal,
the value is 656E. The decimal value of 656E is 25966.

See

Language Code Table

for a complete listing of all of these language values.

It is useful to know the setting of this SPRM when dealing with multiple-language projects.
By reading the value of SPRM 0, you can determine the language the viewer wants to
see the menus displayed in. For instance, if you have a project that has menus in more
than one language, you can display menus in the language the viewer has selected.

SPRM 1: Current Audio Stream Number

The DVD specification allows for up to eight different audio streams. This SPRM lists the
current stream being played or the last one selected by the viewer.

The value range for this SPRM is 0 through 7, where 0 is the first stream and 7 is the last
stream.

SPRM 1 value

Stream number

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

8

This information is useful when tracking which audio stream was last selected or played.
It is very useful when determining which button to highlight when jumping to a menu
where audio streams are selected. This is especially important if the viewer is allowed to
change the audio stream while viewing the movie.

SPRM 2: Current Subtitle Stream Number

The DVD specification allows for up to 32 different subtitle streams. This SPRM contains
two sets of values.

The first value shows which of the 32 streams is selected. These values range from 0
through 31 with 0 being the first stream and 31 being the last stream. The second value
of this SPRM is a display flag that tells you if the subtitle is turned on or off. The flag has
a value of 64 for on and 0 for off.

501

Chapter 20

Creating Scripts

Advertising