jeanl
5th October 2004, 08:49
I've seen some people asking how you can put a chapter menu back into a DVD that was reauthored in DVD shrink (in authoring more, shrink does not keep menus). I gave it a shot with PgcEdit, and it worked! Here are the steps that I used:
1) Pgcedit lets you import a menu so you can go and grab the chapter menu from the original DVD (including the VOB), and add it to the movie's VTSM (VTSM1). It will probably come with a lot more than just the chapter menu (in the 2 cases that I tried, it came with the "main" movie menu and then some).
2) Make the first-play PGC go straight to that menu, for simplicity (instead of going straight to the movie), using:
[30 06 00 01 01 87 00 00] 1 (JumpSS) Jump to VTSM 1, Chapter menu (TTN 1)
Or you can jump to the movie's main menu which will usually give you an option to go to the chapter menu or play the movie. But then you'll have to also tweak that menu as described just below.
3) Then, depending on how the original chapter menu(s) was designed, you need to change the post commands to do the right thing. I've seen 3 cases:
- The chapter menu buttons jump to a given chapter in the movie's TTN, for example:
[30 05 00 04 00 01 00 00] 14 (JumpVTS_PTT) Jump to TTN 1, Chapter 4
That's the simpler case because the command will go straight to the right chapter (that's assuming the movie is indeed in TTN1 as it was in the original, which was the case for me). At this point, PgcEdit does not allow you to edit button commands (I think) so that's a good thing.
- The chapter menu buttons simply link to the tail PGC. In the postcommands, you have to determine which button was highlighted (sprm(8)) and jump to the right chapter with
[30 05 00 02 00 01 00 00] 7 (JumpVTS_PTT) Jump to TTN 1, Chapter 4
This will require a series of if then goto as:
********** post commands:
[00 00 00 00 00 00 00 00] 1 NOP
[61 00 00 00 00 88 00 00] 2 Set gprm(0) =(mov) sprm(8:highlighted button number)
[00 00 00 00 00 00 00 00] 3 NOP
[00 B1 00 00 00 01 00 06] 4 if ( gprm(0) != 1 ".." ) then { Goto line 6 }
[30 05 00 01 00 01 00 00] 5 (JumpVTS_PTT) Jump to TTN 1, Chapter 1
[00 B1 00 00 00 02 00 08] 6 if ( gprm(0) != 2 ".." ) then { Goto line 8 }
[30 05 00 02 00 01 00 00] 7 (JumpVTS_PTT) Jump to TTN 1, Chapter 2
...
- The chapter menu buttons set a gprm and link to the tail PGC. The case is similar to the one above and you simply have to test the gprm in question.
Usually, there are several chapter menus so you need to do that for all of them. Also there are usually buttons to go from one menu to the next. If you're lucky you won't even need to modify these because all they do is jump to a dummy PGC in the same VTS, maybe set a few things
then jump to the right PGC. In the 2 cases that I tried, these worked right off the bat.
4) Save the files and try in your soft player.
All in all, it's not terribly difficult but it's a bit time-consuming without a specific PgcEdit macro ;). In my humble opinion, if you want to preserve the chapter menu but remove all the extra material, it's better to remove before shrinking (for example with titlesetblanker, or vobblanker or pgcedit), then skrink in full-backup mode.
Still, the fact that you can do this kind of trick demonstrates how powerful PgcEdit has become :)
Congrats to r0lZ!
Jeanl
1) Pgcedit lets you import a menu so you can go and grab the chapter menu from the original DVD (including the VOB), and add it to the movie's VTSM (VTSM1). It will probably come with a lot more than just the chapter menu (in the 2 cases that I tried, it came with the "main" movie menu and then some).
2) Make the first-play PGC go straight to that menu, for simplicity (instead of going straight to the movie), using:
[30 06 00 01 01 87 00 00] 1 (JumpSS) Jump to VTSM 1, Chapter menu (TTN 1)
Or you can jump to the movie's main menu which will usually give you an option to go to the chapter menu or play the movie. But then you'll have to also tweak that menu as described just below.
3) Then, depending on how the original chapter menu(s) was designed, you need to change the post commands to do the right thing. I've seen 3 cases:
- The chapter menu buttons jump to a given chapter in the movie's TTN, for example:
[30 05 00 04 00 01 00 00] 14 (JumpVTS_PTT) Jump to TTN 1, Chapter 4
That's the simpler case because the command will go straight to the right chapter (that's assuming the movie is indeed in TTN1 as it was in the original, which was the case for me). At this point, PgcEdit does not allow you to edit button commands (I think) so that's a good thing.
- The chapter menu buttons simply link to the tail PGC. In the postcommands, you have to determine which button was highlighted (sprm(8)) and jump to the right chapter with
[30 05 00 02 00 01 00 00] 7 (JumpVTS_PTT) Jump to TTN 1, Chapter 4
This will require a series of if then goto as:
********** post commands:
[00 00 00 00 00 00 00 00] 1 NOP
[61 00 00 00 00 88 00 00] 2 Set gprm(0) =(mov) sprm(8:highlighted button number)
[00 00 00 00 00 00 00 00] 3 NOP
[00 B1 00 00 00 01 00 06] 4 if ( gprm(0) != 1 ".." ) then { Goto line 6 }
[30 05 00 01 00 01 00 00] 5 (JumpVTS_PTT) Jump to TTN 1, Chapter 1
[00 B1 00 00 00 02 00 08] 6 if ( gprm(0) != 2 ".." ) then { Goto line 8 }
[30 05 00 02 00 01 00 00] 7 (JumpVTS_PTT) Jump to TTN 1, Chapter 2
...
- The chapter menu buttons set a gprm and link to the tail PGC. The case is similar to the one above and you simply have to test the gprm in question.
Usually, there are several chapter menus so you need to do that for all of them. Also there are usually buttons to go from one menu to the next. If you're lucky you won't even need to modify these because all they do is jump to a dummy PGC in the same VTS, maybe set a few things
then jump to the right PGC. In the 2 cases that I tried, these worked right off the bat.
4) Save the files and try in your soft player.
All in all, it's not terribly difficult but it's a bit time-consuming without a specific PgcEdit macro ;). In my humble opinion, if you want to preserve the chapter menu but remove all the extra material, it's better to remove before shrinking (for example with titlesetblanker, or vobblanker or pgcedit), then skrink in full-backup mode.
Still, the fact that you can do this kind of trick demonstrates how powerful PgcEdit has become :)
Congrats to r0lZ!
Jeanl