PDA

View Full Version : audio/sub stream status


II00I00I
4th April 2003, 11:34
I am stripping/converting R2 TNG DVD1 from DVD9 to DVD5.
Everything seems to work but 1 thing.
In my stripped/converted version of the DVD when I select the subtitle button for 'Nederlands' I get English subs (because they are the default stream).
I think I found the reason, but I don't know how to fix it. In the original ifo dutch is sub-picture 7 and subpicture 7 uses stream 6 (0 based).
But in the stripped ifo dutch is sub-picture 2 and sub-picture 2 still uses stream 6 which isn't there anymore. I think this should become uses stream 1 (2nd stream).
In IfoEdit however there is no way to change this number and it didn't change this number itself to reflect the stripped situation.
How can I change this? Or is something else wrong?
The same applies to the audio streams.

IFO EXTRACTS:
Original VTS_01

SubPicture 1: Dansk (Danish) (2-bit rle ) (ID: 0x20)
SubPicture 2: Deutsch (2-bit rle ) (ID: 0x21)
SubPicture 3: English (2-bit rle ) (ID: 0x22)
SubPicture 4: Español (2-bit rle ) (ID: 0x23)
SubPicture 5: Français (2-bit rle ) (ID: 0x24)
SubPicture 6: Italiano (Italian) (2-bit rle ) (ID: 0x25)
SubPicture 7: Nederlands (2-bit rle ) (ID: 0x26)
SubPicture 8: Norsk (2-bit rle ) (ID: 0x27)
SubPicture 9: Svenska (2-bit rle ) (ID: 0x28)
SubPicture 10: English (2-bit rle ) (ID: 0x29)
SubPicture 11: Español (2-bit rle ) (ID: 0x2a)
SubPicture 12: Français (2-bit rle ) (ID: 0x2b)

-> VTS_PGC_1
[0000001c] Sub-picture stream 1 status -2147483648 [80000000]
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
[00000020] Sub-picture stream 2 status -2130706432 [81000000]
Sub-picture stream 2 uses stream nr.(4:3): 1
Sub-picture stream 2 uses stream nr.(wide): 0
Sub-picture stream 2 uses stream nr.(letterbox): 0
Sub-picture stream 2 uses stream nr.(pan&scan): 0
[00000024] Sub-picture stream 3 status -2113929216 [82000000]
Sub-picture stream 3 uses stream nr.(4:3): 2
Sub-picture stream 3 uses stream nr.(wide): 0
Sub-picture stream 3 uses stream nr.(letterbox): 0
Sub-picture stream 3 uses stream nr.(pan&scan): 0
[00000028] Sub-picture stream 4 status -2097152000 [83000000]
Sub-picture stream 4 uses stream nr.(4:3): 3
Sub-picture stream 4 uses stream nr.(wide): 0
Sub-picture stream 4 uses stream nr.(letterbox): 0
Sub-picture stream 4 uses stream nr.(pan&scan): 0
[0000002c] Sub-picture stream 5 status -2080374784 [84000000]
Sub-picture stream 5 uses stream nr.(4:3): 4
Sub-picture stream 5 uses stream nr.(wide): 0
Sub-picture stream 5 uses stream nr.(letterbox): 0
Sub-picture stream 5 uses stream nr.(pan&scan): 0
[00000030] Sub-picture stream 6 status -2063597568 [85000000]
Sub-picture stream 6 uses stream nr.(4:3): 5
Sub-picture stream 6 uses stream nr.(wide): 0
Sub-picture stream 6 uses stream nr.(letterbox): 0
Sub-picture stream 6 uses stream nr.(pan&scan): 0
[00000034] Sub-picture stream 7 status -2046820352 [86000000]
Sub-picture stream 7 uses stream nr.(4:3): 6
Sub-picture stream 7 uses stream nr.(wide): 0
Sub-picture stream 7 uses stream nr.(letterbox): 0
Sub-picture stream 7 uses stream nr.(pan&scan): 0
[00000038] Sub-picture stream 8 status -2030043136 [87000000]
Sub-picture stream 8 uses stream nr.(4:3): 7
Sub-picture stream 8 uses stream nr.(wide): 0
Sub-picture stream 8 uses stream nr.(letterbox): 0
Sub-picture stream 8 uses stream nr.(pan&scan): 0
[0000003c] Sub-picture stream 9 status -2013265920 [88000000]
Sub-picture stream 9 uses stream nr.(4:3): 8
Sub-picture stream 9 uses stream nr.(wide): 0
Sub-picture stream 9 uses stream nr.(letterbox): 0
Sub-picture stream 9 uses stream nr.(pan&scan): 0
[00000040] Sub-picture stream 10 status -1996488704 [89000000]
Sub-picture stream 10 uses stream nr.(4:3): 9
Sub-picture stream 10 uses stream nr.(wide): 0
Sub-picture stream 10 uses stream nr.(letterbox): 0
Sub-picture stream 10 uses stream nr.(pan&scan): 0
[00000044] Sub-picture stream 11 status -1979711488 [8a000000]
Sub-picture stream 11 uses stream nr.(4:3): 10
Sub-picture stream 11 uses stream nr.(wide): 0
Sub-picture stream 11 uses stream nr.(letterbox): 0
Sub-picture stream 11 uses stream nr.(pan&scan): 0
[00000048] Sub-picture stream 12 status -1962934272 [8b000000]
Sub-picture stream 12 uses stream nr.(4:3): 11
Sub-picture stream 12 uses stream nr.(wide): 0
Sub-picture stream 12 uses stream nr.(letterbox): 0
Sub-picture stream 12 uses stream nr.(pan&scan): 0
[0000004c] Sub-picture stream 13 status 0 [00000000]
[00000050] Sub-picture stream 14 status 0 [00000000]

Stripped VTS_01

SubPicture 1: English (2-bit rle ) (ID: 0x22)
SubPicture 2: Nederlands (2-bit rle ) (ID: 0x26)

-> VTS_PGC_1

[0000001c] Sub-picture stream 1 status -2113929216 [82000000]
Sub-picture stream 1 uses stream nr.(4:3): 2
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
[00000020] Sub-picture stream 2 status -2046820352 [86000000]
Sub-picture stream 2 uses stream nr.(4:3): 6
Sub-picture stream 2 uses stream nr.(wide): 0
Sub-picture stream 2 uses stream nr.(letterbox): 0
Sub-picture stream 2 uses stream nr.(pan&scan): 0
[00000024] Sub-picture stream 3 status 0 [00000000]
[00000028] Sub-picture stream 4 status 0 [00000000]

2COOL
4th April 2003, 11:48
Hope this guide helps for you. Though it was written for stripped languages, it is the same concept with IFO with stripped subtitles. Just compare your stripped IFO to your original IFO for reference.

Correcting Language Buttons After Stripping Audio(s) (http://forum.doom9.org/showthread.php?s=&threadid=46909)

II00I00I
4th April 2003, 12:48
2COOL,

thx, but I read that one already and that is not what I want to do. I want to change the 'used stream number' from 6 to 1, not add 4 substreams so that the 6th stream has become the dutch stream again.
If I am not mistaken that is not what your guide explains, or am I missing something.

[00000020] Sub-picture stream 2 status -2046820352 [86000000]
Sub-picture stream 2 uses stream nr.(4:3): 6 -> 1

2COOL
4th April 2003, 13:24
Try doing this. Any other language selected will just play English.


Sub-picture stream 1 status 0............[00000000]
Sub-picture stream 2 status 0............[00000000]
Sub-picture stream 3 status -2113929216..[82000000] English
Sub-picture stream 4 status 0............[00000000]
Sub-picture stream 5 status 0............[00000000]
Sub-picture stream 6 status 0............[00000000]
Sub-picture stream 7 status -2046820352..[86000000] Nederlands
Sub-picture stream 8 status 0............[00000000]
Sub-picture stream 9 status 0............[00000000]

II00I00I
4th April 2003, 14:01
When I do that there are no subtitles anymore that can be selected. the buttons are still there but with no effect. And the accessing the subtitles directly shows me there are no subtitles present. When I put one of them back in its original place then I can select it again, but not the other one. They both have to be in their original places to be able to select them.
It seems that only the button is wrong. It still wants to activate subpicture 7 (which has gone). It should now activate subpicture 2 instead, which seems to point to stream 6 (dutch).
How could I change the command that is linked to a button?

II00I00I
4th April 2003, 16:56
I've been digging around a bit further and I think I know where I need to look:

IFO contents:
Menu Language Units: 1
Language Menu Unit 1: [English]

Language Menu Unit 1: [English]
...
Menu 22: [entry only] (Programs: 1) (Cells: 1) (uses VOB-IDs: 6)
Menu 23: [entry only] (Programs: 1) (Cells: 1) (uses VOB-IDs: 7)
...

With the preview function I can see which VOBID is the subpicture setting menu and thus I know the menu number.

VTSM_PGCI_UT / LU1 (English) PGC-Menu 22 (or 23)
...
PGC Command Table:
[000000ec] Number of Pre Commands 13 [000d]
[000000ee] Number of Post Commands 56 [0038]
[000000f0] Number of Cell Commands 0 [0000]
[000000f2] Size of Command table in bytes 559 [022f]
[000000f4] 1.Pre Command NOP [00 00 00 00 00 00 00 00 ]
[000000fc] 2.Pre Command NOP [00 00 00 00 00 00 00 00 ]
[00000104] 3.Pre Command NOP [00 00 00 00 00 00 00 00 ]
[0000010c] 4.Pre Command NOP [00 00 00 00 00 00 00 00 ]
[00000114] 5.Pre Command Set GPreg<0> mov GPreg<5> [61 00 00 00 00 05 00 00 ]
[0000011c] 6.Pre Command If GPreg<0> != (cmp-val)<0><' then Goto line# 8 [00 b1 00 00 00 00 00 08 ]
[00000124] 7.Pre Command Set GPreg<0> mov (set-val)<1> [71 00 00 00 00 01 00 00 ]
[0000012c] 8.Pre Command Set GPreg<0> and (set-val)<63> [79 00 00 00 00 3f 00 00 ]
[00000134] 9.Pre Command Set GPreg<0> mul (set-val)<1024> [75 00 00 00 04 00 00 00 ]
[0000013c] 10.Pre Command NOP [00 00 00 00 00 00 00 00 ]
[00000144] 11.Pre Command Set GPreg<3> mov (set-val)<17> [71 00 00 03 00 11 00 00 ]
[0000014c] 12.Pre Command (SetHL_BTNN) Set Button Nr: GPreg<0> [46 00 00 00 00 00 00 00 ]
[00000154] 13.Pre Command Set GPreg<1> mov (set-val)<0> [71 00 00 01 00 00 00 00 ]
[0000015c] 1.Post Command Set GPreg<3> mov (set-val)<0> [71 00 00 03 00 00 00 00 ]
[00000164] 2.Post Command Set GPreg<0> mov SPreg<highlighted button number (HL_BTNN)> [61 00 00 00 00 88 00 00 ]
[0000016c] 3.Post Command Set GPreg<0> div (set-val)<1024> [76 00 00 00 04 00 00 00 ]
[00000174] 4.Post Command If GPreg<0> != (cmp-val)<1><' then Goto line# 8 [00 b1 00 00 00 01 00 08 ]
[0000017c] 5.Post Command (LinkPGCN) Link PGC 137 [20 04 00 00 00 00 00 89 ]
[00000184] 6.Post Command NOP [00 00 00 00 00 00 00 00 ]
[0000018c] 7.Post Command NOP [00 00 00 00 00 00 00 00 ]
[00000194] 8.Post Command If GPreg<0> != (cmp-val)<2><' then Goto line# 12 [00 b1 00 00 00 02 00 0c ]
[0000019c] 9.Post Command (LinkPGCN) Link PGC 138 [20 04 00 00 00 00 00 8a ]
[000001a4] 10.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000001ac] 11.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000001b4] 12.Post Command If GPreg<0> != (cmp-val)<3><' then Goto line# 16 [00 b1 00 00 00 03 00 10 ]
[000001bc] 13.Post Command (LinkPGCN) Link PGC 139 [20 04 00 00 00 00 00 8b ]
[000001c4] 14.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000001cc] 15.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000001d4] 16.Post Command If GPreg<0> != (cmp-val)<4><' then Goto line# 20 [00 b1 00 00 00 04 00 14 ]
[000001dc] 17.Post Command (LinkPGCN) Link PGC 140 [20 04 00 00 00 00 00 8c ]
[000001e4] 18.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000001ec] 19.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000001f4] 20.Post Command If GPreg<0> != (cmp-val)<5><' then Goto line# 24 [00 b1 00 00 00 05 00 18 ]
[000001fc] 21.Post Command (LinkPGCN) Link PGC 141 [20 04 00 00 00 00 00 8d ]
[00000204] 22.Post Command NOP [00 00 00 00 00 00 00 00 ]
[0000020c] 23.Post Command NOP [00 00 00 00 00 00 00 00 ]
[00000214] 24.Post Command If GPreg<0> != (cmp-val)<6><' then Goto line# 28 [00 b1 00 00 00 06 00 1c ]
[0000021c] 25.Post Command (LinkPGCN) Link PGC 142 [20 04 00 00 00 00 00 8e ]
[00000224] 26.Post Command NOP [00 00 00 00 00 00 00 00 ]
[0000022c] 27.Post Command NOP [00 00 00 00 00 00 00 00 ]
[00000234] 28.Post Command If GPreg<0> != (cmp-val)<7><' then Goto line# 32 [00 b1 00 00 00 07 00 20 ]
[0000023c] 29.Post Command (LinkPGCN) Link PGC 143 [20 04 00 00 00 00 00 8f ]
[00000244] 30.Post Command NOP [00 00 00 00 00 00 00 00 ]
[0000024c] 31.Post Command NOP [00 00 00 00 00 00 00 00 ]
[00000254] 32.Post Command If GPreg<0> != (cmp-val)<8><' then Goto line# 36 [00 b1 00 00 00 08 00 24 ]
[0000025c] 33.Post Command (LinkPGCN) Link PGC 144 [20 04 00 00 00 00 00 90 ]
[00000264] 34.Post Command NOP [00 00 00 00 00 00 00 00 ]
[0000026c] 35.Post Command NOP [00 00 00 00 00 00 00 00 ]
[00000274] 36.Post Command If GPreg<0> != (cmp-val)<9><' then Goto line# 40 [00 b1 00 00 00 09 00 28 ]
[0000027c] 37.Post Command (LinkPGCN) Link PGC 145 [20 04 00 00 00 00 00 91 ]
[00000284] 38.Post Command NOP [00 00 00 00 00 00 00 00 ]
[0000028c] 39.Post Command NOP [00 00 00 00 00 00 00 00 ]
[00000294] 40.Post Command If GPreg<0> != (cmp-val)<10><' then Goto line# 44 [00 b1 00 00 00 0a 00 2c ]
[0000029c] 41.Post Command (LinkPGCN) Link PGC 146 [20 04 00 00 00 00 00 92 ]
[000002a4] 42.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000002ac] 43.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000002b4] 44.Post Command If GPreg<0> != (cmp-val)<11><' then Goto line# 48 [00 b1 00 00 00 0b 00 30 ]
[000002bc] 45.Post Command (LinkPGCN) Link PGC 147 [20 04 00 00 00 00 00 93 ]
[000002c4] 46.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000002cc] 47.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000002d4] 48.Post Command If GPreg<0> != (cmp-val)<12><' then Goto line# 52 [00 b1 00 00 00 0c 00 34 ]
[000002dc] 49.Post Command (LinkPGCN) Link PGC 125 [20 04 00 00 00 00 00 7d ]
[000002e4] 50.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000002ec] 51.Post Command NOP [00 00 00 00 00 00 00 00 ]
[000002f4] 52.Post Command If GPreg<0> != (cmp-val)<13><' then Goto line# 56 [00 b1 00 00 00 0d 00 38 ]
[000002fc] 53.Post Command Set GPreg<5> mov (set-val)<2> [71 00 00 05 00 02 00 00 ]
[00000304] 54.Post Command (LinkPGCN) Link PGC 21 [20 04 00 00 00 00 00 15 ]
[0000030c] 55.Post Command NOP [00 00 00 00 00 00 00 00 ]
[00000314] 56.Post Command NOP [00 00 00 00 00 00 00 00 ]

...

The post commands are the actions linked to the buttons on this menu.
Who can help me read/understand what these post commands do?
I think GPreg<5> might be the location for the current subpicture stream value.

II00I00I
5th April 2003, 00:38
OK, I figured it out.
in PGC-menu_23 (subs selection menu, you can find this out by previewing the VOBID) I push the button for dutch (button nr 7). This activates the post commands. First the highlighted button number is retrieved, this being nr 7 it links to PGC 143. In PGC-menu_143 val 70 is put into GPreg<10> and it links to PGC 135. In PGC-menu_135 the SetSTN sets the audio (from GPreg<9>) and substream (from GPreg<10>) numbers.
Now since 70 was stored into GPreg<10> stream 6 (0 based) is used. This used to be dutch. This has to be changed so that stream 1 is used because this is now the dutch substream. So the new value has to become 65 (btw: 65 AND 63 = 1).
This change has to be applied for all remaining audio and substreams so that they can be selected correctly.

Perhaps someone can add this info into a guide or something.
:D ;) :)