How to use PgcEdit’s new Jump to PGC Upon DVD Insert Macro
Tools required: PgcEdit v5.6 and above
PgcEdit has implemented an advanced version of jeanl’s method of jumping to the title/menu of your choice, which was also supported by 2COOL’s stand-alone program JMP2PGC
This method allows you to jump to any menu or title on insertion of your DVD, setting the audio and subtitle streams of your choice and by-passing anything in your way (e.g. annoying FBI warnings, studio promos and Dolby Digital trailers) and having all the DVDs internal registers set exactly as they would be if the commands followed the original path.
Here’s how to use it.
1. Load up your DVD in PgcEdit.
2. Start trace mode with Ctrl-T or with the Trace toolbar icon
3. Trace through your DVD until you get to where you want it to start (press ->>> Run gets to menus/titles quickly or you may prefer the more leisurely ->> Next PB which stops at every playback point, allowing you to see what goes on). You will notice that every PGC which has been “visited” is highlighted in yellow.
4. Take a note of the exact PGC where you want the DVD to start (this could be a menu or a title). In the example below, I have chosen the Root Menu – VTSM 1, LU1 (en), 1 which has 8 buttons and a playing time of 1 minute and 14 seconds.
5. Note – If you want the DVD to start at the menu but it actually starts directly with the main movie, just let it run through until it gets back to the main menu.
6. When you have reached your desired PGC, stop the trace (just click on the ->| Break button in the trace window).
7. Now in the PGC navigator window (usually on the left), select the PGC where you want the DVD to start (left click on it once).
8. Press Ctrl-Shift-T or, in either the Breakpoints menu or the Trace menu at the very top, select Trace – Toggle PGC Pre/Post Breakpoint. This PGC will now be highlighted in red. See below.
9. Now start the trace again by pressing the load/eject button and Run. Eventually PgcEdit will stop at your pre-defined breakpoint. If you need to set your audio and subtitle preferences after your breakpoint is reached, simply trace through to them and back to your breakpoint. Using this method, you can even start the DVD in the audio or subtitles setup menu!
Tip: It’s usually a good idea to select your audio and subtitle preferences, even if it is just “no subtitles”, as some players do not like working with just the defaults.
10. On the main menu, select Macros – Jump to PGC Upon DVD Insert
11. Note the warning to do an incremental backup (see paragraph 20 below) and the hints (see paragraphs 7 to 9 above).
12. PgcEdit will go through some calculations and insert the commands for you in the relevant PGCs to enable you to immediately jump to your selected PGC.
13. However, if the PGC you have selected jumps out of the PGC before playing, you will be warned and no commands will have been inserted.
Just press Run again and you will eventually return to your PGC, at which time you can repeat paragraph 10 (sometimes you will need to do this 2 or 3 times!).
14. When complete, if there are no resume commands present in the DVD, PgcEdit will display the following message and offer to remove your breakpoint. Answer yes and go to paragraph 17.
(i) your target PGC is a menu (VTSM); and
(ii) your DVD jumped through a title before reaching the menu; and
(iii) a resume command is present somewhere in the DVD’s commands,
PgcEdit will display the following alternative message:
16. Take a good note of the warnings. If there is a resume flag present, PgcEdit will try to detect the associated GPRM and highlight the command it inserted that uses that GPRM. It will also pop up a box showing where the resume command has been found in the DVD – see paragraph 18 below for more details.
17. Don’t save just yet. Press the Load/Eject button on the trace toolbar and run through the DVD step by step to ensure it starts where you wanted it to. Watch the registers to see that your selected audio and subtitle streams (SPRM 1 and 2) are selected. If all is as you want it, save your DVD (Ctrl-S) and test in a software player.
A few things to consider
18. Sometimes the “resume flag” will have been set by the DVD’s commands (especially if the main movie has started playing). If you decide to trace out of it with a call to the menu, this could have adverse consequences (e.g. endless loop, exit playback). PgcEdit will let you know about the potential of this happening and give you a clue as to what GPRM is associated with the resume flag and even take you to where it is set. PgcEdit will also ensure that a title is actually selected in the special registers that holds the title number (SPRMs 4 and 5) so that pressing the “resume movie” button won’t exit the DVD’s playback.
In the case below, PgcEdit has highlighted that GPRM(2) is associated with the resume flag. It has identified the command (in this case, if GPRM(2) =1 then resume) and the PGC where this flag is used (there may be more than one of them). You may click on any item (they will be coloured differently depending on where they come from) in this search box to actually go to the PGC which has the command (where it will be highlighted for you). If you are happy that there are no conflicts between the commands entered by PgcEdit and the resume flag, then you may close the dialogue box and you are done.
In ALL cases, ensure the resume flag is NOT set. In this case, if the commands inserted by PgcEdit in your target PGC included Set grpm(2)=1, you would delete that line.
To make doubly sure, you could do a search of the DVD for gprm(2). This is simple. Click once on the VMG, First Play PGC right at the top of the PGC navigator window. Then in the search box down the bottom type gprm(2) (in this case) and click on >>. What you are looking for is the relevant GPRM being set to the value the resume flag is looking for (in this case 1). This will normally be done in the precommands of the title, or sometimes in a PGC of VMG that jumps to the title. Let’s see.
Well, this is it! The last precommand before the title is played turns the resume flag on (sets gprm(2) to 1). And notice that immediately AFTER the title has played, the resume flag is turned off (gprm(2) is set to a number not equal to 1 in the first post command).
Note that PgcEdit cannot guarantee in all cases to find the GPRM associated with the resume flag. Sometimes, it will be set indirectly and you will need to do some advanced detective work!
However, normally, if you follow the procedure outlined in paragraph 5 above, there will be no problems as the resume flag is usually turned off after the movie has ended.
19. Sometimes, there are no free GPRMs for PgcEdit to use to hold its commands (to perform this procedure, in the past a free GPRM was necessary). However, due to its advanced technology, PgcEdit can now use GPRMs that have already been set (it will give you feedback about this, if required). As well, thanks to 2COOL, PgcEdit has overcome potential problems when an already set GPRM is used and the DVD finds its way back to the First Play PGC. So, there is nothing to worry about in this instance.
20. Although there is little risk in performing this procedure (especially if you do not save), it is wise to do an incremental backup of your DVD. Just choose File – Incremental backup from the menu. This renames your PgcEdit_backup folder as an archive of sorts (time and date stamped) and saves your current IFOs in a newly created PgcEdit_backup folder, which are easy to restore with the File – Restore backup command if things go awry.
As usual, direct queries and questions to the doom9 IFO/VOB editors forum.
Special thanks to 2COOL, Jeanl, jsoto and Tobi for their ideas and testing.
Version 1: 13 May 2005