I posted in this thread: https://forum.videohelp.com/threads/356195-Help-me-pick-the-software-I-need!
I need some specific help with pgcedit from someone that knows this software better than I.
Basically after each chapter plays I need it to return to the titles menu.
I've seen where you can issue a cell command, but the CallSS commands that I saw is blanked out when I add a new "after" cell.
Thanks!
+ Reply to Thread
Results 1 to 4 of 4
-
-
Hopefully this helps out someone in the future.
I have gotten it so that all chapters go back to the VTSM1 root. good, 1 step closer.
Added LinkTailPGC to the title and set each chapter for cell cmd #1, flag type 2.
My problem now is that chapters that are on say page 2 or 3 of the chapters menu end and go back to the chapter 1 menu.
I need to find a way to get say chapter 14 to end and go to the menu page 2 (VSTM1, 17 15b). -
Title can return only to a specific menu (Root, Audio, Sibpic, Chapter, Angle) in the same VTS.
If your other menu is other than those, you have to use IF command to go from Root to your other menu.
For this, you will have to use Register value.
In cell command set ,let say," Set gprm(1)= move 1, Link TailPGC" than this command #(in your case #2) will go to all chapters in menu2
Than in Root menu you use if (gprm(1)==1) than (LinkPGCN PGC17) assuming PGC17 is your menu 2.
For other menu you will use gprm(1)=2 and corresponding IF command.
You can use R from 0 to 15.
Yus make sure you choose unused gprm oterwise it will mess up you flow.Last edited by tinker; 26th May 2013 at 06:05.
-
Here is the code I use in the menu PGC to jump to the right menu cell and select the right button (corresponding to the last played chapter):
Code:[61 00 00 0F 00 87 00 00] 1 Set gprm(15) =(mov) sprm(7:Chapter number (or PGN)) [74 00 00 0F 00 01 00 00] 2 Set gprm(15) -=(sub) 1 [77 00 00 0F 00 04 00 00] 3 Set gprm(15) %=(mod) 4 [73 00 00 0F 00 01 00 00] 4 Set gprm(15) +=(add) 1 [75 00 00 0F 04 00 00 00] 5 Set gprm(15) *=(mul) 1024 [46 00 00 00 00 0F 00 00] 6 (SetHL_BTN) Set Highlighted Button =(mov) gprm(15) [61 00 00 0F 00 87 00 00] 7 Set gprm(15) =(mov) sprm(7:Chapter number (or PGN)) [74 00 00 0F 00 01 00 00] 8 Set gprm(15) -=(sub) 1 [76 00 00 0F 00 04 00 00] 9 Set gprm(15) /=(div) 4 [73 00 00 0F 00 01 00 00] 10 Set gprm(15) +=(add) 1 [00 A2 00 0F 00 01 00 00] 11 if ( gprm(15) == 1 ) then { Break } [20 A4 00 0F 00 02 00 07] 12 if ( gprm(15) == 2 ) then { LinkPGCN PGC 7 } [20 A4 00 0F 00 03 00 08] 13 if ( gprm(15) == 3 ) then { LinkPGCN PGC 8 } [20 A4 00 0F 00 04 00 09] 14 if ( gprm(15) == 4 ) then { LinkPGCN PGC 9 } [20 A4 00 0F 00 05 00 0A] 15 if ( gprm(15) == 5 ) then { LinkPGCN PGC 10 }
The code assumes that GPRM(15) is free and can be used to store temp values. You may need to replace it with another one (gprm(0) is often used to store temp values).
It assumes also that the menu is made of 5 PGCs with one "menu page" per PGC, and 4 chapters buttons per "menu page". If there are more or less chapter buttons per page, you must edit the value "4" in lines 3 and 9. If there are more or less menu pages, you should add or remove some lines at the end of part 2. (See below.)
The principle is to deduce the right button number and menu page number from the chapter number. SPRM(7) contains always the number of the last chapter that has been played. Therefore, I use it to compute the other values. For example, if chapter 6 has been played, the button 2 in the page 2 of the menu should be selected by default.
The code is made of 2 sections. The first one is used only to pre-select the right button in the menu page that will be computed in the second part. You can omit part one if you don't want to pre-select the button, and replace if, for example, with a single SetHL_BTN command to pre-select button 1 anyway.
Part 1 pre-select the right menu button:
Line 1 copies the number of the last played chapter in the temp GPRM. We need it to know what button should be pre-selected.
Lines 2 to 4 convert the chapter number to the button number (button 1 for chapter 1, 2 for 2, 3 for 3, 4 for 4, 1 for 5, 2 for 6 and so on).
Line 5 selects the button.
Part 2 jump to the right "menu page":
Like line 1, line 7 copies again the chapter number in the temp register. This time, it will be used to compute the "menu page" to jump to.
Lines 8 to 10 convert the chapter number to the "menu page" number.
Lines 11 to 15 jump to the right "menu page"according to the "page number" hold in the temp GPRM. This code assumes that each page is stored in a different PGC, page 1 being PGC #6. You must modify the PGC numbers to suit your needs. You may also need to remove or add some lines if there are less or more "pages" in your DVD.
Note that the first command is a "Break", to play the content of the current PGC.
If your menu is made of only one PGC with several cells, you must change the LinkPGCN commands to jump to the corresponding cell. For example, like this:
Code:[20 A7 00 0F 00 01 00 01] 11 if ( gprm(15) == 1 ) then { LinkCN Cell 1 } [20 A7 00 0F 00 02 00 02] 12 if ( gprm(15) == 2 ) then { LinkCN Cell 2 } [20 A7 00 0F 00 03 00 03] 13 if ( gprm(15) == 3 ) then { LinkCN Cell 3 } [20 A7 00 0F 00 04 00 04] 14 if ( gprm(15) == 4 ) then { LinkCN Cell 4 } [20 A7 00 0F 00 05 00 05] 15 if ( gprm(15) == 5 ) then { LinkCN Cell 5 }
r0lZ - PgcEdit homepage Hosted by VideoHelp (Thanks Baldrick)
- BD3D2MK3D A tool to convert 3D BD to 3D SBS/T&B/FS MKV
Similar Threads
-
Movie start at chapter 2 and skips 1 solution? PGCedit ore IFOedit??
By substralleke in forum Newbie / General discussionsReplies: 2Last Post: 25th May 2013, 05:27 -
TMPGEnc display the track menu after a chapter plays
By dread in forum Authoring (DVD)Replies: 4Last Post: 31st Oct 2010, 21:15 -
PGCEdit menu editing
By gbabione in forum DVD RippingReplies: 3Last Post: 31st Aug 2010, 05:13 -
create chapter breaks that return to menu afterwards using PGCedit ?
By spiritgumm in forum Authoring (DVD)Replies: 7Last Post: 8th Feb 2009, 09:07 -
Buggy chapter transitions with PgcEdit Play All scheme
By ajrecs in forum Authoring (DVD)Replies: 2Last Post: 11th Oct 2008, 07:00