AV1 Over CMAF Fragmentation Headers Explained

Streaming AV1 video over the Common Media Application Format (CMAF) requires packaging AV1 bitstreams into standardized ISO Base Media File Format (ISOBMFF) structures. To achieve seamless adaptive bitrate streaming and low-latency delivery, CMAF divides media into an Initialization Segment and a sequence of Media Fragments. This guide outlines the exact fragmentation headers and ISOBMFF boxes required to package and stream AV1 content within CMAF containers.

The CMAF Segmentation Model

CMAF standardizes media delivery by splitting streams into two primary components:

  1. CMAF Header (Initialization Segment): Contains track metadata, codec configuration, and initialization parameters, but no media samples.
  2. CMAF Fragment (Media Segment / Chunk): Contains a movie fragment header followed by media data, encapsulating AV1 Open Bitstream Units (OBUs).

1. Initialization Segment Headers

The Initialization Segment must contain the following hierarchy of boxes to initialize the AV1 decoder:

2. Media Fragment Headers

Each playable media segment or chunk begins with metadata headers followed by the raw media samples:

3. Media Data Payload (mdat)

Directly following the moof box is the mdat (Media Data Box):