AV1 in WebM: Audio-Video Encapsulation Requirements

This article provides an overview of the technical specifications and encapsulation requirements for muxing AV1 video and compatible audio streams into the WebM container format. Standardized as a restricted subset of the Matroska (MKV) specification, WebM defines strict rules regarding container headers, video track parameters using the V_AV1 identifier, allowed audio codecs (predominantly Opus), and stream packetization behavior to ensure broad cross-platform interoperability.

Container-Level Specifications

WebM files carrying AV1 streams must strictly follow the EBML (Extensible Binary Meta Language) structure defined for WebM, rather than full-featured Matroska:

AV1 Video Track Requirements

When encapsulating AV1 video within WebM, the following track settings and payload structures are mandatory:

Supported Audio Streams

WebM strictly limits the audio codecs permitted within the container. When paired with AV1 video, audio must adhere to one of the following formats:

No other audio codecs (such as AAC or MP3) are valid within the WebM specification.

Timestamping and Synchronization