Log in

View Full Version : Subtitles ON/Off Problem


NikLever
26th July 2006, 16:03
Hi
I'm using Scenarist to author a DVD title. I have an issue with Subtitles. The DVD has a Settings menu that uses GPRM4 == 2 to indicate that Subtitles should be displayed. When I go to a video title that has subtitles I use

1. if (GPRM4 == 2) GoTo 4
2. SetSTN 1:Off
3. Break
4. SetSTN 1:On

On most machines this seems to work fine and the subtitles are either on or off to reflect the value of GPRM4. But on some machines the subtitles default to on, they are not set to Forced Start.

Ideally I'd like to get the value of the SubTitles as the video is exited so that I can set GPRM4 to reflect the right value. If subtitles have been turned on using the remote. I presume I can use the value of SPRM2 for this.

Should I use SetSTN 62:On to turn off subtitles instead of SetSTN 1:Off? Therefore if SPRM2 == 62 then I should set GPRM4 = 2 and if SPRM2 != 62 then set GPRM4 = 0.

Machines that work incorrectly seem to be Pioneers, but this may just be a coincidence.

Any thoughts would be appreciated.

Nik

~bT~
26th July 2006, 21:05
Some machines have an option where it can automatically turn subs on without any user interaction. My Cyberhome 401 DivX player does that and so does my Sony DVD player. I would look at the settings of the player instead of the DVD. Hope this helps.

NikLever
27th July 2006, 09:35
I'd prefer to be able to override this default action. I'll try a SetSTN 62:On to see if this fixes the problem.

~bT~
27th July 2006, 10:37
I'd prefer to be able to override this default action. I'll try a SetSTN 62:On to see if this fixes the problem.This default action of the player u can change through the set up options.

Susana
27th July 2006, 10:57
Should I use SetSTN 62:On to turn off subtitles instead of SetSTN 1:Off?

SPRM#2 uses 7 bits. [b_6 b_5 b_4 b_3 b_2 b_1 b_0]

b_4 to b_0 specify 32 streams:
0 0 0 0 0 :stream 0
0 0 0 0 1: stream 1
0 0 0 1 0: stream 2
.........................
1 1 1 1 0: stream 30
1 1 1 1 1: stream 31

b_5: not used

b_6: 1 (subpicture ON) ; 0 (subpicture OFF)

So, for example:
1 0 0 0 0 0 0 = 64 (decimal) = stream 0 ON
0 0 0 0 0 0 1 = 1 (decimal) = stream 1 OFF

The initial value of this system register is:
if subtitles OFF in player setup: 0 1 1 1 1 1 0 = 62 (decimal)
if subtitles ON in player setup: 1 1 1 1 1 1 0 = 126 (decimal)

As well as ON/OFF, in player setup you specify subtitle language.

SetSTN 62:On is meaningless, you only have 32 streams.

1. if (GPRM4 == 2) GoTo 4
2. SetSTN 1:Off
3. Break
4. SetSTN 1:On
More elegant: GPRM4=64 (on) GPRM4=0 (off)
Then, SetSTN=GPRM4. (only 1 command)

In binary:
SetSTN=GPRM4=0 --> 0 0 0 0 0 0 0 = stream 0 off
SetSTN=GPRM4=64 --> 1 0 0 0 0 0 0 = stream 0 on

But on some machines the subtitles default to on, they are not set to Forced Start.
That's not possible unless it faults. Initial player setting (on/off and language) is overwrited by command SetSTN subpicture, changing SPRM2 at the moment title is displayed.

Hope this helps.

NikLever
27th July 2006, 18:05
That's really helpful thank you. As I said the code I was using works on most machines. It just doesn't have the affect of turning off subtitles on a machine that defaults to SubTitles on. Even though the code SetSTN 1:Off is definitely executed. I understand that this is an issue with early Pioneer machines. I might set SetSTN 0:Off as well to see if that fixes it.