Log in

View Full Version : How To Skip Menu Transitions and Intros using IfoEdit


AniFarsh
11th April 2004, 15:52
After searching the forum for hours and finding solutions that didn't really get me there, I was able using several guides for different software/problems (see list of contributors) and after a lot of trial and error to patch a solution that worked for me.
The problem is that old problem of menu looping. We want to have a cool intro to the DVD that will lead without delay to the main menu (and loop from there), or even better – we want the menu to be built up by animation (and then loop) – this would be really cool.
One problem though – how to have this animation run only once, when the CD is loaded?
I use DVD Maestro which is one of the best software for DVD creation, and pretty easy to use.
Using Maestro you can very easily set your animation to be a menu, you can set a loop point, which also functions as the buttons starting-point (before that point you don't see buttons – which is great for our purpose) – see a great guide at
However, there's a problem - if you link back to that menu (a "Main Menu" button) or if you press the menu button – you get the whole animation again!
The following solution is a combination of the methods suggested in Ian Shepherd's guide and "Lord of the Discs" IfoEdit guide (see links below).
The problem with Shepherd's guide is that it deals with software DVD Studio Pro and TFDVDEdit, which have features that don't exist in Maestro (like adding pre-scripts) and the TFDVDEdit is a nice assembler translator, which makes life a bit easier. But I took the idea of using GPRM registers to control the behaviour of the DVD (this can be used for many other tricks).
"Lord of the Discs" guide is very good for basic understanding of IFOEdit and how to add DVD commands. The only problem is that the list of commands lacks a bit (had to work my mind a bit, and I still don't figure completely the different Hex codes).
Anyway – what we do is setting a flag that means "Do not play Intro" and checking for this flag every time the menu is called.

Step 1: Author the DVD in DVD Mestro, create the menus, and don't forget to set the looping point, compile it.

Step 2: Open Vts_01_0.ifo (this is usually where the menus are kept) in IfoEdit. The lower window lists all the PGCs, and you can see each PGC by double-clicking (if you don’t understand this part – go to Lord of the Discs page, it has pictures…). Anyway, locate the menu that you need to take care of, so scroll down, they appear after the movie. Take a note of the menu number. You will probably notice that menus that have a looping point gets divided into two cells and two programs – this is the key to the success of this method.

Step 3: In the upper window you need to select now "VTSM_PGCI_UT" and expand the + on the left. Now select the menu from step 2.

Step 4: Scroll down the lower window until you find an entry about the "command table", usually with menus, there will be some. Right click and choose "Add PreCommand". IfoEdit will create a new entry at the end stating "NOP" (no operation). Now, since the interface of IfoEdit is a bit limited we cannot edit the command and write what we want. We will have to enter the assembler command in HEX code.

Step 5: Double-click the new command and the Hex editor opens up. You need to type in the following sequence

20 A6 00 0F 00 01 00 02

Which roughly means: "If GPreg<15> == 1 then Link Program 2, button 0", which means in English that if the value of GPRM15 is 1 it will skip to the second program in the menu, which includes only the loop. The default value is 0 (all user-GPRM are 0 by default), so we need to set it to 1 somewhere. There's no better place then here, after the check is done (remember – we wanted it to run just once).

Step 6: Add another pre-command, below this one to set the value of GPRM15 to 1 (right click, Add PreCommand and double click it). Enter the code:
71 00 00 0F 00 01 00 00
which means: "move GPreg<15>, 1"

that's it basically, save and replace the ifo and bup.

You can use the last command to set the Intro ON and OFF along the DVD as you please by setting it to 0 (71 00 00 0F 00 00 00 00) and 1 (71 00 00 0F 00 01 00 00).

I would like to express my gratitude again to Ian Shepherd and "Lord of the Discs" for their great guides:

Ian Shepherd's guide – http://www.tfdvdedit.com/public/79.cfm
Lord of Discs - http://home.arcor.de/josef.braunstein/
Maestro Guide - http://www.doom9.org/index.html?/mpg/maestro.htm

Any comments would be appreciated.

Trahald
18th April 2004, 00:47
great post. im not used to maestro, but in scenarist you can add those commands before you compile so ifoedit use isnt necessary.

on pro dvds they use gprms quite a bit (to excess i think sometimes)

Dimmer
18th April 2004, 03:28
Nice guide. Indeed, in Scenarist you can do it all within the application.

However, I noticed that on many commercial DVDs the do it differently. They create a separate intro followed by the main menu, which plays only once and then jumps to another copy of the main menu without intro. That second copy is usually a root menu and set to loop indefinitely. This allows to avoid the whole issue mentioned above at the expense of the disc space.

This actually works out for the best when you want to back up such a DVD and need to save space, because you can cut out a part of motion menu without losing any functionality.

AniFarsh
18th April 2004, 04:25
Believe me - if I could understand how to work scenarist I would have used it.
Somehow my logic fails to align with the developers' logic, and I find myself amazed at this piece of software. I guess they never heard about the term "user friendly". I guess when they developed it at sonic labs, some junior programmer might have said - "let's make it friendly" and his boss said "user friendly ??? naaaah!!! if we make it user friendly how can we make big bucks on support" or something like that.
I tried the survivor guide, I tried doom9 guide - no go.
easier to understand how to code assembly in IfoEdit then to work Scenarist - believe me.
I don't use Maestro because I like it (although I kind of grown to like it) and I don't use IfoEdit because I like doing the same coding whenever I re-compile the DVD for that reason or another, and also IfoEdit gives me also grief from time to time when it corrupts the ifo when you edit pre-commands (discovered after the post - BEWARE - always make a backup before doing the actions in this guide....) - anyways, I use it because I have to - because my cognitive capabilities cannot cope with the super intelligence that is required for Scenarist (or the skewed intelligence required....). I mean, I consider myself a very computer literate person - but THIS, this is too much for me and it really frustrates me.
That's all, got it off my chest.
Cheers ;-)

Trahald
19th April 2004, 02:51
Originally posted by Dimmer
Nice guide. Indeed, in Scenarist you can do it all within the application.

However, I noticed that on many commercial DVDs the do it differently. They create a separate intro followed by the main menu, which plays only once and then jumps to another copy of the main menu without intro. That second copy is usually a root menu and set to loop indefinitely. This allows to avoid the whole issue mentioned above at the expense of the disc space.

This actually works out for the best when you want to back up such a DVD and need to save space, because you can cut out a part of motion menu without losing any functionality.

you can do that but then it will pause between the animation and the menu (many dvds do have that pause.) If the animation has nothing to do with the menu its ok. but if the animation is supposed to flow into the menu part then anifarsh's method will be better/smoother

Trahald
19th April 2004, 02:53
Originally posted by AniFarsh
Believe me - if I could understand how to work scenarist I would have used it.
Somehow my logic fails to align with the developers' logic, and I find myself amazed at this piece of software. I guess they never heard about the term "user friendly". I guess when they developed it at sonic labs, some junior programmer might have said - "let's make it friendly" and his boss said "user friendly ??? naaaah!!! if we make it user friendly how can we make big bucks on support" or something like that.
I tried the survivor guide, I tried doom9 guide - no go.
easier to understand how to code assembly in IfoEdit then to work Scenarist - believe me.
I don't use Maestro because I like it (although I kind of grown to like it) and I don't use IfoEdit because I like doing the same coding whenever I re-compile the DVD for that reason or another, and also IfoEdit gives me also grief from time to time when it corrupts the ifo when you edit pre-commands (discovered after the post - BEWARE - always make a backup before doing the actions in this guide....) - anyways, I use it because I have to - because my cognitive capabilities cannot cope with the super intelligence that is required for Scenarist (or the skewed intelligence required....). I mean, I consider myself a very computer literate person - but THIS, this is too much for me and it really frustrates me.
That's all, got it off my chest.
Cheers ;-)

hehe.. if you invest some time into it, you'll see. its not bad. i dont consider scenarist hard at all. no super intelligence needed (or else id be really in trouble :p ) i actually find it easier than maestro. but again thats prolly because ive put alot of time into making scenarist easier for me.

violao
20th April 2004, 09:59
Originally posted by Trahald
you can do that but then it will pause between the animation and the menu...

No, it will not if intro + menu is in the same PGC with all cells marked seamless. Read Dimmer's post again. There are 2 "main" menus, 1st is combined (seamlessly) with animation, 2nd is standalone.

Dimmer
20th April 2004, 19:23
Originally posted by violao
No, it will not if intro + menu is in the same PGC with all cells marked seamless. Read Dimmer's post again. There are 2 "main" menus, 1st is combined (seamlessly) with animation, 2nd is standalone.Exactly my point. Thanks for making it clear.

Trahald
21st April 2004, 17:41
Originally posted by violao
No, it will not if intro + menu is in the same PGC with all cells marked seamless. Read Dimmer's post again. There are 2 "main" menus, 1st is combined (seamlessly) with animation, 2nd is standalone.

yeah.. thats another way to do it.. but not a BETTER way (im sure even more ways than that) i thought about offering that as a way when i typed my first reply in this thread (actually started typing it and then erased it), but with his way you do it seamlessly AND with a single menu. i couldnt think of anything that would be seamless and not use extra dvd space taken (2 copies is wasteful if there is a better way)

anifarsh's way isnt the only way.. but its the most efficient/best.

violao
21st April 2004, 18:49
Originally posted by Trahald
i couldnt think of anything that would be seamless and not use extra dvd space taken ...
IMO seamless or not depends on the player. Seamless flag is a hint to the player. Whether it will play it seamlessly, who knows. I described in seamless menu looping guide (http://forum.doom9.org/showthread.php?s=&threadid=72964&highlight=seamless+menu+looping) a way to create a loop with seamless flags set. My cheap Chineese player handles it perfectly.