Sample Table Box
Box Type: ‘stbl’
Container: Media Information Box (‘minf’) Mandatory: Yes
Quantity: Exactly one
The sample table contains all the time and data indexing of the media samples in a track. Using the tables here, it is possible to locate samples in time, determine their type (e.g. I‐frame or not), and determine their size, container, and offset into that container.
If the track that contains the Sample Table Box references no data, then the Sample Table Box does not need to contain any sub‐boxes (this is not a very useful media track).
If the track that the Sample Table Box is contained in does reference data, then the following sub‐boxes are required: Sample Description, Sample Size, Sample To Chunk, and Chunk Offset. Further, the Sample Description Box shall contain at least one entry. A Sample Description Box is required because it contains the data reference index field which indicates which Data Reference Box to use to retrieve the media samples. Without the Sample Description, it is not possible to determine where the media samples are stored. The Sync Sample Box is optional. If the Sync Sample Box is not present, all samples are sync samples.
A.7 provides a narrative description of random access using the structures defined in the Sample Table Box.
aligned(8) class SampleTableBox extends Box(‘stbl’) {
}
000006d0: 00 00 00 01 00 00 01 0b 73 74 62 6c 00 00 00 a7 ……..stbl….
000006e0: 73 74 73 64 00 00 00 00 00 00 00 01 00 00 00 97 stsd…………
000006f0: 61 76 63 31 00 00 00 00 00 00 00 01 00 00 00 00 avc1…………
00000700: 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 0c …………….
00000710: 00 48 00 00 00 48 00 00 00 00 00 00 00 01 00 00 .H…H……….
00000720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …………….
00000730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 18 …………….
00000740: ff ff 00 00 00 31 61 76 63 43 01 f4 00 0a ff e1 …..1avcC……
00000750: 00 19 67 f4 00 0a 91 9b 2b f2 cb 80 b6 40 00 00 ..g…..+….@..
00000760: 03 00 40 00 00 0c 83 c4 89 65 80 01 00 05 68 eb ..@……e….h.
00000770: e3 c4 48 00 00 00 10 70 61 73 70 00 00 00 01 00 ..H….pasp…..
00000780: 00 00 01 00 00 00 18 73 74 74 73 00 00 00 00 00 …….stts…..
00000790: 00 00 01 00 00 00 01 00 00 0e 10 00 00 00 1c 73 ……………s
000007a0: 74 73 63 00 00 00 00 00 00 00 01 00 00 00 01 00 tsc………….
000007b0: 00 00 01 00 00 00 01 00 00 00 14 73 74 73 7a 00 ………..stsz.
000007c0: 00 00 00 00 00 02 f0 00 00 00 01 00 00 00 14 73 ……………s
000007d0: 74 63 6f 00 00 00 00 00 00 00 01 00 00 00 30 00 tco………..0.
000007e0: 00 01 bc 74 72 61 6b 00 00 00 5c 74 6b 68 64 00 …trak…\tkhd.
000007f0: 00 00 03 00 00 00 00 00 00 00 00 00 00 00 02 00 …………….