Packaging AV1 Bitstreams in MP4 Containers

Packaging AV1 video bitstreams within the MP4 container—formally known as the ISO Base Media File Format (ISOBMFF)—requires strict adherence to the binding specifications defined by the Alliance for Open Media (AOMedia). This article details the essential structural requirements for encapsulating AV1, including sample entry formats, codec configuration records, Open Bitstream Unit (OBU) alignment, and random-access signaling to ensure seamless playback across media decoders and streaming engines.

The Visual Sample Entry: av01

When carrying AV1 video, the track handler type must be set to vide, and the sample entry in the sample description box (stsd) must use the FourCC code av01. This identifier signals to parsers that the media samples contain AV1 bitstream data.

The av01 sample entry includes standard ISOBMFF visual fields (such as width, height, and display resolution) alongside mandatory AV1-specific descriptors:

The AV1 Configuration Box (av1C)

The av1C box provides initialization data so the media pipeline knows video parameters without scanning the entire stream. It encapsulates the AV1CodecConfigurationRecord, which contains:

Sample and OBU Formatting Rules

AV1 bitstreams are composed of a sequence of Open Bitstream Units (OBUs). When placed into an ISOBMFF sample, specific framing constraints apply:

Random Access and Synchronization Samples

To facilitate seeking and track switching, MP4 indexing structures must correctly reflect the AV1 bitstream state: