Contents

Sample-to-chunk atom ('stsc')

An atom that stores chunk information for the samples in a media.

Overview

As samples are added to a media, they are collected into chunks that allow optimized data access. A chunk contains one or more samples. Chunks in a media may have different sizes, and the samples within a chunk may have different sizes. The sample-to-chunk atom stores chunk information for the samples in a media.

Sample-to-chunk atoms have an atom type of 'stsc'. The sample-to-chunk atom contains a table that maps samples to chunks in the media data stream. By examining the sample-to-chunk atom, you can determine the chunk that contains a specific sample.

The layout of the sample-to-chunk atom is as follows.

Sample-to-chunk atom data field

Bytes

Size

4

Type = 'stsc'

4

Version

1

Flags

3

Number_of_entries

4

Sample To Chunk_table

Variable

Topics

Data fields

See Also

Describing samples