Random DVD menu start (1)
I found interesting trick on some film dvd, where was randomly started menu. How they did it?
No problem for us :-).
At first, we must prepare DVD in Studio. For our example can be used this structure:
Intro clip, which will be played at the beginning of DVD
Menu 1 - first variant of menu
Menu 2 - second variant of menu
Video clip - video clip (we set "jump to menu 2" - M2 at the end of this clip)
Next, we render this dvd to HDD.
Start IfoEdit and open file VTS_01_0.IFO from our DVD.
Go to VTS_PGCITI. There are 2 items. The first item is our intro clip and the second is video clip.
If video clip is with chapters, there will be item for each chapter.
Now, click to VTS_PGC_1 and find 1.Cell Command in bottom part of window.
This command sets "jump to menu 1". But we want command "jump random to menu 1 – 2".
So, we change command Set GPreg<2> mov (set-val)<1> to Set GPreg<2> rnd (set-val)<2>.
(set-val)<2> means, that last menu which can be started is 2 (we have two menus).
And how to edit it?
Double click to command and change 71 00 00 02 00 01 00 00 to new hex value 78 00 00 02 00 02 00 00.
Note: 78 sets random value, 02 is string number (2) and 02 is count of menus. Values are in hex
code (10=A, ..), and can be get from scientist calculator in windows (for example).
Command was changed
We set random menu on dvd start, next we want random menu after video clip is played.
It is easy, we define similar command at the end of the last chapter in video clip.
Go to VTS_PGCITI and VTS_PGC_X (where X is number of last chapter - for our example it is
VTS_PGC_1). Find 1.Cell Command and change it from
71 00 00 02 00 02 00 00 (Set GPreg<2> mov (set-val)<2>) to
78 00 00 02 00 02 00 00 (Set GPreg<2> rnd (set-val)<2>).
That is all, now we can save and test it.