2COOL
30th August 2003, 14:20
Correcting Stripped Stream Attributes Left AFTER DVDShrink Transcoding
Courtesy of 2C:cool::cool:L
UPDATED: January 9, 2004 This guide is solely for v2.3 and 3.0 beta 5. I had dvdshrink implement my algorithm so all is good now. :D
UPDATED: September 4, 2003
This guide has been updated by splitting it to two sections, NON-CONSECUTIVE and CONSECUTIVE. If you have stripped your default stream or you stripped in-between streams then use the NON-CONSECUTIVE method in this post. If you had kept your default stream and a consecutive order of streams that followed, then you would use the CONSECUTIVE method, which is documented 2 posts down in this thread
NON-CONSECUTIVE METHOD
DVDShrink does a great job on stripping streams but after processing, it doesn’t correct the Title Set (Movie) attributes section in our IFO. In fact, if the default audio and subpicture streams were stripped, no audio will be heard or subtitles will be shown. Below is an example before and after DVDShrink stripped every stream except English. (Figure 1.) Using IFOedit,I opened up my IFO and browsed to its VTS Overview / Title Set (Movie) attributes:.
FIGURE 1.
VTS overview:
Title Set (Movie) attributes:
..Video: MPEG-2 720x480.(NTSC).(NTSC 525/60).(16:9).(letterboxed)
..Audio 1:......Yiddish.........(Dolby AC-3) 6ch 48Kbps DRC normal (ID: 0x80)
..Audio 2:......English.........(Dolby AC-3) 6ch 48Kbps DRC normal (ID: 0x81)
..Audio 3:......English.........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x82)
..Audio 4:......Irish...........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x83)
..Audio 5:......French..........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x84)
..Audio 6:......Samoan..........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x85)
..SubPicture 1: Galician........(2-bit rle ).(ID: 0x20)
..SubPicture 2: English.........(2-bit rle ).(ID: 0x21)
..SubPicture 3: Kazakh..........(2-bit rle ).(ID: 0x22)
..SubPicture 4: Lingala.........(2-bit rle ).(ID: 0x23)
..SubPicture 5: Arabic..........(2-bit rle ).(ID: 0x24)
..SubPicture 6: English.........(2-bit rle ).(ID: 0x25)
..SubPicture 7: Estonian........(2-bit rle ).(ID: 0x26)
..SubPicture 8: Persian.........(2-bit rle ).(ID: 0x27)
We want it to end up like Figure 2.
FIGURE 2.
VTS overview:
Title Set (Movie) attributes:
..Video: MPEG-2 720x480.(NTSC).(NTSC 525/60).(16:9).(letterboxed)
..Audio 2:......English.........(Dolby AC-3) 6ch 48Kbps DRC normal (ID: 0x81)
..Audio 3:......English.........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x82)
..SubPicture 2: English.........(2-bit rle ).(ID: 0x21)
..SubPicture 6: English.........(2-bit rle ).(ID: 0x25)
If we have it like Figure 2, toggling our Audio or Subtitles through our remotes in PowerDVD or our standalones, we would only get English Streams. If it's like Figure 1, we would toggle through each one and the ones that were stripped would only give you no audios or subtitles. Here’s how we fix Figure 1 to be like Figure 2.
Go to your IFO’s / VTS_PGCITI / VTS_PGC_1 and you’ll have something like Figure 3.
FIGURE 3.
Audio stream 1 status..............................32768
..Audio stream 1 uses stream nr.:..................0
Audio stream 2 status..............................33024
..Audio stream 2 uses stream nr.:..................1
Audio stream 3 status..............................33280
..Audio stream 3 uses stream nr.:..................2
Audio stream 4 status..............................33536
..Audio stream 4 uses stream nr.:..................3
Audio stream 5 status..............................33792
..Audio stream 5 uses stream nr.:..................4
Audio stream 6 status..............................34048
..Audio stream 6 uses stream nr.:..................5
Sub-picture stream 1 status.......................-2147483648
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......0
..Sub-picture stream 1 uses stream nr.(letterbox): 0
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 2 status.......................-2147417856
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......1
..Sub-picture stream 1 uses stream nr.(letterbox): 1
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 3 status.......................-2147352064
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......2
..Sub-picture stream 1 uses stream nr.(letterbox): 2
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 4 status.......................-2147286272
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......3
..Sub-picture stream 1 uses stream nr.(letterbox): 3
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 5 status.......................-2147220480
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......4
..Sub-picture stream 1 uses stream nr.(letterbox): 4
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 6 status.......................-2147154688
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......5
..Sub-picture stream 1 uses stream nr.(letterbox): 5
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 7 status.......................-2147088896
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......6
..Sub-picture stream 1 uses stream nr.(letterbox): 6
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 8 status.......................-2147023104
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......7
..Sub-picture stream 1 uses stream nr.(letterbox): 7
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
The fix we are going to do now is to change all the values of the ones we know we stripped out, to a value of “0” or zero. The ones in BLUE are the English streams that were kept.
Prior to any editing, it is recommended you copy your IFO and BUP to another folder so that you if you mess up in editing, you can always replace your badly edited ones with your originals. If you did this, press your “Get VTS Sectors” button to refresh screen.
Double click on line and enter “0”.
Note: If you have multple PGCs, you must go through all of them and repeat the step above.
You’ll end up like Figure 4 after you had refreshed your screen. The personal trick I do to refresh the screen is to uncheck and check the “Show Reserve Values” checkbox located bottom left of IFOedit. Scroll down to view changes.
FIGURE 4.
Audio stream 1 status..............................0
Audio stream 2 status..............................33024
..Audio stream 2 uses stream nr.:..................1
Audio stream 3 status..............................33280
..Audio stream 2 uses stream nr.:..................2
Audio stream 4 status..............................0
Audio stream 5 status..............................0
Audio stream 6 status..............................0
Sub-picture stream 1 status........................0
Sub-picture stream 2 status.......................-2147417856
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......1
..Sub-picture stream 1 uses stream nr.(letterbox): 1
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 3 status........................0
Sub-picture stream 4 status........................0
Sub-picture stream 5 status........................0
Sub-picture stream 6 status.......................-2147154688
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......5
..Sub-picture stream 1 uses stream nr.(letterbox): 5
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 7 status........................0
Sub-picture stream 8 status........................0
Now, if you went back to our VTS Overview / Title Set (Movie) attributes:, we now have just like Figure 2. Save your IFO and BUP and test in IFOedit or another software player, like PowerDVD. Since we had stripped the default audio and subpicture streams, the next existing streams will now play/show according to our fix.
Don’t worry about the VIDEO_TS.IFO still showing your stripped streams attributes. We can leave it that way. It’s only the movie’s VTS_*_0.IFO that needed to be fixed.
Courtesy of 2C:cool::cool:L
UPDATED: January 9, 2004 This guide is solely for v2.3 and 3.0 beta 5. I had dvdshrink implement my algorithm so all is good now. :D
UPDATED: September 4, 2003
This guide has been updated by splitting it to two sections, NON-CONSECUTIVE and CONSECUTIVE. If you have stripped your default stream or you stripped in-between streams then use the NON-CONSECUTIVE method in this post. If you had kept your default stream and a consecutive order of streams that followed, then you would use the CONSECUTIVE method, which is documented 2 posts down in this thread
NON-CONSECUTIVE METHOD
DVDShrink does a great job on stripping streams but after processing, it doesn’t correct the Title Set (Movie) attributes section in our IFO. In fact, if the default audio and subpicture streams were stripped, no audio will be heard or subtitles will be shown. Below is an example before and after DVDShrink stripped every stream except English. (Figure 1.) Using IFOedit,I opened up my IFO and browsed to its VTS Overview / Title Set (Movie) attributes:.
FIGURE 1.
VTS overview:
Title Set (Movie) attributes:
..Video: MPEG-2 720x480.(NTSC).(NTSC 525/60).(16:9).(letterboxed)
..Audio 1:......Yiddish.........(Dolby AC-3) 6ch 48Kbps DRC normal (ID: 0x80)
..Audio 2:......English.........(Dolby AC-3) 6ch 48Kbps DRC normal (ID: 0x81)
..Audio 3:......English.........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x82)
..Audio 4:......Irish...........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x83)
..Audio 5:......French..........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x84)
..Audio 6:......Samoan..........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x85)
..SubPicture 1: Galician........(2-bit rle ).(ID: 0x20)
..SubPicture 2: English.........(2-bit rle ).(ID: 0x21)
..SubPicture 3: Kazakh..........(2-bit rle ).(ID: 0x22)
..SubPicture 4: Lingala.........(2-bit rle ).(ID: 0x23)
..SubPicture 5: Arabic..........(2-bit rle ).(ID: 0x24)
..SubPicture 6: English.........(2-bit rle ).(ID: 0x25)
..SubPicture 7: Estonian........(2-bit rle ).(ID: 0x26)
..SubPicture 8: Persian.........(2-bit rle ).(ID: 0x27)
We want it to end up like Figure 2.
FIGURE 2.
VTS overview:
Title Set (Movie) attributes:
..Video: MPEG-2 720x480.(NTSC).(NTSC 525/60).(16:9).(letterboxed)
..Audio 2:......English.........(Dolby AC-3) 6ch 48Kbps DRC normal (ID: 0x81)
..Audio 3:......English.........(Dolby AC-3) 2ch 48Kbps DRC normal (ID: 0x82)
..SubPicture 2: English.........(2-bit rle ).(ID: 0x21)
..SubPicture 6: English.........(2-bit rle ).(ID: 0x25)
If we have it like Figure 2, toggling our Audio or Subtitles through our remotes in PowerDVD or our standalones, we would only get English Streams. If it's like Figure 1, we would toggle through each one and the ones that were stripped would only give you no audios or subtitles. Here’s how we fix Figure 1 to be like Figure 2.
Go to your IFO’s / VTS_PGCITI / VTS_PGC_1 and you’ll have something like Figure 3.
FIGURE 3.
Audio stream 1 status..............................32768
..Audio stream 1 uses stream nr.:..................0
Audio stream 2 status..............................33024
..Audio stream 2 uses stream nr.:..................1
Audio stream 3 status..............................33280
..Audio stream 3 uses stream nr.:..................2
Audio stream 4 status..............................33536
..Audio stream 4 uses stream nr.:..................3
Audio stream 5 status..............................33792
..Audio stream 5 uses stream nr.:..................4
Audio stream 6 status..............................34048
..Audio stream 6 uses stream nr.:..................5
Sub-picture stream 1 status.......................-2147483648
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......0
..Sub-picture stream 1 uses stream nr.(letterbox): 0
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 2 status.......................-2147417856
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......1
..Sub-picture stream 1 uses stream nr.(letterbox): 1
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 3 status.......................-2147352064
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......2
..Sub-picture stream 1 uses stream nr.(letterbox): 2
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 4 status.......................-2147286272
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......3
..Sub-picture stream 1 uses stream nr.(letterbox): 3
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 5 status.......................-2147220480
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......4
..Sub-picture stream 1 uses stream nr.(letterbox): 4
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 6 status.......................-2147154688
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......5
..Sub-picture stream 1 uses stream nr.(letterbox): 5
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 7 status.......................-2147088896
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......6
..Sub-picture stream 1 uses stream nr.(letterbox): 6
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 8 status.......................-2147023104
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......7
..Sub-picture stream 1 uses stream nr.(letterbox): 7
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
The fix we are going to do now is to change all the values of the ones we know we stripped out, to a value of “0” or zero. The ones in BLUE are the English streams that were kept.
Prior to any editing, it is recommended you copy your IFO and BUP to another folder so that you if you mess up in editing, you can always replace your badly edited ones with your originals. If you did this, press your “Get VTS Sectors” button to refresh screen.
Double click on line and enter “0”.
Note: If you have multple PGCs, you must go through all of them and repeat the step above.
You’ll end up like Figure 4 after you had refreshed your screen. The personal trick I do to refresh the screen is to uncheck and check the “Show Reserve Values” checkbox located bottom left of IFOedit. Scroll down to view changes.
FIGURE 4.
Audio stream 1 status..............................0
Audio stream 2 status..............................33024
..Audio stream 2 uses stream nr.:..................1
Audio stream 3 status..............................33280
..Audio stream 2 uses stream nr.:..................2
Audio stream 4 status..............................0
Audio stream 5 status..............................0
Audio stream 6 status..............................0
Sub-picture stream 1 status........................0
Sub-picture stream 2 status.......................-2147417856
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......1
..Sub-picture stream 1 uses stream nr.(letterbox): 1
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 3 status........................0
Sub-picture stream 4 status........................0
Sub-picture stream 5 status........................0
Sub-picture stream 6 status.......................-2147154688
..Sub-picture stream 1 uses stream nr.(4:3):.......0
..Sub-picture stream 1 uses stream nr.(wide):......5
..Sub-picture stream 1 uses stream nr.(letterbox): 5
..Sub-picture stream 1 uses stream nr.(pan&scan):..0
Sub-picture stream 7 status........................0
Sub-picture stream 8 status........................0
Now, if you went back to our VTS Overview / Title Set (Movie) attributes:, we now have just like Figure 2. Save your IFO and BUP and test in IFOedit or another software player, like PowerDVD. Since we had stripped the default audio and subpicture streams, the next existing streams will now play/show according to our fix.
Don’t worry about the VIDEO_TS.IFO still showing your stripped streams attributes. We can leave it that way. It’s only the movie’s VTS_*_0.IFO that needed to be fixed.