AV2 Codec ISO Media File Format Binding

Working Group Draft,

This version:
https://aomediacodec.github.io/av2-isobmff/v1.0.0.html
Issue Tracking:
GitHub
Editors:
TBD
TBD
Warning

This specification is still at draft stage and should not be referenced other than as a working draft.

Copyright 2026, Alliance for Open Media

Licensing information is available at https://www.aomedia.org/license/

The MATERIALS ARE PROVIDED “AS IS.” The Alliance for Open Media, its members, and its contributors expressly disclaim any warranties (express, implied, or otherwise), including implied warranties of merchantability, non-infringement, fitness for a particular purpose, or title, related to the materials. The entire risk as to implementing or otherwise using the materials is assumed by the implementer and user. IN NO EVENT WILL THE ALLIANCE FOR OPEN MEDIA, ITS MEMBERS, OR CONTRIBUTORS BE LIABLE TO ANY OTHER PARTY FOR LOST PROFITS OR ANY FORM OF INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER FROM ANY CAUSES OF ACTION OF ANY KIND WITH RESPECT TO THIS DELIVERABLE OR ITS GOVERNING AGREEMENT, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, AND WHETHER OR NOT THE OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Abstract

This document specifies the storage format for [AV2] bitstreams in [ISOBMFF] tracks as well as in [CMAF] files.

1. Terminology

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes.

Examples in this specification are introduced with the words "for example" or are set apart from the normative text with class="example", like this:

This is an example of an informative example.

Informative notes begin with the word "Note" and are set apart from the normative text with class="note", like this:

NOTE: This is an example of an informative note.

↑ Back to Table of Contents

2. Features overview

2.1. AV2 bitstream

An AV2 bitstream is composed of a sequence of OBUs (Open Bitstream Units), grouped into Temporal Units. A Temporal Unit consists of a Temporal Delimiter OBU and all following OBUs up to, but not including, the next Temporal Delimiter OBU. Each Temporal Unit is associated with a single presentation time.

Every OBU begins with a 1- or 2-byte header that carries the obu_type and the temporal layer identifier obu_tlayer_id. When the OBU header extension is present (i.e. when obu_header_extension_flag is equal to 1 in that header), two additional layer identifiers are carried: the embedded layer identifier obu_mlayer_id and the extended layer identifier obu_xlayer_id. Depending on its type, an OBU can carry configuration information (e.g., a Sequence Header OBU or Layer Configuration Record OBU), metadata, or coded video data.

A Temporal Unit MAY contain multiple coded pictures and MAY output multiple pictures. AV2 defines a number of coded-frame OBU types, including Closed Loop Key OBUs, Open Loop Key OBUs, regular and leading tile-group OBUs, Switch OBUs, OBU_RAS_FRAME, Bridge Frame OBUs, and TIP (Temporally Interpolated Prediction) frames.

Frames that can be decoded without reference to other frames are Key Frames (carried in a Closed Loop Key OBU or an Open Loop Key OBU) and Intra frames. All other coded frames - including Inter Frames, Switch Frames, random-access switch (RAS) frames, Bridge frames, TIP frames, and frames with show_existing_frame equal to 1 - have coding dependencies on other frames in the same or previous Temporal Units.

A Closed Random Access is the random access process that applies to an extended layer whose first coded frame is a Key Frame carried in a Closed Loop Key OBU. It starts a new coded video sequence for the extended layer; the layer’s reference frame buffers are invalidated and every subsequent frame of that layer can be decoded. This is the primary random-access mechanism.

An Open Random Access is the random access process that applies to an extended layer whose first coded frame is a Key Frame carried in an Open Loop Key OBU. During sequential decoding, an Open Random Access point does not start a new coded video sequence; however, when a decoder initiates decoding at that point, the decoding process is treated as if it were the start of a new coded video sequence for the extended layer. Leading frames that follow an Open Random Access point MAY reference frames that precede it, and are discarded when decoding begins at the Open Random Access point.

In addition to Key Frames, AV2 provides two further mechanisms that support random access or stream switching: a RAS frame (OBU_RAS_FRAME) is an inter-predicted frame that uses long-term reference frames and enables random access or switching without inserting a full key frame; a Switch Frame (OBU_SWITCH) is an inter-predicted frame that enables switching between representations at a given point, typically in adaptive streaming scenarios.

AV2 supports three scalability dimensions: temporal layers (identified by obu_tlayer_id), embedded layers (identified by obu_mlayer_id), and extended layers (identified by obu_xlayer_id). The reserved obu_xlayer_id value GLOBAL_XLAYER_ID (equal to 31, as defined in [AV2]) denotes global scope and is used by OBUs that do not belong to any specific extended layer (such as the Temporal Delimiter OBU). A bitstream that uses a single distinct non-global value of obu_xlayer_id is a Singlestream bitstream; a bitstream that uses two or more distinct non-global values is a Multistream bitstream.

AV2 defines two distinct Metadata OBU types for carrying metadata: OBU_METADATA_SHORT, using the metadata short OBU syntax, and OBU_METADATA_GROUP, using the metadata group OBU syntax. A separate OBU type carries film grain synthesis parameters; its presence is indicated by the film_grain_params_present flag in the Sequence Header OBU.

The Sequence Header OBU also carries the bitstream’s profile, level, and - when applicable - tier, as defined in Annex A of [AV2].

The Sequence Header OBU carries a monotonic_output_order_flag that defines the output mode of the associated coded video sequence.

When monotonic_output_order_flag is equal to 1, the output order of coded output frame equals their decoding order within the coded video sequence. Within a sample, the composition time (CTS) of the associated output frame is equal to the sample’s decoding time (DTS); the sample MAY additionally contain hidden frames.

When monotonic_output_order_flag is equal to 0, the output order of coded output frames MAY differ from their decoding order. The composition time of each sample is then derived from a ctts box that signals the offset between the sample’s decoding time (DTS) and the composition time of its associated output frame. As in the monotonic case, a sample MAY additionally contain hidden frames.

NOTE: Non-monotonic output mode is new in AV2; AV1 supports only the monotonic mode.

2.2. AV2-ISOBMFF file

A file conformant to this version of this specification offers the following non-exhaustive list of features signalled at the container level using codec-agnostic boxes:

§ 3.4 Multitrack and Multilayer describes codec-specific features available or not in files conformant to this version of this specification.

↑ Back to Table of Contents

3. Encapsulation Scheme

This section describes the data structures used to signal encapsulation of AV2 bitstreams in [ISOBMFF] containers.

There are two locations where OBUs can be found in a file conformant to this specification:

An AV2 sample is the union of a sample inclusive of the OBUs it carries, any OBUs carried in the AV2CodecConfigurationBox of the corresponding AV2SampleEntry, and an implicit Temporal Delimiter OBU.

NOTE: This specification refers to samples as defined in [ISOBMFF], which are not to be mistaken with samples or sample values as defined in the [AV2] specification.

3.1. General Requirements & Brands

A file conformant to this specification satisfies the following:

3.2. AV2 Sample Entry and Configuration

3.2.1. AV2 Sample Entry

3.2.1.1. Definition

The AV2SampleEntry extends VisualSampleEntry and signals a track carrying AV2 samples. There are two AV2SampleEntry flavours.

abstract class AV2SampleEntry(int codingname) extends VisualSampleEntry(codingname) {
}

class OutOfBandAV2SampleEntry extends AV2SampleEntry('av02') {
    OutOfBandAV2CodecConfigurationBox config;  // Part of VisualSampleEntry's Box other_boxes[];
}

class InBandAV2SampleEntry extends AV2SampleEntry('avI2') {
    InBandAV2CodecConfigurationBox config;  // Part of VisualSampleEntry's Box other_boxes[];
}

NOTE: The third character in the OutOfBandAV2SampleEntry four-character code is an ASCII zero (0x30). The third character in the InBandAV2SampleEntry four-character code is an ASCII uppercase "i" (0x49).

An InBandAV2SampleEntry MAY be used instead of an OutOfBandAV2SampleEntry, if the content of an OBU of a type that may be carried by an OutOfBandAV2CodecConfigurationBox changes during the sequence, and if that sequence cannot be split into multiple OutOfBandAV2SampleEntries. Otherwise, an OutOfBandAV2SampleEntry SHOULD be used.

An OutOfBandAV2SampleEntry SHALL contain an OutOfBandAV2CodecConfigurationBox and an InBandAV2SampleEntry SHALL contain an InBandAV2CodecConfigurationBox. That AV2CodecConfigurationBox SHALL be a direct child box of the AV2SampleEntry.

3.2.1.2. Other Boxes In AV2 Sample Entry

Unless explicitly stated otherwise in the definition of a box, the direct child boxes of an AV2SampleEntry describe the extended layer 0, embedded layer 0 in the associated AV2 bitstream (obu_mlayer_id and obu_xlayer_id set to 0).

Each layer described by a box other than an AV2CodecConfigurationBox in an AV2SampleEntry SHALL be present in the associated AV2 bitstream for the entire track duration and SHALL be output as specified in the Singlestream and Multistream Full bitstream decoding process from Annex F of [AV2].

Extended layer 0, embedded layer 0 in the associated AV2 bitstream SHOULD be present and SHOULD contain playable base content as specified in Annex G of [AV2].

ColourInformationBox:

PixelInformationBox:

NOTE: An AV2SampleEntry may contain additional direct child boxes permitted by [ISOBMFF] for a VisualSampleEntry, such as colr with a colour_type value other than nclx, pasp, clli, mdcv, or btrt. They may be located before and/or after the AV2CodecConfigurationBox.

NOTE: The LayerPropertyContainerBox as defined in the draft of ISOBMFF 14496-12 10th Edition allows for associating other extended layers or other embedded layers with direct or indirect sample entry child boxes.

3.2.2. AV2 Codec Configuration Box

3.2.2.1. Definition

The AV2CodecConfigurationBox carries the decoder initialisation data required to decode the AV2 samples of a track. There are two AV2CodecConfigurationBox flavours.

An AV2CodecConfigurationBox that is the direct child box of an AV2SampleEntry describes all extended layers, embedded layers, and temporal layers in that AV2SampleEntry.

3.2.2.2. Description

A Possibly out-of-band OBU is an OBU of any of the following types:

An In-band OBU is an OBU of any of the following types:

An OutOfBandAV2CodecConfigurationBox MAY carry Possibly out-of-band OBUs. An OutOfBandAV2CodecConfigurationBox SHALL NOT carry In-band OBUs, Temporal Delimiter OBUs, Content Interpretation OBUs, or Padding OBUs.

There SHOULD NOT be any Metadata OBU carried by an OutOfBandAV2CodecConfigurationBox if a codec-agnostic carriage solution exists for that metadata.

The OBUs carried by an OutOfBandAV2CodecConfigurationBox SHALL appear in the order specified by the ordering of OBUs in a temporal unit in [AV2], with the grouped high level syntax block being present.

3.2.2.3. Syntax
abstract class AV2CodecConfigurationBox(int codingname) extends Box(codingname)
{
}

aligned(8) class OutOfBandAV2CodecConfigurationBox extends AV2CodecConfigurationBox('av2C')
{
  bit(4) reserved1 = 0;
  unsigned int(3) version;
  bit(1) atlas_segment_info_obu_support_required;
  unsigned int(8) config_obus_count_minus1;
  for (i = 0; i < config_obus_count_minus1 + 1; ++i) {
    unsigned int(8) config_obu[];
  }
}

aligned(8) class InBandAV2CodecConfigurationBox extends AV2CodecConfigurationBox('av2c')
{
  bit(1) reserved1 = 0;
  unsigned int(3) version;
  bit(1) atlas_segment_info_obu_support_required;
  unsigned int(5) max_profile_idc;
  unsigned int(5) max_level_idx;
  unsigned int(1) max_tier;
}

Editor’s note: The exact fields to carry in InBandAV2CodecConfigurationBox should be studied further.

3.2.2.4. Semantics

reserved1 SHALL be set to 0. Readers SHALL ignore the value of reserved1.

Editor’s note: Should reserved1 be renamed to reserved?

version SHALL be set to 0. Readers SHALL reject the AV2SampleEntry if version is not set to 0.

atlas_segment_info_obu_support_required set to 1 specifies that there is at least one Atlas Segment Info OBU in the associated AV2 bitstream, and that decoder implementations SHALL either reject the AV2SampleEntry or apply all Atlas Segment Info OBUs as described in Section 6.9. and in Annex D of [AV2] at rendering. atlas_segment_info_obu_support_required set to 0 specifies that there is no Atlas Segment Info OBU in the associated AV2 bitstream, or that decoder implementations MAY ignore any Atlas Segment Info OBU.

config_obus_count_minus1 is the number of config_obus minus one.

config_obu is a byte array. Each config_obu SHALL carry a single OBU preceded by a leb128() num_bytes_in_obu value giving the byte length of that OBU, as specified in the Length delimited bitstream format from Annex B of [AV2].

max_profile_idc, max_level_idx, and max_tier specify the maximum profile, level, and tier, respectively, for the coded video sequence. There SHALL NOT be any Sequence Header OBU (respectively Multi Stream Decoder Operation OBU) in the associated AV2 samples whose seq_profile_idc, seq_level_idx, and seq_tier (respectively multistream_profile_idc, multistream_level_idx, and multistream_tier) allow for [AV2] features that are not allowed by max_profile_idc, max_level_idx, and max_tier. For any given AV2 samples, the values of max_profile_idc, max_level_idx, and max_tier SHOULD be as low as possibly valid.

A Sequence Header OBU with seq_profile_idc set to 3 (Main_422_10_IP1) and a Multi Stream Decoder Operation OBU with multistream_profile_idc set to 4 (Main_444_10_IP1) require a max_profile_idc strictly greater than 4 to be conformant, because the profiles 0, 1, 2 and 3 do not support the 4:4:4 chroma format, and the profile 4 does not support the 4:2:2 chroma format.

Editor’s note: for a Multistream bitstream, the AV2CodecConfigurationBox contains a Sequence Header OBU for each extended layer. The impact on multi-layer use cases — including how a reader determines the active decoder configuration per extended layer from multiple Sequence Header OBUs — needs investigation. Also how profile / level is signalled to decoder API for layers. etc.

3.3. AV2 Sample Format

3.3.1. General

The AV2 sample boundary delimits the temporal unit.

Each OBU within a sample SHALL be framed using the Length delimited bitstream format specified in Annex B of [AV2]: each OBU is preceded by a leb128() num_bytes_in_obu field giving the byte length of the OBU that follows. Figure 3.1 illustrates this mapping.

Mapping of AV2 temporal units to ISOBMFF track samples
Figure 3.1: Example mapping of AV2 temporal units into the ISOBMFF sample format.

3.3.2. OBUs in samples

The following applies to a sample associated with an AV2SampleEntry:

The following applies to a sample associated with an OutOfBandAV2SampleEntry:

3.3.3. Content Interpretation OBU

The following container-level signalling is available to replace the semantics of the following Content Interpretation OBU fields:

3.3.4. Redundant information

Figure 3.2 lists fields that can be found at the container level and in the bitstream.

Information Container-level source Bitstream source
Bit depth per channel pixi bits_per_channel Sequence Header OBU bit_depth_idc
Layer Configuration Record OBU lcr_bit_depth_idc
Channel count and types pixi num_channels, channel_idc Sequence Header OBU chroma_format_idc (one or three channels)
Layer Configuration Record OBU lcr_chroma_format_idc, lcr_layer_type, lcr_auxiliary_type (alpha, depth, segmentation, or gain map embedded layer)
Atlas Segment Info OBU ats_msi_alpha_segment_flag (extended layer used for alpha blending during composition)
Operating Point Set OBU ops_intent (alpha, depth, or gain map extended layer)
Chroma format pixi subsampling_type Sequence Header OBU chroma_format_idc
Layer Configuration Record OBU lcr_chroma_format_idc
Profile, level, tier AV2CodecConfigurationBox Sequence Header OBU
Operating Point Set OBU
Multi Stream Decoder Operation OBU
Colour primaries, transfer characteristics, matrix coefficients, full range flag colr with nclx Layer Configuration Record OBU
Operating Point Set OBU
Figure 3.2: Non-exhaustive list of potentially redundant information

NOTE: In AV2, CICP information can also be carried by a Content Interpretation OBU, but this OBU type is forbidden in files conformant to this specification.

3.3.5. Sync sample

An AV2 sample is a sync AV2 sample if, for every coded extended layer unit present in the AV2 sample, the first coded frame OBU of that coded extended layer unit has obu_type equal to OBU_CLOSED_LOOP_KEY. Such an AV2 sample is a Closed Random Access point for the carried bitstream and corresponds to a SAP of type 1 or 2 as defined in Annex I of [ISOBMFF].

A sync AV2 sample SHALL be self-sufficient for starting decoding at that point for all layers: every OBU referenced by the coded frame OBUs of the sync AV2 sample SHALL be available either by being carried in the AV2CodecConfigurationBox of the active AV2SampleEntry or by being present in the sample, as required by the availability of HLS OBUs in [AV2].

NOTE: In ISOBMFF terms, sync samples are signalled using the SyncSampleBox (stss) in unfragmented tracks, or by setting sample_is_non_sync_sample equal to 0 in fragmented tracks. When every sample in a track is a sync sample, the SyncSampleBox is omitted in unfragmented tracks (per [ISOBMFF]), and in fragmented tracks this is expressed through the default sample flags of the MovieExtendsBox (trex) or TrackFragmentHeaderBox (tfhd) with no per-sample override.

3.3.6. Layers

3.3.6.1. Ordering and identification

Codec-agnostic boxes in an AV2SampleEntry may refer to layers or reconstruction points through single-integer identifiers. This section defines how this is mapped to [AV2] layers and operating points.

A layer-identifying integer is considered to contain:

Temporal layers are out of the scope of this mapping.

NOTE: The layer_id field of the LayerSelectorProperty as defined in ISO/IEC 23008-12 (HEIF) is a single integer identifying a layer.

NOTE: The target_id field of the LayerPropertyAssociationBox as defined in the draft of ISOBMFF 14496-12 10th Edition is a single integer identifying a layer when the target_type flag is set to 0.

A reconstruction point-identifying integer is considered to contain:

NOTE: The target_id field of the LayerPropertyAssociationBox as defined in the draft of ISOBMFF 14496-12 10th Edition is a single integer identifying a reconstruction point when the target_type flag is set to 1.

When layer_id_method_idc is set to 1, the target_layers field of the Stream access point sample group as defined in the draft of ISOBMFF 14496-12 9th Edition identifies layers as defined above. When layer_id_method_idc is set to 2, the target_layers field of the Stream access point sample group as defined in the draft of ISOBMFF 14496-12 9th Edition identifies operating points as defined above.

In [AV2], layer and operating point presence may change over time. Signalled layer and reconstruction point identifiers SHALL identify non-empty sets for each sample in the associated track.

3.3.6.2. Channels

In an AV2 sample, the following applies to each layer associated with a pixi box:

Editor’s note: pixi semantics follow the FDIS of [ISOBMFF] 9th edition (Tables 8 and 9) and need re-checking against the published text. Open issues: the component_format value for unsigned integer (ISO/IEC 23001-17); channel_idc for channels with no defined meaning (segmentation, gain map).

3.3.7. AV2 extraction

3.3.7.1. AV2 sample reconstruction

A byte sequence containing a conformant [AV2] Temporal Unit using the Length delimited bitstream format specified in Annex B of [AV2] MAY be reconstructed from the OBUs of an AV2 sample by applying the following steps:

  1. Write a Temporal Delimiter OBU, preceded by its leb128() length prefix.

  2. If there is an OutOfBandAV2CodecConfigurationBox in the corresponding AV2SampleEntry, write the Possibly out-of-band OBUs it carries, in the same order as present in the OutOfBandAV2CodecConfigurationBox, each preceded by its leb128() length prefix as present in the OutOfBandAV2CodecConfigurationBox.

    NOTE: Prepending High-Level Syntax OBUs to each sample corresponds to OBU "availability through external means" as described in the [AV2] specification. It may be unnecessary for non-random-access samples.

  3. If there is an OutOfBandAV2CodecConfigurationBox in the corresponding AV2SampleEntry, discard all Possibly out-of-band OBUs carried in the sample.

    NOTE: As described in § 3.3.2 OBUs in samples, decoders may skip such Possibly out-of-band OBUs in a sample if they are already available through external means (out-of-band). To guarantee the ordering of OBUs in a temporal unit in [AV2], they are always skipped when reconstructing a sample.

  4. Write the remaining OBUs carried in the sample, in the same order as present in the sample, each preceded by its leb128() length prefix as present in the sample.

  5. Optionally insert Content Interpretation OBUs reflecting information signalled at the container level as described in Figure 3.2, each preceded by its leb128() length prefix, at positions in the resulting byte sequence respecting the ordering of OBUs in a temporal unit in [AV2].

3.3.7.2. AV2 bitstream reconstruction

A byte sequence containing a conformant AV2 bitstream using the Length delimited bitstream format specified in Annex B of [AV2] MAY be reconstructed, from all AV2 samples associated with a single AV2SampleEntry, by applying the steps described in § 3.3.7.1 AV2 sample reconstruction for each AV2 sample.

Editor’s note: Is there a specific AV2 sample order to mention here?

A file conformant to this document SHALL lead to the same decoding process output whether a theoretical AV2-ISOBMFF reader implementation reconstruct the contiguous byte sequence containing a conformant AV2 bitstream or Temporal Unit in memory or not upon decoding.

NOTE: Even without reconstruction, two different implementations could lead to slightly different output frames due to inherently non-deterministic aspects of [AV2], such as chroma upsampling and film grain.

3.4. Multitrack and Multilayer

The clauses in this section apply to layers whose presence and association span the whole video sequence, making container-level signalling possible. Decoder implementations SHOULD use [AV2] features such as alpha layers even if they cannot be signalled at the container level because they do not persist for the whole video sequence duration.

NOTE: In the case of an OutOfBandAV2SampleEntry, there cannot be any layer change in the middle of a sequence, so the next clauses fully apply to OutOfBandAV2SampleEntries.

NOTE: In the case of an InBandAV2SampleEntry, layer layout (such as alpha presence or association) may change in the middle of a sequence, and this change may not have been expected at the time where container signalling was written or sent. Decoders should still output alpha information even if temporally sparse and/or not signalled at the container level in the case of an InBandAV2SampleEntry.

3.4.1. Alpha

A decoder implementation SHALL output alpha information stored as an AV2 alpha video track or as an AV2 alpha layer, if the linked or associated colour information is output by the decoder implementation.

NOTE: Alpha information used for blending during composition described by an Atlas Segment Info OBU must not be output alongside the composited output, which is opaque as defined by [AV2].

Colour information SHALL NOT be linked or associated with alpha information more than once in a file conformant with this document.

If there is no linked AV2 alpha video track and no associated AV2 alpha layer, colour information SHALL be output as opaque by decoder implementations conformant with this document.

3.4.1.1. Alpha Video Tracks

An alpha video track is an AV2 alpha video track if it contains an AV2SampleEntry. That AV2SampleEntry SHALL have a direct child pixi box identifying a single channel as alpha, as described in § 3.3.6.2 Channels.

NOTE: An alpha video track uses the auxv handler type and is linked to a colour video track using a reference of type cdsc.

Editor’s note: We study if AV1-AVIF Alpha Image Sequences should be used instead of ISOBMFF alpha video tracks.

3.4.1.2. AV2 Alpha Layers

An [AV2] embedded layer is an AV2 alpha layer if:

An AV2 alpha layer present for the whole track duration SHALL be associated with a pixi box in the associated AV2SampleEntry identifying a single channel as alpha, and SHALL be associated with the TEXTURE_LAYER embedded layer using container-level, codec-agnostic signalling.

NOTE: Since there is no multi-layer pixi and no alpha layer association mechanisms specified in this version of this document based on [ISOBMFF] 9th Edition, encoder implementations conformant to this version of this document cannot output files with any AV2 alpha layer respecting the previous requirement. The previous requirement is aimed at encoder implementations conformant to a future version of this document based on [ISOBMFF] 10th Edition introducing multi-layer description mechanisms.

To preserve backward compatibility in the future, decoder implementations conformant to this version of this document SHALL detect and output AV2 alpha layers solely by looking into the OBUs in the OutOfBandAV2CodecConfigurationBox if any, or into the OBUs in the samples otherwise.

NOTE: A future version of this document based on [ISOBMFF] 10th Edition will permit future decoders to only look at container-level, codec-agnostic boxes to retrieve alpha presence information, because codec-level alpha presence requires container-level signalling in conformant files. Decoders conformant to this version of this document will render these files the same way as future decoders, but will have to retrieve the information from the OBUs instead.

NOTE: Encoder implementations conformant to this version of this document can still output files with an AV2 alpha layer that will work with decoder implementations conformant to this version of this document, but these files may render as opaque with decoder implementations conformant to a future version of this document, or be rejected by future conformance verifiers.

3.4.2. Colour Spaces With More Than Three Channels

If an AV2SampleEntry contains a direct child pixi box containing no channel_idc set to 7 ("Fourth colour channel (e.g. K)"), there SHALL NOT be any other pixi box containing a channel_idc set to 7 in that AV2SampleEntry.

NOTE: The draft of [ISOBMFF] 10th Edition introduces multi-layer description mechanisms. This section makes sure decoders conformant to this version of this document will not silently render CMYK as CMY, but will encounter K first and may decide to reject the file instead.

3.4.3. AV2 Enhancement Layers

Decoder implementations conformant to this version of this document MAY detect and output enhancement layers (such as temporal layers) solely by looking into the OBUs in the OutOfBandAV2CodecConfigurationBox if any, or into the OBUs in the samples otherwise. Decoder implementations conformant to this version of this document MAY ignore enhancement layers.

3.4.4. AV2 Depth And Segmentation Layers

Decoder implementations conformant to this version of this document MAY detect and output depth layers, respectively segmentation layers, solely by looking into the OBUs in the OutOfBandAV2CodecConfigurationBox if any, or into the OBUs in the samples otherwise, for a Layer Configuration Record OBU identifying an embedded layer with lcr_auxiliary_type set to DEPTH_AUX, respectively set to SEGMENTATION_AUX. Decoder implementations conformant to this version of this document MAY ignore depth layers and segmentation layers.

NOTE: GAIN_MAP_AUX layers are not mentioned in this version of this document because there is no gain map metadata carriage mechanism defined in [AV2] and in [ISOBMFF] (gain map metadata tells readers how to interpret the gain map data in tracks, like `tmap` does but for items).

↑ Back to Table of Contents

4. CMAF AV2 track format

[CMAF] defines structural constraints on ISOBMFF files additional to [ISOBMFF] for the purpose of, for example, adaptive streaming or for protected files. Conformance to these structural constraints is signaled by the presence of the brands cmfc or cmf2 in the FileTypeBox.

NOTE: It is important to note that while the cmf2 brand does not introduce any new requirements compared to the previously defined cmfc brand, it further restricts the cmfc constraints.

For compatibility reasons, when the cmf2 brand is used, the cmfc brand SHOULD also be included in the FileTypeBox.

If a CMAF Video Track uses the brand av02, it is called a CMAF AV2 Track and the following constraints, defining the CMAF Media Profile for AV2, apply:

When protected, CMAF AV2 Tracks SHALL use the signaling defined in [CMAF], which in turn relies on [CENC], with the provisions specified in § 5 Common Encryption.

↑ Back to Table of Contents

5. Common Encryption

CMAF AV2 Tracks and non-segmented AV2 files MAY be protected. If protected, they SHALL conform to [CENC]. Files SHOULD be protected using the cbcs protection scheme and MAY be protected using the cenc protection scheme.

When the protected scheme cenc is used, samples SHALL be protected using subsample encryption and SHALL NOT use pattern encryption.

When the protected scheme cbcs is used, samples SHALL be protected using subsample encryption and SHALL use pattern encryption. [CENC] recommends that the Block Pattern length be 10, i.e. crypt_byte_block + skip_byte_block = 10, where a Block is of size 16 bytes. In this specification, the combination of crypt_byte_block and skip_byte_block SHALL be one of the following, with the first one being recommended:

Version 1 and version 2 of the saiz box as defined in [ISOBMFF] SHALL be supported.

5.1. General Subsample Encryption constraints

Within protected samples, the following constraints apply:

↑ Back to Table of Contents

6. Codecs Parameter String

DASH and other applications require defined values for the Codecs parameter specified in [RFC6381] for ISO Media tracks. The codecs parameter string for the AOM AV2 codec is as follows:

<sample_entry_4cc>.<max_profile_idc><max_level_idx><max_tier>

The max_profile_idc, max_level_idx, and max_tier parameters have the same semantics as described in § 3.2.2.4 Semantics, and the associated AV2 bitstream SHALL respect the same constraints.

codecs="av02.00M" represents [AV2] Main_420_10_IP0 profile at Interoperability Point 0, level 2.0, Main tier.
codecs="avI2.4AH" represents [AV2] Main_444_10_IP1 profile at Interoperability Point 2, level 6.0, High tier.

All parameters are mandatory fields. If any of these fields is empty, or not within its allowed range, the processing device SHOULD treat it as an error.

Index

Terms defined by this specification

Terms defined by reference

References

Normative References

[23001-17]
Information technology — MPEG systems technologies — Part 17: Carriage of uncompressed video and images in ISO base media file format. Standard. URL: https://www.iso.org/standard/89120.html
[AV2]
AV2 Bitstream & Decoding Process Specification. Standard. URL: https://av2.aomedia.org/v1.0.0/index.html
[CENC]
Information technology — MPEG systems technologies — Part 7: Common encryption in ISO base media file format files. Standard. URL: https://www.iso.org/standard/84637.html
[CMAF]
Information technology — Multimedia application format (MPEG-A) — Part 19: Common media application format (CMAF) for segmented media. Standard. URL: https://www.iso.org/standard/71975.html
[ISOBMFF]
Information technology — Coding of audio-visual objects — Part 12: ISO base media file format. Standard. URL: https://www.iso.org/standard/95141.html
[RFC2119]
Key words for use in RFCs to Indicate Requirement Levels. Standard. URL: https://www.rfc-editor.org/info/rfc2119
[RFC6381]
R. Gellens; D. Singer; P. Frojdh. The 'Codecs' and 'Profiles' Parameters for "Bucket" Media Types. August 2011. Proposed Standard. URL: https://www.rfc-editor.org/info/rfc6381/
[RFC8174]
Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words. Standard. URL: https://www.rfc-editor.org/info/rfc8174