PDA

View Full Version : changing the default subtitle..


deejay220989
28th April 2006, 14:44
Hi guys..ive got this LOTR DVD..

Whenever it starts..it will load the danish subs by default but I want the DVD to start the english subs by default instead of danish.

I had already tried the manual with IFOedit as well as pgcedit.

I managed to make the english to be the default subtitle but the problem is the subtitle cannot enable itself automatically..which means I have to enable the subs myself.

I tried the play DVD in IFOedit and the subs enabled auto but when I play the dvd using my DVD player and PowerDVD..it doesn't auto enable the subtitles

Wat can I do?

r0lZ
29th April 2006, 00:14
You have to use a command like this one:
(SetSTN) Set Sub-picture stream = 0, on
(Of course, if the english subpics are not the first ones in the list, you have to use another stream number.)

Put it as the first pre-sommand of your main movie.

deejay220989
29th April 2006, 01:01
Yes..Thats what I did..and the English IS the first one on the list.

The guide says put is as the last pre-command..no?

Edit!

I tried placing it as the first pre-command and I had errors playing the DVD..

But it worked after I place that command after (SetSTN) Set sub-picture stream = gprm(2)

Btw..when I change the (SetSTN) Set sub-picture stream = gprm(2) to (SetSTN) Set sub-picture stream = gprm(3)..the subs will also auto enable itself in englsih..why?

What is this (SetSTN) Set sub-picture stream = gprm(2) ??

blutach
29th April 2006, 02:52
It simply says set the register which controls which subpic stream is displayed (SPRM 2 actually) to whatever is in general register 2 (gprm 2).

If you have English as your first subbie stream (stream 0), then after the command is executed you want SPRM 2 to equal 64 (adding 64 turns it on).

So make sure gprm (2) is set to 64 immediately before the SetSTN command is executed. Test it in a good software player.

Regards

r0lZ
29th April 2006, 03:05
A gprm is a variable, holding a value initialized elsewhere in the DVD. Don't change the gprm, or you will get unexpected results! If you got the subpic 0 when using gprm(3), it's probably because, per chance, it holds the right value to enable the right stream.

To set your subpic stream, you have to either:

- use a direct SetSTN. Ie, use the command "Set Sub-picture stream = 0, on", and be sure to tick the "constant values" radiobutton! This method is simple, but will overwrite the subpic selection you make with the menus.

- change the value of the gprm where it is initialized.
Go in trace mode, and call the menu "Breakpoints -> Break at log output". A little string entry will appear just below the trace log window. Type in "Set gprm(2)" (w/o the quotes.) Click on the ->>> Run button to start the trace. When a Set command that modifies the gprm(2) is encountered, the trace will stop automatically. It should be something like "Set gprm(2) =(mov) 65" (assuming the default danish subpic is the second stream.) Change the value to 64 (64 is needed to set the stream ON. You have to add your stream number to 64, but since it's the first one, his number is 0, so, use 64.) Save and test. If that doesn't work, it's probably because the gprm(2) is initialized at several places in the DVD. Do the same thing again, until it works.
Notes: Do not trace to your subpic selection menu. You have to leave the commands that are executed after this menu is called unchanged, or the menu button will not set the right stream anymore.
In any case, do an incremental backup before modifying the Set commands. If there are many lines with gprm(2) in your DVD, you can easily be lost!

If it still doesn't work, I'll explain a third method...

[EDIT: blutach was faster than me!]

deejay220989
29th April 2006, 03:27
Its ok..it worked now..

But its kinda weird..ive been doing the same thing and it only worked now...

Anyway..thanks for all your help!

blutach
29th April 2006, 06:30
@r0lZ and OT (so sorry in advance).

I find the easiest way to break on a register is simply to click it in trace mode (turns red). No need for break on log output :) Of course, break on log output allows for more sophisticated strings.

Regards

r0lZ
29th April 2006, 11:22
Yes, blu. I wanted to break only at the Set command.