22
Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016

Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

Embed Size (px)

Citation preview

Page 1: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

Dolby Vision streamswithin the ISO basemedia file format v1.3

Preliminary 25 March 2016

Page 2: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

Contents

1.1 Copyright 3

1.2Trademarks 4

1 Introduction 51.1 Dolby Vision encoding 51.2 Dolby Vision stream multiplexing in ISO base media file format 51.3 Standards and Dolby documents 61.4 Contacting Dolby 7

2 Boxes for signaling Dolby Vision streams in ISO base media file format 82.1 Box hierarchy overview 82.2 Dolby Vision configuration box 92.3 Dolby Vision EL AVC and HEVC configuration box 112.4 Dolby Vision sample entries 112.5 Dolby Vision AVC-compatible sample entry 132.6 File type box 14

3 Dolby Vision stream configuration and signaling within an ISO base media file153.1 Single-track Dolby Vision stream 15

3.1.1 SDR compliant base-layer Dolby Vision stream 153.1.2 Non-SDR compliant base-layer Dolby Vision stream 16

3.2 Dual-track Dolby Vision stream 183.2.1 SDR compliant base-layer Dolby Vision track 183.2.2 Non-SDR compliant base-layer Dolby Vision track 183.2.3 Enhancement-layer Dolby Vision track 19

4 Constraints on the ISO base media file 214.1 Constraints on movie fragments 214.2 Constraints on track fragment random access box 21

Glossary 22

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 2

Page 3: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

Copyright© 2016 Dolby Laboratories. All rights reserved. Unauthorized use, sale, or duplication isprohibited. This document is provided solely for informational purposes, and Dolby makes norepresentations or warranties as to the contents herein. Nothing in this documentconstitutes a license to practice Dolby Vision, or any particular standard, such as HEVC orAVC, and licenses from Dolby and/or third parties may be required to make or sell productsdescribed in the document.

For information, contact:

Dolby Laboratories, Inc.1275 Market StreetSan Francisco, CA 94103-1410 USATelephone 415-558-0200Fax 415-863-1373http://www.dolby.com

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 3

Page 4: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

TrademarksDolby and the double-D symbol are registered trademarks of Dolby Laboratories.

The following are trademarks of Dolby Laboratories:

Dialogue Intelligence™

Dolby®

Dolby Advanced Audio™

Dolby Atmos®

Dolby Audio™

Dolby Cinema™

Dolby Digital Plus™

Dolby Digital Plus Advanced Audio™

Dolby Digital Plus Home Theater™

Dolby Home Theater®

Dolby Theatre®

Dolby Vision™

Dolby Voice®

Feel Every Dimension™

Feel Every Dimension in Dolby™

Feel Every Dimension in Dolby Atmos™

MLP Lossless™

Pro Logic®

Surround EX™

All other trademarks remain the property of their respective owners.

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 4

Page 5: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

1 IntroductionThis document specifies the required data structures for storage of Dolby Vision streams in afile format compliant with the ISO base media file format.

• Dolby Vision encoding• Dolby Vision stream multiplexing in ISO base media file format• Standards and Dolby documents• Contacting Dolby

Example file formats derived from the ISO base media file format include the DigitalEntertainment Content Ecosystem (DECE) Common File Format (CFF), ProtectedInteroperable File Format (PIFF), and MP4 file format.

1.1 Dolby Vision encodingDolby Vision video content can be encoded in one single layer or two separate layers alongwith Dolby Vision metadata. Both schemes allow the format to deliver more dynamic rangeand a wider color gamut, while providing backward compatibility with standard dynamicrange (SDR) playback devices in some of the dual-layer cases.

When encoded using the dual-layer scheme, the Dolby Vision stream consists of a base layer,an enhancement layer, and a reference picture unit.

• The base layer may or may not be SDR compliant (that is, compliant with ITU-RRecommendation BT.709 [Rec. 709] standards). When compliant with Rec. 709 standards,the base layer offers backward compatibility, allowing playback of Dolby Vision streamsfrom SDR-compliant devices that do not support Dolby Vision.

• The enhancement layer carries the color and brightness differences between the gradedsource (that is, source that is graded to Dolby Vision standards) and base layer version ofthe source.

• The reference picture unit is a aspecial Network Abstraction Layer (NAL) unit that containsthe Dolby Vision metadata. It is also a complete Dolby Vision metadata access unit for thecurrent picture.

For a dual-layer Dolby Vision stream, these layers are encoded in either one or two videoelementary streams. The video elementary stream codec is either Advanced Video Coding(AVC) or High-Efficiency Video Coding (HEVC), as defined in ISO/IEC 14496-10, ISO/IEC14496-15, and ISO/IEC 23008-2.

When encoded using the single-layer scheme, the Dolby Vision stream consists of the baselayer and reference picture unit only (without the enhancement layer) and is encoded in one10-bit HEVC elementary stream. Because the base layer in this case is not SDR compliant, thesingle-layer scheme does not offer backward compatibility.

For detailed information, refer to the Dolby Vision VES multiplexing specification.

1.2 Dolby Vision stream multiplexing in ISO basemedia file formatA Dolby Vision stream can be transported in an ISO base media file format stream using asingle or dual track scheme.

1.1 Dolby Vision encoding

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 5

Page 6: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

For transmission in a single track, the base-layer, enhancement-layer if available, andreference-picture-unit substreams are combined into a single Dolby Vision stream. ThisDolby Vision stream is used as input for encoding of a regular AVC or HEVC elementarystream (using the T-STD model). The resulting elementary stream can be multiplexed on asingle Dolby Vision track in ISO base media file format.

For transmission in two tracks, the base layer, enhancement layer, and reference picture unitsubstreams are carried on two separate tracks. The base layer substream is directly encodedas a regular AVC or HEVC elementary stream (using the T-STD model) which is in turnmultiplexed into one video track. The enhancement layer and reference picture unitsubstreams can be combined as input for encoding of a regular AVC or HEVC elementarystream (using the T-STD model). The resulting elementary stream can be multiplexed into aseparate video track. These two tracks are encapsulated in a single ISO base media file.

Note: DECE CFF v2.0 permits single video track only, therefore use the single-track DolbyVision stream for that format.

There are two types of Dolby Vision stream configuration: a dual-layer Dolby Vision streamand a single-layer Dolby Vision stream. A dual-layer Dolby Vision stream is composed of boththe base-layer and enhancement-layer substreams (and a reference-picture-unit substream).A single-layer Dolby Vision stream is composed of the base-layer and reference-picture-unitsubstreams only, without the enhancement layer.

A dual-layer or single-layer Dolby Vision stream can be multiplexed into a single track. A dual-layer Dolby Vision stream can also be multiplexed into two separate tracks. A single-layerDolby Vision stream can be multiplexed only into a single track.

In either stream configuration, the base-layer substream is compliant with ISO/IEC 14496-10,ISO/IEC 14496-15, and ISO/IEC 23008-2 and decodable by an AVC or HEVC–compliant decoder.Depending on whether or not the output of the decoder is an SDR signal, a Dolby Visionstream can be defined as an SDR or non-SDR-compliant stream, respectively.

For detailed information about the multiplexing process, refer to the Dolby Vision VESMultiplexing Specification.

1.3 Standards and Dolby documentsStandards and Dolby documents provide additional information to assist you in designingyour product.

Standards• ISO/IEC 14496-12:2012, Information technology—Coding of audio-visual objects, part 12:

ISO base media file format, available from http://www.iso.org. This document is Part 12 ofthe MPEG-4 specification and describes storage of content in a media file.

• ISO/IEC 14496-15:2014, Information technology—Coding of audio-visual objects, part 15:Carriage of network abstraction layer (NAL) unit structured video in ISO base media fileformat, available from http://www.iso.org.

• ISO/IEC 14496-10:2009, Information technology—Coding of audio-visual objects, part 10:Audio, available from http://www.iso.org.

• ISO/IEC 23008-2:2013, Information technology—High efficiency coding and mediadelivery in heterogeneous environments, part 2: High efficiency video coding, availablefrom http://www.iso.org.

Dolby documents• Dolby Vision Video Elementary Stream multiplexing specification

(dovi_proenc_ves_muxing_spec.pdf), located in the documentation package of the kit.

1.3 Standards and Dolby documents

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 6

Page 7: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

• Dolby Vision decoder specification, located in the documentation package of the kit.

• Dolby Vision profiles and levels, version 1.2.6 (DolbyVisionProfilesLevels.pdf), located inthe documentation package of the kit.

1.4 Contacting DolbySupport services are available to address any questions and to provide advice aboutintegrating Dolby technology into your product.

For product design or testing, contact Dolby at [email protected]. By utilizing Dolbyexpertise, especially during the design process, many problems that might require designrevisions before a product is approved can be prevented.

Dolby is also available to review product plans, including preliminary design information,markings, displays, and control and menu layouts, with the goal of preventing problemsearly in the product development cycle.

If you have comments or feedback about this document, send us an email at [email protected].

1.4 Contacting Dolby

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 7

Page 8: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

2 Boxes for signaling Dolby Visionstreams in ISO base media fileformatDolby Vision stream is encoded as a regular AVC or HEVC stream. In addition to AVC or HEVCboxes, Dolby Vision specific information is signaled using additional boxes specified forDolby Vision.

• Box hierarchy overview• Dolby Vision configuration box• Dolby Vision EL AVC and HEVC configuration box• Dolby Vision sample entries• Dolby Vision AVC-compatible sample entry• File type box

2.1 Box hierarchy overviewAn ISO base media file that contains Dolby Vision stream is expected to be structuredconforming to this document.

This table lists all possible boxes that can be used for signaling either a single or dual-trackDolby Vision stream, and shows an overall view of the box encapsulation structure;indentation is used to show containment. Which boxes to be included in the sampledescription box (stsd) depends on the configuration of the Dolby Vision stream, for detailedinformation, see Dolby Vision stream configuration and signaling within an ISO base mediafile section.

Nesting Level

4 5 6 7

stbl

stsd

2.1 Box hierarchy overview

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 8

Page 9: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

Nesting Level

4 5 6 7

One of:

• DolbyVisionAVC3SampleEntry(dvav)

• DolbyVisionAVC1SampleEntry(dva1)

• DolbyVisionHEV1SampleEntry(dvhe)

• DolbyVisionHVC1SampleEntry(dvh1)

• DolbyVisionAVCCompatibleSampleEntry (avc1)

• DolbyVisionAVCCompatibleSampleEntry (avc3)

• AVC2SampleEntry (avc2)

• AVC2SampleEntry (avc4)

• HEVCSampleEntry (hev1)

One of:

• AVC Configuration Box (avcC)

• HEVC Configuration Box (hvcC)

Dolby Vision Configuration Box (dvcC)

One of:

• Dolby Vision EL AVC (avcE)

• HEVC Configuration Box (hvcE)

stts

stsc

stsz

stz2

stco

co64

In the table, the value of the nesting level provided for each box is based on the structure ofthe complete ISO base media file, beginning with a nesting value of 0 for the ftyp and moovboxes.

Related information

Dolby Vision stream configuration and signaling within an ISO base media file on page 15

2.2 Dolby Vision configuration boxAn ISO base media file that carries Dolby Vision stream must contain a Dolby Visionconfiguration box which signals the configuration information about the contained DolbyVision stream. The configuration information is required to initialize the Dolby Visiondecoder.

2.2 Dolby Vision configuration box

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 9

Page 10: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

DefinitionBox type dvcC

Possible container One of: *

• DolbyVisionAVC3SampleEntry (dvav)

• DolbyVisionAVC1SampleEntry (dva1)

• DolbyVisionHEV1SampleEntry ( dvhe)

• DolbyVisionHVC1SampleEntry ( dvh1)

• DolbyVisionAVCCompatibleSampleEntry (avc1 or avc3)

• AVC2SampleEntry (avc2 or avc4)

• HEVCSampleEntry (hev1)

Mandatory Yes

Quantity Exactly One

* Which visual sample entry to use depends on the configuration of the Dolby Vision stream.

SyntaxThe syntax of the Dolby Vision configuration box is described below.

align(8) class DOVIDecoderConfigurationRecord { unsigned int (8) dv_version_major; unsigned int (8) dv_version_minor; unsigned int (7) dv_profile; unsigned int (6) dv_level; bit (1) rpu_present_flag; bit (1) el_present_flag; bit (1) bl_present_flag; const unsigned int (32)[5] reserved = 0;}class DOVIConfigurationBox extends Box(‘dvcC’) { OVIDecoderConfigurationRecord() DOVIConfig; }

SemanticsThe semantics of the Dolby Vision configuration box is described below.

dv_version_majorSpecifies the major version number of the Dolby Vision specification that the streamcomplies with. For a stream compliant with this specification, set the value to 1.

dv_version_minorSpecifies the minor version number of the Dolby Vision specification that the streamcomplies with. For a stream compliant with this specification, set the value to 0.

dv_profileSpecifies the Dolby Vision profile. Valid values are profile IDs as defined in Dolby Visionprofiles and levels.

dv_levelSpecifies the Dolby Vision level. Valid values are level IDs as defined in Dolby Visionprofiles and levels.

2.2 Dolby Vision configuration box

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 10

Page 11: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

rpu_present_flagFor a track that contains the reference picture unit substream, set the value to 1.

el_present_flagFor a track that contains the enhancement layer substream, set the value to 1.

bl_present_flagFor a track that contains the base layer substream, set the value to 1.

2.3 Dolby Vision EL AVC and HEVC configuration boxThe Dolby Vision EL AVC and HEVC configuration box (DolbyVisionELAVCConfigurationBox andDolbyVisionELHEVCConfigurationBox) extends the AVC and HEVC configuration boxrespectively to signal the Dolby Vision enhancement-layer substream information for single-track Dolby Vision streams.

DefinitionBox type avcE or hvcE

Possible container One of: *

• DolbyVisionAVC3SampleEntry (dvav)

• DolbyVisionAVC1SampleEntry (dva1)

• DolbyVisionHEV1SampleEntry ( dvhe)

• DolbyVisionHVC1SampleEntry ( dvh1)

• DolbyVisionAVCCompatibleSampleEntry (avc1 or avc3)

• AVC2SampleEntry (avc2 or avc4)

• HEVCSampleEntry (hev1)

Mandatory No

Quantity Zero or one

* Which visual sample entry to use depends on the configuration of the Dolby Vision stream.

SyntaxThe syntax of the Dolby Vision EL AVC configuration box is described below.

class DolbyVisionELAVCConfigurationBox() extends Box(‘avcE’) { AVCDecoderConfigurationRecord() AVCConfig; }

The syntax of the Dolby Vision EL HEVC configuration box is described below.

class DolbyVisionELHEVCConfigurationBox() extends Box(‘hvcE’) { HEVCDecoderConfigurationRecord() HEVCConfig; }

2.4 Dolby Vision sample entriesAn ISO base media file carrying Dolby Vision stream that contains non-SDR compliant base-layer must contain an appropriate Dolby Vision sample entry box.

2.3 Dolby Vision EL AVC and HEVC configuration box

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 11

Page 12: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

DefinitionBox type One of: *

• dvav (DolbyVisionAVC3SampleEntry)

• dva1 (DolbyVisionAVC1SampleEntry)

• dvhe (DolbyVisionHEV1SampleEntry)

• dvh1 (DolbyVisionHVC1SampleEntry)

Possible container Sample Description Box (stsd)

Mandatory Yes

Quantity One or more sample entries of the same box type may be present.

* Which visual sample entry to use depends on the configuration of the Dolby Vision stream.

SyntaxThe syntax of the Dolby Vision sample entries are described below.

class DolbyVisionAVC3SampleEntry() extends AVCSampleEntry(‘dvav’){ DOVIConfigurationBox() config; DolbyVisionELAVCConfigurationBox() ELConfig; // optional }

class DolbyVisionAVC1SampleEntry() extends AVCSampleEntry(‘dva1’){ DOVIConfigurationBox() config; DolbyVisionELAVCConfigurationBox() ELConfig; // optional }

class DolbyVisionHEVCSampleEntry() extends HEVCSampleEntry(‘dvhe’){ DOVIConfigurationBox() config; DolbyVisionELHEVCConfigurationBox() ELConfig; // optional }

class DolbyVisionHVC1SampleEntry() extends HEVCSampleEntry(‘dvh1’){ DOVIConfigurationBox() config; DolbyVisionELHEVCConfigurationBox() ELConfig; // optional }

SemanticsA Dolby Vision AVC or HEVC sample entry contains:

• An AVC or HEVC configuration box (avcC or hvcC)

• An Dolby Vision configuration box (dvcC)

• An optional Dolby Vision EL AVC or HEVC configuration box (avcE or hvcE)

The semantics of the Dolby Vision sample entries are described below.

configFor a single-track Dolby Vision stream, this box specifies the base-layer configurationinformation. For a dual-track Dolby Vision stream, this box specifies the enhancement-

2.4 Dolby Vision sample entries

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 12

Page 13: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

layer configuration information. This information is required to initialize the Dolby Visiondecoder.

ELConfig

For a single-track Dolby Vision stream, this optional box specifies the enhancement-layerconfiguration information required to initialize the Dolby Vision decoder for theenhancement-layer substream. If this box is absent from the Dolby Vision single track,the downstream decoding product may extract information from the mdat box directly.

For a dual-track Dolby Vision stream, this box must not be included in the Dolby Visionstream.

CompressornameIndicates the name of the compressor used for encoding. We recommend setting thevalue to \013DOVI Coding. \013 is an octal representation of 11, indicating the length ofthe string DOVI coding in bytes).

2.5 Dolby Vision AVC-compatible sample entryThe Dolby Vision AVC-compatible sample entry extends the AVC sample entry. An ISO basemedia file carrying Dolby Vision stream that contains SDR compliant base-layer must use thisbox.

DefinitionBox type avc1 or avc1 (DolbyVisionAVCCompatibleSampleEntry)

Possible container Sample Description Box (stsd)

Mandatory Yes

Quantity One or more sample entries of the same box type may be present.

SyntaxThe syntax of the Dolby Vision AVC-compatible sample entry is described below.

class DolbyVisionAVCCompatibleSampleEntry() extends AVCSampleEntry(){ DOVIConfigurationBox() config; DolbyVisionELAVCConfigurationBox() ELConfig; }

SemanticsA Dolby Vision AVC-compatible sample entry contains:

• An AVC configuration box (avcC or hvcC)

• An Dolby Vision configuration box (dvcC)

• An optional Dolby Vision EL AVC configuration box (avcE)

The semantics of the Dolby Vision sample entries are described below.

configSpecifies the configuration information required to initialize the Dolby Vision decoder forthe base-layer substream in a single-track Dolby Vision stream encoded as an AVC orHEVC elementary stream.

2.5 Dolby Vision AVC-compatible sample entry

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 13

Page 14: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

ELConfigSpecifies the configuration information required to initialize the Dolby Vision decoder forthe enhancement-layer substream in a single-track Dolby Vision stream encoded as anAVC or HEVC elementary stream.

CompressornameIndicates the name of the compressor used for encoding. We recommend setting thevalue to \013DOVI Coding. \013 is 11, representing the length of the string DOVI coding inbytes).

2.6 File type boxAn ISO base media file that contains the Dolby Vision stream must indicate that the filecomplies with the Dolby Vision extensions by using the file type box (ftyp).

In the file type box (ftyp):

• Set the value of the compatible_brands field to dby1

• Set the value of the major_brand field to the ISO-defined brand, for example, iso6

2.6 File type box

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 14

Page 15: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

3 Dolby Vision stream configurationand signaling within an ISO basemedia fileThe Dolby Vision-related boxes must be set correctly to signal the configuration of a DolbyVision stream transported in an generic ISO base media file. The box settings are also subjectto whether the Dolby Vision base-layer is SDR compliant or not.

• Single-track Dolby Vision stream• Dual-track Dolby Vision stream

3.1 Single-track Dolby Vision streamThe base layer, enhancement layer, and reference picture unit substreams can be combinedinto a single elementary stream for transmission on a single Dolby Vision track in an ISO basemedia file. The combo Dolby Vision stream is carried as a regular AVC or HEVC stream.

3.1.1 SDR compliant base-layer Dolby Vision streamConfigure boxes to signal the single-track Dolby Vision stream that contains the SDRcompliant base layer.

For a single-track Dolby Vision stream:

• Include a Dolby Vision configuration box (dvcC) in the visual sample entry, and set thesefields.

• Set the rpu_present_flag field to 1.

• If the track contains an enhancement-layer substream, set the el_present_flag fieldto 1; if the track is reference picture unit-only substream with no enhancement-layersubstream present, set the el_present_flag field to 0.

• Set the bl_present_flag field to 1.

• Set the dv_profile field according to the encoded Dolby Vision profile. For valid valuesfor this fields, see Dolby Vision Profiles and Levels.

• Set the dv_level field according to the encoded Dolby Vision level. For valid values forthis fields, see Dolby Vision Profiles and Levels.

• If the single-track Dolby Vision stream is encoded in an HEVC-compatible elementarystream, included these additional boxes:

• HEVCSampleEntry (hev1 or hvc1)

• HEVC configuration box (hvcC)

• Dolby Vision EL HEVC configuration box (hvcE)

• If the single-track Dolby Vision stream is encoded in an AVC-compatible elementarystream, included these additional boxes:

• DolbyVisionAVCCompatibleSampleEntry(avc1 or avc3) or AVC2SampleEntry(avc2 oravc4)

• AVC configuration box (avcC)

3.1 Single-track Dolby Vision stream

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 15

Page 16: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

• Dolby Vision EL AVC configuration box (avcE)

The locations and hierarchy of the boxes that must be included in the stbl box to signal thesingle-track Dolby Vision stream within an ISO base media file are listed in the table.

Nesting Level

4 5 6 7

stbl

stsd

One of:

• avc1

• avc3

• avc2

• avc4

• hev1

• hvc1

One of:

• avcC

• hvcC

• dvcC

One of:

• avcE

• hvcE

stts

stsc

stsz

stz2

stco

co64

If you need the ISO base media file to be compliant with DECE CFF v2.0, set the visual sampleentry to avc3 or hev1 as needed.

3.1.2 Non-SDR compliant base-layer Dolby Vision streamConfigure boxes to signal the single-track Dolby Vision stream that contains the non-SDRcompliant base layer.

For a single-track Dolby Vision stream:

• Include a Dolby Vision configuration box (dvcC) in the visual sample entry, and set thesefields.

• Set the rpu_present_flag field to 1.

• If the track contains an enhancement-layer substream, set the el_present_flag fieldto 1; if the track is reference picture unit-only substream with no enhancement-layersubstream present, set the el_present_flag field to 0.

3.1 Single-track Dolby Vision stream

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 16

Page 17: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

• Set the bl_present_flag field to 1.

• Set the dv_profile field according to the encoded Dolby Vision profile. For valid valuesfor this fields, see Dolby Vision Profiles and Levels.

• Set the dv_level field according to the encoded Dolby Vision level. For valid values forthis fields, see Dolby Vision Profiles and Levels.

• In the handler reference box, set the handler_type field to vide.

• Make sure that the media information header box contain a video media header box.

• If the single-track Dolby Vision stream is encoded in an HEVC-compatible elementarystream, included these additional boxes:

• HEVCSampleEntry (hev1)

• HEVC configuration box (hvcC)

• Dolby Vision EL HEVC configuration box (hvcE)

• If the single-track Dolby Vision stream is encoded in an AVC-compatible elementarystream, included these additional boxes:

• DolbyVisionAVCCompatibleSampleEntry(avc1 or avc3) or AVC2SampleEntry(avc2 oravc4)

• AVC configuration box (avcC)

• Dolby Vision EL AVC configuration box (avcE)

The locations and hierarchy of the boxes that must be included in the stbl box to signal thesingle-track Dolby Vision stream within an ISO base media file are listed in the table.

Nesting Level

4 5 6 7

stbl

stsd

One of:

• dvav

• dva1

• dvhe

• dvh1

One of:

• avcC

• hvcC

• dvcC

One of:

• avcE

• hvcE

stts

stsc

stsz

3.1 Single-track Dolby Vision stream

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 17

Page 18: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

Nesting Level

4 5 6 7

stz2

stco

co64

3.2 Dual-track Dolby Vision streamA Dolby Vision stream can be transported on two separate tracks in an ISO base media file,with the base layer substream on one track, the enhancement layer and reference pictureunit substreams packaged together on another track. Each track has its own sampledescription table.

3.2.1 SDR compliant base-layer Dolby Vision trackIf the Dolby Vision base-layer track is SDR compliant, signal the track as a regular AVC orHEVC video track.

Set the visual sample entry to avc3 or hev1 to be compliant with DECE CFF v2.0.

3.2.2 Non-SDR compliant base-layer Dolby Vision trackIf the Dolby Vision base-layer track is not SDR compliant, configure boxes to signal the base-layer track.

For the Non-SDR compliant base-layer track of a dual-track Dolby Vision stream:

• Include a Dolby Vision configuration box (dvcC) in the visual sample entry, and set thesefields.

• Set the rpu_present_flag field to 0.

• Set the el_present_flag field to 0.

• Set the bl_present_flag field to 1.

• Set the dv_profile field according to the encoded Dolby Vision profile. For valid valuesfor this fields, see Dolby Vision Profiles and Levels.

• Set the dv_level field according to the encoded Dolby Vision level. For valid values forthis fields, see Dolby Vision Profiles and Levels.

• In the handler reference box, set the handler_type field to vide.

• Make sure that the media information header box contain a video media header box.

• If the dual-track Dolby Vision stream is encoded in an HEVC-compatible elementarystream, included these additional boxes:

• DolbyVisionHVC1SampleEntry (dvh1) or DolbyVisionHEV1SampleEntry (dvhe)

• HEVC configuration box (hvcC)

• If the dual-track Dolby Vision stream is encoded in an AVC-compatible elementary stream,included these additional boxes:

• DolbyVisionAVC3SampleEntry (dvav) or DolbyVisionAVC1SampleEntry (dva1)

• AVC configuration box (avcC)

3.2 Dual-track Dolby Vision stream

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 18

Page 19: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

Note: The Dolby Vision EL AVC or HEVC configuration box (avcE or hvcE) must not bepresent.

The locations and hierarchy of the boxes that must be included in the stbl box to signal thesingle-track Dolby Vision stream within an ISO base media file are listed in the table.

Nesting Level

4 5 6 7

stbl

stsd

One of:

• dvav

• dva1

• dvhe

• dvh1

• avcC

• hvcC

• dvcC

stts

stsc

stsz

stz2

stco

co64

3.2.3 Enhancement-layer Dolby Vision trackThe enhancement-layer track is not SDR compliant. Configure box fields to signal theenhancement-layer track.

For the enhancement-layer track of a dual-track Dolby Vision stream:

• Include a Dolby Vision configuration box (dvcC) in the visual sample entry, and set thesefields.

• Set the rpu_present_flag field to 1.

• If the track contains an enhancement-layer substream, set the el_present_flag fieldto 1; if the track is reference picture unit-only substream with no enhancement-layersubstream present, set the el_present_flag field to 0.

• Set the bl_present_flag field to 0.

• Set the dv_profile field according to the encoded Dolby Vision profile. For valid valuesfor this fields, see Dolby Vision Profiles and Levels.

• Set the dv_level field according to the encoded Dolby Vision level. For valid values forthis fields, see Dolby Vision Profiles and Levels.

• In the handler reference box, set the handler_type field to vide.

• Make sure that the media information header box contain a video media header box.

3.2 Dual-track Dolby Vision stream

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 19

Page 20: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

• In the track reference box (tref), set the reference_type field to vdep.

• If the dual-track Dolby Vision stream is encoded in an HEVC-compatible elementarystream, included these additional boxes:

• DolbyVisionHVC1SampleEntry (dvh1) or DolbyVisionHEV1SampleEntry (dvhe)

• HEVC configuration box (hvcC)

• If the dual-track Dolby Vision stream is encoded in an AVC-compatible elementary stream,included these additional boxes:

• DolbyVisionAVC3SampleEntry (dvav) or DolbyVisionAVC1SampleEntry (dva1)

• AVC configuration box (avcC)

Note: The Dolby Vision EL AVC or HEVC configuration box (avcE or hvcE) must not bepresent.

The locations and hierarchy of the boxes that must be included in the stbl box to signal thesingle-track Dolby Vision stream within an ISO base media file are listed in the table.

Nesting Level

4 5 6 7

stbl

stsd

One of:

• dvav

• dva1

• dvhe

• dvh1

One of:

• avcC

• hvcC

• dvcC

stts

stsc

stsz

stz2

stco

co64

3.2 Dual-track Dolby Vision stream

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 20

Page 21: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

4 Constraints on the ISO base mediafileAn ISO base media file that carries the Dolby Vision stream must meet certain conditions toensure the correct operation of a downstream Dolby Vision decoding device.

• Constraints on movie fragments• Constraints on track fragment random access box

4.1 Constraints on movie fragmentsFor an ISO base media file that carries the Dolby Vision stream on two separate tracks, theseconstraints on the movie fragments must be met.

• Enhancement-layer and base-layer samples must be placed in separate movie fragments.When interleaved, each base-layer movie fragment must be immediately followed by anenhancement-layer movie fragment. The adjacent movie fragments (consisting of moofand mdat) must have the same number of samples with identical compositiontimestamps.

• The track fragment run box (trun) for the base-layer and enhancement-layer track mustcontain the same number of samples.

4.2 Constraints on track fragment random accessboxThe track fragment random access box (tfra) for the base-layer and enhancement-layertrack must conform to ISO/IEC 14496-12 and must meet this additional constraint.

The value of the time field in the track fragment random access box indicates thepresentation time of a random accessible sample. This time value must be identical for everycorresponding random accessible sample in the base-layer and enhancement-layer track.

4.1 Constraints on movie fragments

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 21

Page 22: Dolby Vision streams within the ISO base media file format v1 · Dolby Vision streams within the ISO base media file format v1.3 Preliminary 25 March 2016 4. 1 Introduction This document

GlossaryAVC

Advanced Video Coding. See H.264.

CFFCommon File Format. A file format that is part of the UltraViolet digital rightsmanagement system. This format is based on the ISO base file format, and ensures thata consistent set of codecs, media formats, subtitling, and other kinds of data are usedacross the whole UltraViolet ecosystem. The Common File Format uses the .uvu fileextension.

DECEDigital Entertainment Content Ecosystem.

HEVCHigh-Efficiency Video Coding. See H.265.

MPEGMoving Picture Experts Group. An ISO/IEC working group that develops video and audioencoding standards. Also the name of a family of digital video and audio codingstandards.

MPEG‑4An MPEG standard (ISO/IEC 14496) for a group of audio and video coding formats andrelated technologies.

PIFFProtected Interoperable File Format. A standard multimedia file format for delivery andplayback of multimedia content. Protected Interoperable File Format includes the audio/video container, stream encryption, and metadata to support content delivery formultiple bit-rate adaptive streaming.

Dolby Vision streams within the ISO base media file format v1.3

Preliminary 25 March 2016 22