PDA

View Full Version : How to adjust titles, PGCs and chapters (movie only)


Dave82
26th July 2003, 00:42
I had a problem and opened this thread (http://forum.doom9.org/showthread.php?s=&threadid=58055). Now I want to share the knowledge I got from it (but not only) with the community.
First of all I want to thank mpucoder: without him I wouldn't have been able to write most of this guide. You're great!

How to adjust titles, PGCs and chapters (movie only)

This guide will explain you how to edit your movie's structure without reauthoring (episode DVD included).
To do this I mainly use IFOEdit, which can manage just one titleset. So if you want to join different parts, remember that they must have the same features (aspect ratio, number of audio channels and so on), otherwise they won't fit in the same titleset.
I've never re-encoded a DVD, so I don't know if these instructions can be useful even in those cases, but I hope users more experienced than me will let me know.

Software needed:
- DVD Decrypter (http://www.doom9.org/Soft21/Rippers/SetupDVDDecrypter.exe)
- IFOEdit (http://www.doom9.org/Soft21/Vobtools/Ifoedit096.zip)
- VOBEdit (http://www.doom9.org/Soft21/Vobtools/Vobedit06.zip)
- MenuEdit (http://menuedit.dimad.net/download_free.php?MenuEditFree.zip) (nothing to do with menues, I said "movie only", didn't I? ;))

1. Rip the movie (or parts of movies) with DVD Decrypter in IFO mode

2. If you have parts of movies join them with VOBEdit, provided they have the same features as I said above. Take note of the order in which you joined them.

3. If you want to create one title skip to #4.
If you want to create more than one title, have a look at the original VTS_xx_0.IFO of the parts you ripped and take note of the number of VobIDs each one uses. Open your joined VOB files with MenuEdit and change VobIDs so that each title you want to create has just one VobID. With the notes you took above, you'll know that, for instance, the first three VobIDs you'll encounter will be the first part/title/episode, and you'll have to change them all to 1 (start always with 1 to be sure not to have any problem). Remember that the numbering of CellIDs restarts from 1 on each new VobID, so you'll have to adjust CellIDs too to make them consequent within the same VobID.

4. Create new IFOs with IFOEdit. If you want to create one title select the option "Create 1 PGC only", for more than one title select "Create a PGC for each new VobID".

5. Correct fuzzy green subtitles (follow this guide (http://forum.doom9.org/showthread.php?s=&postid=283424#post283424) by 2COOL).

6. Be sure you have clicked on "Get VTS sectors" in IFOEdit. Click it again (just in case...;)). If you want to create one title skip to #13.

7. It's very important, before starting the tricky part, that you have clear in your mind what you want to obtain (how many titles and how many chapters for each of them), so, if you prefer, write it down. If you notice that the number of chapters in your ripped movie doesn't coincide with the original DVD's one, don't worry, we'll correct it at the end (for the moment keep considering the "wrong" number). Now we're going to use IFOEdit for the rest of the process.

8. Open VIDEO_TS / VMG_PTT_SRPT and edit the "Number of Title play Maps" (the number of titles you want to have in your DVD). Refresh.
Now you have information for every title. Copy from the first one in all the other ones the Title playback type (should be 20), the number of angles (1), the Title set number (1) and the Title set starting sector. Edit for each one the Number of chapters and the Title set Title-number (the title number). SAVE.

9. Open VTS_01_0.IFO / VTS_PGCITI and edit the Number of VTS_PGCI_SRP (the number of titles you want to have in your DVD). Refresh.
Now you have information for every title. Edit VTS_PGC_X: Category mask (set the value to 128 + X).

10. Open VTS_01_0.IFO / VTS_PGCITI / VTS_PGC_X (all of them): change all Next PGC number to 0 (Prev PGC number should be already 0) and all Cell_1: cell type to 2.

11. If you want your titles to play also one after the other, add to each VTS_PGC_X this post-command:
(JumpVTS_TT) Jump to Title: X + 1 (set this value to 1 in the last PGC and your movie will play in an endless loop).

12. Open VTS_01_0.IFO / PTT_SRPTI.
Take a sheet of paper and a pen, let's make some calculations:
- End byte of PTT_SRPT table = 7 + 4*(titles + chapters)
- TTU_1 Starting byte = 8 + 4*(titles)
- Following TTU_X Starting byte = Previous TTU_X Starting byte + 4*(Previous TTU_X chapters)
Pay attention! You mustn't directly edit these values (if you want to know why, go to the thread linked at the top of this guide), you have to use the "HexEdit" button. First of all, convert the values you obtained into hexadecimal values. Click on "HexEdit" button. Edit the first line this way:

00 XX 00 00 00 00 00 YY

XX corresponds to the number of titles you want on your DVD, and YY is the end byte of PTT_SRPT table.
Insert as many blocks as your titles like this:

00 00 00 XX
XX corresponds to the TTU Starting byte.
Then insert as many blocks as your chapters like this:

00 XX 00 YY

XX corresponds to the title number and YY to the chapter number. SAVE.

13. Now we can change the number of chapters.
If you ripped a movie and ended up with an extra chapter, probably it's because it'a double-layered DVD: in the middle of the film there is probably a chapter split in two cells, the last cell of the 1st layer and the 1st one of the 2nd layer.IFOEdit created a chapter for each cell, and so you have to delete the program associated with the 2nd cell (to know where it is, explore your DVD with DVD Decrypter in IFO mode).
Open VIDEO_TS.IFO / VMG_PTT_SRPT and change the number of chapters in the Title play maps. SAVE.
Open VTS_01_0.IFO / VTS_PGCITI / VTS_PGC of the PGCs which you want to change the number of chapters of. Delete a program in the PGC Program Map to decrease the number of chapters by 1. Of course you cannot delete the first program of a PGC.

14. Click on "VOB extras", we'll do a mock strip. Select "Strip streams","Correct Vob-Unit (Navigation Pack) pointers in VOB files" and "correct original IFOs". Click OK, check all your streams and click Strip it. Let IFOEdit process all your files.


Have fun! :D
Please post any correction or suggestion.

maa
31st July 2003, 12:02
Hi,

I've tried you guide - the part about making an extra PGC but its not clear to me how to refresh without IFOEDIT just dissapearing - I started a new thread too. Adding the second "Title unit search pointer" after increasing the bytes is a killer and doesn't allow re-opening the IFO - so I never get to the next stage.

The IFO already contains 1 PGC and has 56 chapters, 6 menus and is 86kb.

thanks.

Dave82
31st July 2003, 14:22
It's OK, you have to change all the values at once with HexEdit before refreshing, otherwise you'll get incorrect IFOs (more details in the thread I linked at the beginning of my guide).
To refresh you have to click on another line in the upper part of the screen (the tree view? don't know how to call it), for instance VTS_PGCITI, and then click back on PTT_SRPTI ;)

maa
31st July 2003, 16:26
#9 Open VTS_01_0.IFO / VTS_PGCITI and edit the Number of VTS_PGCI_SRP (the number of titles you want to have in your DVD). Refresh.

Ok - that works.
#10 Open VTS_01_0.IFO / VTS_PGCITI / VTS_PGC_X (all of them): change all Next PGC number to 0 (Prev PGC number should be already 0) and all Cell_1: cell type to 2.

This doesn't work - if I click out and back in to VTS_PGCITI there are no new VTS_PGCs so to refresh I have to save and re-load at which time the IFO is corrupt and doesn't open - so either you or I must be doing something thats not in the guide...

Dave82
31st July 2003, 19:16
That's because I still haven't found a way to add a dummy PGC!
Infact, what you do in VTS_PGCITI is adding search pointers, not PGCs.
I didn't put it in the guide because it's a movie only guide, and without a menu, I can't think of any reason to have a dummy PGC (but of course I'm not such an expert, so you're welcome if you tell me these reasons :) ).
However at the moment I'm actually trying to add a dummy PGC, because I'm interested in doing it.
At the moment, the only thing that comes to my mind is to use a "dummy cell" (you know, the ones that last a fraction of second), join it with the rest of the movie in the proper position and with the proper VOB ID (with VOBEdit and MenuEdit) and let IFOEdit create a "dummy PGC". In order not to make it an entry PGC (that is not to "make it become a title"), you should leave its VTS_PGC_X: Category mask value to 1.
In PTT_SRPTI the number of TTUs corresponds to the number of titles, so you won't consider this dummy PGC, but you'll have to decide which title it's gonna belong to, and add its PGCN and PG (1) in the correct TTU_X PTTs.
If you find any way to do it withot using dummy cells, please tell me and I will edit the guide.

maa
31st July 2003, 20:42
Hmm - I remind myself of those Camera collecters who can't take pictures - I'm much more intersted in the programming than watching films at the moment :)

In fact my reason for a dummy PGC was so I could place some commands in the command table there - BUT! I've found a way around not only that but also the increadable amounts of duplicate button coammands created when you use a motion menu - ha some things are so simple you don't even....

Well at last I've found a method of replacing the films (dummys) produced by DVD Lab which could be easilly done by someone else.
There is a little bit of HEX editing to do (adding commands that aren't in IFOEDITs right mouse menu) but I now have it all working including the mysterious calls made by pressing MENU or TITLE on the remote!
This will be in the first guide.
The second guide will be how to impliment buttons for changing sound tracks (I think we can have 8 in IFOEDIT)

One small thing worries me a little - the fact that I add menu LUs in Video_ts.ifo just by raising the number. This could be a similar situation to the above but it nearly always works for some reason.
Other times IFOEDIT just dissapears. MPUCODER - are you there ?
Is there something I can do here ?

thanks

maa