Delivering AV1 via CMAF to HLS and DASH Clients
The Common Media Application Format (CMAF) standardizes the container layer for streaming media, allowing content providers to package next-generation AV1 video into a single set of fragmented MP4 (fMP4) chunks that simultaneously serve both HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH) players. By decoupling the media payload from client-specific manifest files, CMAF eliminates the historical need to store duplicate segments for different ecosystems, drastically reducing storage costs, streamlining encoding workflows, and maximizing content delivery network (CDN) cache efficiency.
The Problem of Format Fragmentation
Historically, delivering adaptive bitrate streaming across
heterogeneous devices required distinct container formats. Appleās HLS
ecosystem mandated MPEG-2 Transport Stream (.ts)
containers, while MPEG-DASH favored fragmented MP4 (.mp4)
containers. Distributing video to both platforms forced operators to
ingest, encode, package, and cache two separate file structures for the
exact same source content. This dual-pipeline approach doubled origin
storage footprints and split CDN cache efficiency in half.
How CMAF Standardizes the Container Layer
CMAF resolves this fragmentation by establishing an ISO Base Media File Format (ISOBMFF) standard for media packaging. Under CMAF, media tracks are divided into standardized components:
- CMAF Header: Contains initialization metadata (such
as the
ftypandmoovboxes) required to initialize the player's decoder, devoid of media samples. - CMAF Chunks/Fragments: Contain independent media
units wrapped in Movie Fragment (
moof) and Media Data (mdat) boxes.
Because CMAF defines structural conformity at the container level, modern players simply require standard-compliant fMP4 fragments rather than proprietary wrappers.
Binding AV1 to CMAF
AV1 is an open, royalty-free video codec designed by the Alliance for Open Media (AOMedia) that delivers higher compression efficiency compared to AVC (H.264) and HEVC (H.265). CMAF defines precise encapsulation rules for AV1 bitstreams within the ISOBMFF container structure.
In an AV1-CMAF workflow:
- The encoder compresses raw video into standard AV1 Open Bitstream Units (OBUs).
- The packager encapsulates these OBUs into CMAF-compliant media
segments (
.m4sor.mp4). - Sample entry descriptions (such as
av01) specify the profile, level, and color characteristics in the initialization header.
Because these encapsulated AV1 fragments adhere strictly to CMAF ISOBMFF definitions, the video payloads remain platform-agnostic.
Dual-Manifest, Single-Chunk Distribution
The core mechanism enabling single-chunk delivery is the separation of manifest parsing from media decoding. While HLS and DASH utilize different playlist protocols, they point to the identical media bytes on the server:
- HLS (
.m3u8): Uses an Ext-X-Version 7+ master and media playlist referencing the CMAF initialization segment via the#EXT-X-MAP:URI="init.mp4"tag, followed by sequential#EXTINFtags pointing to the AV1.m4schunks. - DASH (
.mpd): Uses an XML-based Media Presentation Description where an<Initialization>tag points to the sameinit.mp4, and<SegmentTemplate>or<SegmentList>elements reference the exact same.m4schunks.
When an Apple client requests the stream, it reads the HLS
.m3u8 playlist and downloads chunk
segment_1.m4s. When an Android or web client requests the
stream, it reads the DASH .mpd and requests the identical
segment_1.m4s URI.
Operational Advantages
- Maximum CDN Cache Efficiency: Because all clients request the exact same URIs for video segments, edge caches do not split traffic between different formats. This results in significantly higher cache hit ratios and reduced load on origin servers.
- Halved Storage Footprints: Origin servers and cloud storage buckets retain only a single AV1 encoding tier instead of redundant TS and fMP4 variants.
- Unified Encryption: With the convergence of Common
Encryption (CENC) using the
cbcspattern across both Apple devices (FairPlay) and standard DASH DRM systems (Widevine and PlayReady), operators can secure CMAF-packaged AV1 chunks with a single encryption pass.