#### Program Chain structure

This is the usual order of tables within one PGC.

PGC
| PGC header |
| command table |
| program map |
| cell playback information |
| cell position (VOBidn & CELLidn) |

#### PGC header

Offset | Label | size | Contents
--- | --- | --- | ---
0000 |  | 2 |
0002 |  | 1 | number of programs
0003 |  | 1 | number of cells
0004 |  | 4 | playback time, BCD, hh:mm:ss:ff with bits 7&6 of frame (last) byte indicating frame rate 11 = 30 fps, 10 = illegal, 01 = 25 fps, 00 = illegal
0008 |  | 4 | prohibited user ops
000C | PGC_AST_CTL | 8*2 | Audio Stream Control, each entry:
byte | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
--- | --- | --- | --- | --- | --- | --- | --- | ---
0 | 1 = stream available | reserved | Stream number (MPEG audio) or Substream number (all others)
1 | reserved
001C | PGC_SPST_CTL | 32*4 | Subpicture Stream Control, each entry:
byte | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
--- | --- | --- | --- | --- | --- | --- | --- | ---
0 | 1 = stream available | reserved | Stream number for 4:3
1 | reserved | Stream number for wide
2 | reserved | Stream number for letterbox
3 | reserved | Stream number for pan&scan
009C |  | 2 | next PGCN FP - Not allowed, VMGM & VTSM - must be in the same domain, VTST - must be in the same title.
009E |  | 2 | prev PGCN FP, VMGM, & VTSM - Not allowed, VTST - must be in the same title.
00A0 |  | 2 | goup PGCN FP - Not allowed, VMGM & VTSM - must be in the same domain, VTST - must be in the same title. If this is a menu PGC goup PGCN may be set to 0xFFFF indicating "resume".
00A2 |  | 1 | PG playback mode, 0=sequential, otherwise bit7 indicates random (0) or shuffle (1), and the program count-1 is in bits6-0 (minimum program count is 2)
00A3 |  | 1 | PGC still time, 255=infinite
00A4 |  | 16*4 | Color LookUp Table (CLUT) (0, Y, Cr, Cb)
00E4 |  | 2 | offset within PGC to commands
00E6 |  | 2 | offset within PGC to program map
00E8 |  | 2 | offset within PGC to cell playback information table
00EA |  | 2 | offset within PGC to cell position information table

#### command table

Offset | Label | size | Contents
--- | --- | --- | ---
0000 |  | 2 | number of pre commands
0002 |  | 2 | number of post commands
0004 |  | 2 | number of cell commands
0006 |  | 2 | end address relative to command table
0008 |  | pre*8 | pre commands
0008+pre*8 |  | post*8 | post commands
0008+(pre+post)*8 |  | cell*8 | cell commands

* The total number of pre+post+cell commands must be 128 or less

#### program map entry (one per program, pad to word boundary with zero)

Offset | Label | size | Contents
--- | --- | --- | ---
0000 |  | 1 | entry cell number

* Program and Cell numbers begin at 1.

#### cell playback information table entry (one per cell)

Offset | Label | size | Contents
--- | --- | --- | ---
0000 |  | 4 | cell category
byte | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
--- | --- | --- | --- | --- | --- | --- | --- | ---
0 | cell type 00=normal, 01=first of angle block, 10=middle of angle block, 11=last of angle block | Block Type 00 = normal, 01 = angle block | 1 = seamless multiplex | 1 = interleaved | 1 = SCR discontinuity | 1 = seamless angle linked in DSI
1 | reserved | 1 = VOBU still mode | 1 = restricted (stops trick play) | Application Cell Type, see below for karaoke meanings
2 | cell still time
3 | cell command #
0004 |  | 4 | cell playback time, BCD, hh:mm:ss:ff with bits 7&6 of frame (last) byte indicating frame rate 11 = 30 fps, 10 = illegal, 01 = 25 fps, 00 = illegal
0008 |  | 4 | first VOBU start sector
000C |  | 4 | first ILVU end sector
0010 |  | 4 | last VOBU start sector
0014 |  | 4 | last VOBU end sector

#### Karaoke Application Cell Types

value | meaning | value | meaning | value | meaning | value | meaning
--- | --- | --- | --- | --- | --- | --- | ---
0 | no cell type is designated | 4 | song part of the first climax | 8 | song part for mixed voices | 12 | first ending
1 | title picture | 5 | song part of the second climax | 9 | interlude part (instrumental) | 13 | second ending
2 | introduction | 6 | song part for a male vocal | 10 | fade-in of the interlude | 14-31 | not defined
3 | song part other than a climax (bridge) | 7 | song part for a female vocal | 11 | fade-out of the interlude

#### cell position information table entry (one per cell)

Offset | Label | size | Contents
--- | --- | --- | ---
0000 |  | 2 | VOB id
0002 |  | 1 | reserved
0003 |  | 1 | Cell id

DVD-Video info home | Copyright © 2001 - 2020 STN Software, all rights reserved.