Log in

View Full Version : Maestro: CommandSequence for SPRM Readout


LeXXuz
22nd January 2003, 11:32
I didn't get it. Can anybody help ?

I'd like to write a command sequence which allows me to set audio
and subtitle languages as desired by the users dvd-player setup.

So I have to write a cs reading out the SPRM registers.

According to http://members.aol.com/mpucoder/DVD/sprm.html

I have to read out SPRM16 for the prefered audio language and
SPRM18 for the prefered subtitle language.

Allowable values should be in ISO 639 code. I always make my DVDs in english
and german language. So the codes would be 'DE' and 'EN' , right?

But how do I convert these 'values' into immediate or hex-values to make
a comparison for setting the desired stream ?

Let me explain:

Example:
1st audio stream is german
2nd audio stream is english

So I thought of the following sequence:


MOV GP0 , SPRM16 # read out desired audio language by setup in player
MOV GP1 , SPRM18 # read out desired subtitle language by setup in player

SetSTN Au(1) if (GP0 = ??? ) <== What do I have to set here for the "???"
SetSTN Au(2) if (GP0 = ??? ) <==
SetSTN St(1) if (GP1 = ??? ) <==
SetSTN St(2) if (GP1 = ??? ) <==
Jump to Movie2(#1)

So how do i get the 'DE' and 'EN' ISO CODE into a (hex)-value ?


2nd I don't understand in the SPRM overview is the meaning of SPRM19

What is the difference between 1 (=normal) and 5 (=normal caption)
or
3 (children) and 7 (childrens caption) ?



regards
Lexxuz

LeXXuz
22nd January 2003, 22:47
Never mind, I got it. It's ASCII Code to Hex or Dec. :p

mpucoder
22nd January 2003, 23:38
For your other question, subpictures described as "caption" are more descriptive. Whereas normal subtitles translate the dialog, captions are for hearing impaired, and also describe sounds such as laughter, thunder, etc.

LeXXuz
23rd January 2003, 19:34
Thanks for the info. :)
I thought about the "caption" subtitles beeing for the hearing impaired, but I was not sure.

How can I find out that a user wants to display subtitles ?
In my Pioneer DV-343 I have the options ( ON / OFF / Assist Subtitles ).
Were I guess the "assist subtitles" are for the hearing impaired.
But which value of the SPRM19 reg. is responsible for the "on" and "off" setting ?

regards
LeXXuz

oddyseus
24th January 2003, 12:59
Great site mpucoder. I can't figure out how I missed it so long.