Log in

View Full Version : subtitle menu selection & jump to movie


broxburn
15th August 2010, 01:17
I have a movie with one menu - it's for subtitle selection.
The selections are subtitle 1,2 or none.
I want the movie to play after any button is pressed,
The menu comes up, but it won't proceed to the movie.
If I play the movie in MPC, it freezes after a button is selected.
The trace function in PgcEdit indicates that the target is not found.

Number of VTS: 1

VMG (VIDEO_TS.IFO)
------------------
VMG , First-Play PGC
********** pre commands:
********** post commands:
1 (JumpSS) Jump to VTSM 1, Sub-picture menu (TTN 1)
********** cell commands:

VMGM: no menu.


VTS 1 (VTS_01_0.IFO)
--------------------

VTSM 1 , LU 1 (en):

VTSM 1 , LU 1 (en) , 1 (0:00) 3b. SubPicM - Chapters: n/a, Programs: 1, Cells: 1
********** pre commands:
********** post commands:
1 Exit
********** cell commands:
********** menu buttons commands:
VOB ID 1, Cell ID 1 (First NAV pack LBA=0)
1 Group, Select button=0, Action button=0, 3 numerically selectable buttons.
1: (SetSTN) Set Sub-picture stream = 0, on ; RSM
2: (SetSTN) Set Sub-picture stream = 1, on ; RSM
3: (SetSTN) Set Sub-picture stream = 31, off ; RSM



VTST 1:

VTST 1 , 1 TTN 1 (1:03) Title 1 - Chapters: 2, Programs: 2, Cells: 2
********** pre commands:
********** post commands:
1 Exit
********** cell commands:

http://i36.tinypic.com/24qmijr.jpg

Alex_ander
15th August 2010, 07:58
Change RSM instruction in button commands to LinkTailPGC (this is possible within single command) and replace 'Exit' in menu post-commands with 'Jump to Title 1' .
Menu cell must have 'infinite' still time (if still menu without audio, your case looks like this) or looped with a cell command (in case of motion menu).

r0lZ
15th August 2010, 08:28
I agree with Alex_ander. The problem is the RSM in the button commands. The RSM command needs a point to resume to, so a title must have been visited before the menu, but in your DVD, it's not the case. So, either follow the advice of Alex_ander, or change the command in the first-play PGC to JumpTT to Title 1. The title will play immediately on DVD insert, and if you call the menu with the remote, it will work properly. (It is also possible to jump to Title 1 on insert and return immediately to the menu, to open the menu first but still retain the RSM commands. Let us know if you need that.)

Ghitulescu
15th August 2010, 09:10
The elegant solution to avoid traps with RSM is to use a GPRM that keeps track whether a title is currently playing or not, and it's not possible to use them for a button. But this requires a lot more knowledge on how the VM commands work.

Alex_ander
15th August 2010, 11:21
Yes, there's a dark side of completely removing RSM: if subtitle menu is called once again from playback, it is naturally expected to resume (not to restart) the title. But then RSM can be placed in the beginning of post-command list with checking the condition that chapter SPRM!=0, and buttons will work properly at further menu calls. This might need an additional line to rewrite SPRM data to some GRPM for the mentioned condition check. Of course, it is also possible to do without using SPRM, but most likely, it would take more than 2 extra lines.

r0lZ
15th August 2010, 11:54
This is usually what I do:

**** FP-PGC
[71 00 00 00 00 01 00 00] 1 Set gprm(0) =(mov) 1
[30 02 00 00 00 01 00 00] 2 (JumpTT) Jump to Title 1
**** TitleMenu_PGC
[71 00 00 01 00 00 00 00] 1 Set gprm(1) =(mov) 0
[56 00 00 00 04 00 00 00] 2 (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1)
[30 06 00 01 01 83 00 00] 3 (JumpSS) Jump to VTSM 1, Root menu (TTN 1)
**** Subpic_menu_post_commands
[20 A1 00 01 00 01 00 10] 1 if ( gprm(1) == 1 ) then { RSM }
[30 03 00 00 00 01 00 00] 2 (JumpVTS_TT) Jump to TTN 1 in this VTS
**** main_movie_pre_cmds
[00 A1 00 00 00 00 00 04] 1 if ( gprm(0) == 0 ) then { Goto line 4 }
[71 00 00 00 00 00 00 00] 2 Set gprm(0) =(mov) 0
[30 08 00 00 01 83 00 00] 3 (CallSS) Call the VTSM Root menu of the current VTS, resume cell 1
[00 00 00 00 00 00 00 00] 4 NOP
[71 00 00 01 00 01 00 00] 5 Set gprm(1) =(mov) 1
**** main_movie_post_cmds
[71 00 00 01 00 00 00 00] 1 Set gprm(1) =(mov) 0
[30 08 00 00 01 83 00 00] 2 (CallSS) Call the VTSM Root menu of the current VTS, resume cell 1

The FP-PGC sets GPRM 0 to a non-zero value, then jumps to the main movie. In the main movie, GPRM 0 is tested, and if it is not zero, it is reset to 0 and the nav continues to the main menu. Otherwise, the title is played normally.

When the main movie is playing, GPRM 1 is set, so that it can be checked in the menu PGCs to be sure that the RSM command is suitable and will resume to the main movie, and not any other title. (I could check SPRM 4 instead, but using a GPRM is more flexible. For example, here it is also reset when the menu is called via the Title Menu button, and that way, the RSM command will be bypassed and the title will be restarted completely. The Title Menu button can therefore be used to somewhat reset the DVD, without affecting the currently selected subpic and audio streams.)

The menu button commands must set the subpic stream and LinkTailPGC to execute either the RSM command or the JumpVTS_TT, depending of the state of GPRM 1.

Of course, I have assumed that GPRMs 0 and 1 are free, and not used elsewhere, as if the value of GPRM 0 changes for another reason, the main movie could become unplayable!

BTW, broxburn, I've noticed that you have only a Subpic menu, and no Root menu. IMO, it is better to change it to RootM, as otherwise you will not be able to call it with most remotes (as usually they do not have the button to call the Subpic Menu.)

broxburn
15th August 2010, 15:23
@Alex_ander
Thank you, I made that change and it corrected the problem.

@Ghitulescu
I shall strive for elegance - but first comes baby steps - my head aches trying to understand the logic involved in setting the registers.

@r0lZ
I did notice that the remote couldn't get back to the menu and change it as you suggested - thank you.
As mentioned to Ghitulescu, I will study your example settings.

bigotti5
15th August 2010, 17:37
...(as usually they do not have the button to call the Subpic Menu.)
On near every player you can reach subpicture menu by pressing
[Subtitle] and [Menu] in quick succession.

Ghitulescu
15th August 2010, 18:07
@Ghitulescu
I shall strive for elegance - but first comes baby steps - my head aches trying to understand the logic involved in setting the registers.

@r0lZ
I did notice that the remote couldn't get back to the menu and change it as you suggested - thank you.
As mentioned to Ghitulescu, I will study your example settings.

Use r0lZ's examples, that's how I do it myself (I "stole" the idea from an episodic movie ;)).

r0lZ
15th August 2010, 18:10
On near every player you can reach subpicture menu by pressing
[Subtitle] and [Menu] in quick succession.
I didn't know that. Thanks for the tip. I'll try it...

broxburn
16th August 2010, 02:15
@rolZ

Sorry to be so obtuse.

**** FP-PGC are these Post commands that are listed?

**** TitleMenu_PGC right click on FP-PGC and create a dummy Title Menu? and are these commands Pre or Post?

**** Subpic_menu Do I retain my original Subpic_Menu instead of changing it to a Root menu?

**** main_movie_pre_cmds is this referring to Title 1 VTST 1 , 1 TTN 1


**** main_movie_post_cmds
2 (CallSS) Call the VTSM Root menu of the current VTS, resume cell 1

I can't figure where this root menu is in relation to the rest.

Ghitulescu
16th August 2010, 08:47
FirstPlay is something different from the others. This domain has only one PGC, no titles or menus.

The commands should be pre because you set a button highlight.

Apparently you need to read a lot about how a DVD works, and what the VM commands do. Google for DVD replica, and/or use the internet links provided by pgcedit.

r0lZ
16th August 2010, 08:52
My example is a general example. You have to somewhat adapt it to your case. But it's easy.


**** FP-PGC are these Post commands that are listed?
Since the FP-PGC is a dummy, it doesn't matter, as there is no video content in the middle. However, usually, the commands of a dummy PGC are placed in the pre-commands section.


**** TitleMenu_PGC right click on FP-PGC and create a dummy Title Menu? and are these commands Pre or Post?Yes. And ditto.


**** Subpic_menu Do I retain my original Subpic_Menu instead of changing it to a Root menu?You can do both. IMO, it is easier to change it to RootM, but you can also create a new RootM dummy PGC, with a LinkPGCN to your SubpicM PGC.


**** main_movie_pre_cmds is this referring to Title 1 VTST 1 , 1 TTN 1 Yes, in your case. (Sometimes, the main movie is not the first title in the DVD.)


**** main_movie_post_cmds
2 (CallSS) Call the VTSM Root menu of the current VTS, resume cell 1

I can't figure where this root menu is in relation to the rest.It's the menu of the main movie (and usually the main menu of the DVD). Since you have only a subpic menu in your DVD, for you it's your subpic menu. You have to call the SubpicM or the RootM, depending of what you decide to do with your current SubpicM. (See point 3 above.)

[EDIT] And follow Ghitulescu's advice. Re-authoring a DVD is a programming job. You have to understand the structure of the DVDs, and to know the language. DVD-Replica is a good site to start. And use PgcEdit's trace mode a lot, in step mode. Have a look at the trace log and the Watch window (showing the GPRM and SPRM values as they change), and you will soon understand the basic principles.
Good luck!