kumi
22nd December 2005, 04:22
From examining the streams.tcl code it seems to me that PGCEdit does something like:
1) Loop through each PGC's header, and:
2) Loop through the PGC_AST_CTL (http://dvd.sourceforge.net/dvdinfo/pgc.html) entries. Sets the "real" number of audio streams to the last stream control entry number that is non-zero.
2) Loop through the PGC_SPST_CTL (http://dvd.sourceforge.net/dvdinfo/pgc.html) entries. Sets the "real" number of subpic streams to the last stream control entry number that is non-zero.
But, I have a DVD here that shows only 1 non-zero subpicture stream in the title domain, and it's not stream #1:
[0000001c] Sub-picture stream 1 status 0 [00000000]
[00000020] Sub-picture stream 2 status -2147417856 [80010100]
[00000024] Sub-picture stream 3 status 0 [00000000]
[00000028] Sub-picture stream 4 status 0 [00000000]
[0000002c] Sub-picture stream 5 status 0 [00000000]
[00000030] Sub-picture stream 6 status 0 [00000000]
etc...
The verify_num_streams_domain procedure reports "2 subpic streams are really used by the PGCs." Sub-picture stream 1 in the above Ifoedit dump doesn't display on my SAP or DVD programs. It is reported as non-existant in SubRip. It has a non-zero value in VTSI_MAT:
[00000255] Number of sub-picture streams in VTSTT_VOBS 32 [20]
[00000256] Sub-p_01: Sub-picture stream attributes 1 0 107 111 0 0 [01 00 6b 6f 00 00 ]
Sub-picture attribute details:
Language type present
Coding mode 2-bit rle
Language Korean
Language extension [00]
Code extension (Sub-Picture caption) unspecified caption
[0000025c] Sub-p_02: Sub-picture stream attributes 1 0 101 110 0 0 [01 00 65 6e 00 00 ]
Sub-picture attribute details:
Language type present
Coding mode 2-bit rle
Language English
Language extension [00]
Code extension (Sub-Picture caption) unspecified caption
[00000262] Sub-p_03: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
[00000268] Sub-p_04: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
[0000026e] Sub-p_05: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
[00000274] Sub-p_06: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
etc...
Does a zero-value PGC_*ST_CTL entry always mean that particular stream does not exist?
thanks
Edit: Looking at r0lz's code really drives home what an amazing (and well documented!) program he's got. Kudos to you, sir :)
1) Loop through each PGC's header, and:
2) Loop through the PGC_AST_CTL (http://dvd.sourceforge.net/dvdinfo/pgc.html) entries. Sets the "real" number of audio streams to the last stream control entry number that is non-zero.
2) Loop through the PGC_SPST_CTL (http://dvd.sourceforge.net/dvdinfo/pgc.html) entries. Sets the "real" number of subpic streams to the last stream control entry number that is non-zero.
But, I have a DVD here that shows only 1 non-zero subpicture stream in the title domain, and it's not stream #1:
[0000001c] Sub-picture stream 1 status 0 [00000000]
[00000020] Sub-picture stream 2 status -2147417856 [80010100]
[00000024] Sub-picture stream 3 status 0 [00000000]
[00000028] Sub-picture stream 4 status 0 [00000000]
[0000002c] Sub-picture stream 5 status 0 [00000000]
[00000030] Sub-picture stream 6 status 0 [00000000]
etc...
The verify_num_streams_domain procedure reports "2 subpic streams are really used by the PGCs." Sub-picture stream 1 in the above Ifoedit dump doesn't display on my SAP or DVD programs. It is reported as non-existant in SubRip. It has a non-zero value in VTSI_MAT:
[00000255] Number of sub-picture streams in VTSTT_VOBS 32 [20]
[00000256] Sub-p_01: Sub-picture stream attributes 1 0 107 111 0 0 [01 00 6b 6f 00 00 ]
Sub-picture attribute details:
Language type present
Coding mode 2-bit rle
Language Korean
Language extension [00]
Code extension (Sub-Picture caption) unspecified caption
[0000025c] Sub-p_02: Sub-picture stream attributes 1 0 101 110 0 0 [01 00 65 6e 00 00 ]
Sub-picture attribute details:
Language type present
Coding mode 2-bit rle
Language English
Language extension [00]
Code extension (Sub-Picture caption) unspecified caption
[00000262] Sub-p_03: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
[00000268] Sub-p_04: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
[0000026e] Sub-p_05: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
[00000274] Sub-p_06: Sub-picture stream attributes 0 0 0 0 0 0 [00 00 00 00 00 00 ]
etc...
Does a zero-value PGC_*ST_CTL entry always mean that particular stream does not exist?
thanks
Edit: Looking at r0lz's code really drives home what an amazing (and well documented!) program he's got. Kudos to you, sir :)