View Single Post
Old 2nd February 2015, 13:32   #144  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
OK, there is indeed a big bug in your DVD.
As I have explained above, the two buttons of the subtitle menu change only GPRM 6, and they do not select the subtitle stream directly. A GPRM is a variable, that can hold any value. Setting a GPRM to a specific value has no interest, unless that GPRM is used later to do some thing according to its value. In this case, the DVD authoring should set the subtitle stream on or off according to the value of the GPRM. Changing the subtitle stream must be made either manually with the remote, or with the SetSTN command. The SetSTN command appears only at one place in the whole DVD: it's the second pre-command of the main movie PGC (VTS 1, 1). However, that command is not correct:
Code:
[51 00 00 00 C0 00 00 00]   2  (SetSTN) Set Sub-picture track = 0, on
As you can see, that command selects subtitle track 0 and turns it on anyway, regardless of the value of GPRM 6. Since that command is always executed before the main movie begins to play, the subtitle is always on.

To use the value contained in GPRM 6 and therefore to take into account the user choice, you should modify that command, like this:
Code:
[41 00 00 00 86 00 00 00]   2  (SetSTN) Set Sub-picture track = gprm(6)
That commands uses the value in GPRM 6 to select subtitle #0 and turn it on or off. (Double-click the command to modify it. In the command editor, select the option "Set audio, sub-picture and/or angle to GPRM". Then, in the "sub-picture" frame, leave the "set to" option unchanged, but change the GPRM number from 0 to 6. OK the dialog.) Now, when you insert the DVD, if you go to the subtitle menu and use the ON or OFF button, and then you play the movie, the subtitle selection will be correct.

However, that's not sufficient to solve all problems related to the subtitles. Currently, GPRM 6 is never modified, unless the user goes to the subtitle menu to explicitly change it with one of the two buttons. Since the value of a GPRM is 0 by default, if the movie is played directly, without going to the subtitle menu first, that value will be used to select the subtitle. 0 means select subtitle #0 and turn it OFF. If it's not what you want by default, you should initialize the value of GPRM 6 to do what you want by default.

There are 3 possibilities. You can set the value to 0 to turn the subtitle OFF be default, or set it to 64 to turn it ON by default, or set it to 62 to let the player decide if the stream must be turned on or off according to its language settings. Anyway, to do that, select the First Play PGC in the left pane, be sure to select the very first line (with "*** pre commands") in the right pane, click the "Add After" button in the bottom of the main window. You should see a new NOP command as pre-command #1. Double-click that command to open the command editor. Use the "Alphabetically" menu to select the "Set" command. Now, change the "Set GPRM 0 = Mov Value 0" to "Set GPRM 6 = Mov Value N", where N is 0, 64 or 62, depending of what you want by default. OK the dialog.
For example, to turn the subtitle #0 ON by default, the new command should be:
Code:
[71 00 00 06 00 40 00 00]   1  Set gprm(6) =(mov) 64
Save the DVD and test with a good software player before burning it.

BTW, IMO there is another little problem in this DVD. The main movie has no "Root Menu", and it is therefore impossible to return to the menu during the playback of the movie, except by clicking the Title Menu button. It's unusual, and it is easy to fix that problem if you wish. Click on the "VTST 1, 1 TTN 1 (2:04:17) Title 1" PGC in the left pane, and select the 4 post-commands with the mouse in the right pane, and then click on the "Copy" button to copy them in the clipboard. Now, right-click on the same PGC in the left pane, and select "New Menu" in the popup menu. You should see a new "VTSM 1, LU1 (en), 1 ..." PGC just above the main movie PGC. In the right pane, select the first pre-command and click the "Paste Replace" button. The 4 post-commands of the main movie should now replace the default command of the new menu PGC, like this:
Code:
VTSM 1 , LU 1 (en) , 1  (dummy)  RootM

********** pre commands:
[71 00 00 03 00 00 00 00]   1  Set gprm(3) =(mov) 0 
[71 00 00 07 00 01 00 00]   2  Set gprm(7) =(mov) 1 
[61 00 00 06 00 82 00 00]   3  Set gprm(6) =(mov) sprm(2:Sub-picture track number) 
[30 06 00 01 00 C0 00 00]   4  (JumpSS) Jump to VMGM PGC 1 
********** post commands:
********** cell commands:
(The 4th command is different than in the main movie PGC, but it's normal.) Save and test. Now, it is possible to use the normal Menu button on the remote to return to the menu during the playback of the movie.

Now your DVD should work perfectly. Enjoy!
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV

Last edited by r0lZ; 2nd February 2015 at 13:42.
r0lZ is offline   Reply With Quote