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.
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.