Debian Codegraph @

doc/dvd_structures

raw
1 This is some rather basic information on the organizational structures of
2 a DVD. I collected this info over time from various sources, the most
3 valuable being an article in the German c't computer magazine.
4 Some of the info might be wrong according to the DVD standard (which I do
5 not know), but they are practically proven in libdvdnav.
6
7 Michael Roitzsch
8
9
10 0. storage structure
11 - sector
12 * smallest addressable unit on disc
13 * data is stored on disc with a Reed-Solomon error correction
14 - file
15 * the storage entity in the underlying filesystem (usually UDF)
16 * on DVD-Video, files are stored consecutively
17 1. MPEG stream structure
18 - blocks
19 * a file system driver (usually UDF) is needed to map the VOBS-local
20 block numbers to global disc sectors
21 - GOP (group of pictures)
22 * contains multiple sectors
23 * smallest self-contained MPEG unit
24 - VOBU (video object unit)
25 * contains multiple GOPs + audio and SPU blocks + NAV packet
26 * smallest unit in seek and resume operations, always starts with a
27 NAV packet used for menu button highlight and command information
28 and to detect PTS discontinuities
29 - ILVU (interleaved video unit)
30 * contains multiple VOBUs (usually only one)
31 * blocking multiple VOBUs of multiple interleaved MPEG streams for
32 multiangle features
33 - VOB (video object)
34 * contains multiple ILVUs (usually quite a lot)
35 * each NAV packet has a CellID, so VOBs are divided into stream Cells
36 which do not necessarily correspond to the navigation Cells below
37 - VOBS (video object set)
38 * contains multiple VOBs (addressed by VOB_ID)
39 * a VOBS is the storage analogy to the playback domains below,
40 therefore, a VMGM_VOBS, a VTSM_VOBS and a VTS_VOBS exist
41 * all block addressing is done within the scope of the VOBS
42 2. navigational structure - logical playback control
43 - Cell
44 * smallest unit which is laid out in sequence
45 * points to a first and last VOBU (by sector)
46 * also points to the corresponding CellID and VOB_ID
47 * smallest unit to execute VM commands (cell_post commands)
48 * smallest unit accessible by VM commands (apart from LinkRSM)
49 - PG (program)
50 * points to a Cell
51 * usually the mapping between PG and Cells is 1:1, but not always
52 (multiple Cells inside one PG can occur when special VM commands
53 have to be executed in the middle of a PG, for example to switch
54 SPU channels or to provide a branching target for special
55 features that need access to parts of the movie)
56 * unit for user skip operations
57 * libdvdnav's default unit for seeking
58 - PGC (program chain)
59 * contains multiple programs and cells
60 * logical playback chain
61 * VM commands at start and stop (PGC_pre and PGC_post commands)
62 * might be used for seeking (see dvdnav_set_PGC_positioning())
63 3. title structure - high level navigation
64 - PTT (part of title track)
65 * points to a PG in a PGC
66 * usually what you select in a "chapter menu" are parts
67 * usually the mapping between PTT and PG is 1:1, but not always
68 (this is similar to the distinction between track and index marks
69 on audio CDs: PTT = track mark, PG = index mark)
70 - TT (title track)
71 * contains multiple PTTs
72 * logical partitioning of the content
73 (multiple episodes of a TV series on one DVD: one TT per episode)
74 * the display of DVD players show title and part number
75 - VTS (video title set)
76 * contains multiple TTs with a local numbering (to emphasize the
77 local scope of the number, these are also called VTS_TT)
78 * high level partitioning of the content (movie / bonus material)
79 * video, audio and spu attributes are common inside a whole VTS
80 4. domain structure - bringing it all together
81 - FP (first play)
82 * one special PGC in the VMGM domain run on start of the disc
83 - VMGM (video manager menu) - files video_ts.{vob,ifo,bup}
84 * the menu which allows you to select between title sets
85 * corresponds to the VMGM_VOBS (video_ts.vob) and
86 the VMGI (video_ts.ifo)
87 * contains sets of PGCs, differentiated by language
88 * contains a global table of TTs each pointing to a VTS and a local VTS_TT
89 * contains parental management information
90 * contains attribute lists for the VTS'es
91 * contains text data (?)
92 * contains a Cell and a VOBU lists with local sector info (for seeking)
93 - VTSM (video title set menu) - files vts_<vtsN>_0.{vob,ifo,bup}
94 * the menu which allows you to select between the TTs of a VTS
95 * corresponds to the VTSM_VOBS (vts_<vtsN>_0.vob) and
96 the VTSI (vts_<vtsN>_0.ifo)
97 * contains sets of PGCs, differentiated by language
98 * contains a Cell and a VOBU lists with local sector info (for seeking)
99 - VTS (video title set) - files vts_<vtsN>_[1-x].vob, vts_<vtsN>_0.{ifo,bup}
100 * regular playback domain
101 * corresponds to the VTS_VOBS (vts_<vtsN>_[1-x].vob) and
102 the VTSI (vts_<vtsN>_0.ifo)
103 * contains one VTS with its VTS_TTs and PGCs
104 * contains a time map (for time-based seeking)
105 * contains a Cell and a VOBU lists with local sector info (for seeking)
106 - STOP
107 * 'nuff said