Skip to content

Commit f558cb5

Browse files
Merge pull request #894 from Djuffin/iso14496
SHA: 71fd338 Reason: push, by Djuffin Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b3d7221 commit f558cb5

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

avc_codec_registration.html

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<title>AVC (H.264) WebCodecs Registration</title>
66
<meta content="NOTE-ED" name="w3c-status">
77
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
8-
<meta content="Bikeshed version 97a1608be, updated Mon Feb 3 16:09:34 2025 -0800" name="generator">
8+
<meta content="Bikeshed version b25686b9f, updated Fri Mar 14 14:15:20 2025 -0700" name="generator">
99
<link href="https://www.w3.org/TR/webcodecs-avc-codec-registration/" rel="canonical">
10-
<meta content="011346f5edde07d8d205ef493d820bf30a279163" name="revision">
10+
<meta content="71fd3381db93c6a9b9cf3926b07a91ece8d031c6" name="revision">
1111
<meta content="dark light" name="color-scheme">
1212
<link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
1313
<style>/* Boilerplate: style-autolinks */
@@ -695,7 +695,7 @@
695695
<div class="head">
696696
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
697697
<h1 class="p-name no-ref" id="title">AVC (H.264) WebCodecs Registration</h1>
698-
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2025-02-12">12 February 2025</time></p>
698+
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2025-05-13">13 May 2025</time></p>
699699
<details open>
700700
<summary>More details about this document</summary>
701701
<div data-fill-with="spec-metadata">
@@ -741,7 +741,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="cont
741741
</div>
742742
<h2 class="no-num no-toc no-ref heading settled" id="sotd"><span class="content">Status of this document</span></h2>
743743
<div data-fill-with="status">
744-
<p> <em>This section describes the status of this document at the time of its publication. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at https://www.w3.org/TR/.</em> </p>
744+
<p> <em>This section describes the status of this document at the time of its publication. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> standards and drafts index</a> at https://www.w3.org/TR/.</em> </p>
745745
<p> Feedback and comments on this specification are welcome. <a href="https://github.com/w3c/webcodecs/issues">GitHub Issues</a> are preferred for discussion on this specification. Alternatively, you can send comments to the Media Working Group’s mailing-list, <a href="mailto:public-media-wg@w3.org">public-media-wg@w3.org</a> (<a href="https://lists.w3.org/Archives/Public/public-media-wg/">archives</a>).
746746
This draft highlights some of the pending issues that are still to be discussed in the working group.
747747
No decision has been taken on the outcome of these issues including whether they are valid. </p>
@@ -797,19 +797,19 @@ <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
797797
<h2 class="heading settled" data-level="1" id="fully-qualified-codec-strings"><span class="secno">1. </span><span class="content">Fully qualified codec strings</span><a class="self-link" href="#fully-qualified-codec-strings"></a></h2>
798798
<p>The codec string begins with the prefix "avc1." or "avc3.", with a suffix of 6
799799
characters as described respectively in Section 3.4 of <a data-link-type="biblio" href="#biblio-rfc6381" title="The &apos;Codecs&apos; and &apos;Profiles&apos; Parameters for &quot;Bucket&quot; Media Types">[rfc6381]</a> and Section
800-
5.4.1 of <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2019 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a>.</p>
800+
5.4.1 of <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2024 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a>.</p>
801801
<h2 class="heading settled" data-level="2" id="encodedvideochunk-data"><span class="secno">2. </span><span class="content">EncodedVideoChunk data</span><a class="self-link" href="#encodedvideochunk-data"></a></h2>
802802
<p><code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#encodedvideochunk" id="ref-for-encodedvideochunk②">EncodedVideoChunk</a></code> <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-encodedvideochunk-internal-data-slot" id="ref-for-dom-encodedvideochunk-internal-data-slot①">[[internal data]]</a></code> is expected to be
803803
an access unit as defined in <a data-link-type="biblio" href="#biblio-itu-t-rec-h264" title="H.264 : Advanced video coding for generic audiovisual services">[ITU-T-REC-H.264]</a> section 7.4.1.2.</p>
804804
<p class="note" role="note"><span class="marker">NOTE:</span> An access unit contains exactly one primary coded picture.</p>
805805
<p>If the bitstream is in <code class="idl"><a data-link-type="idl" href="#dom-avcbitstreamformat-avc" id="ref-for-dom-avcbitstreamformat-avc">avc</a></code> format, <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-encodedvideochunk-internal-data-slot" id="ref-for-dom-encodedvideochunk-internal-data-slot②">[[internal data]]</a></code> is assumed to be in canonical format, as
806-
defined in <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2019 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a> section 5.3.2.</p>
806+
defined in <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2024 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a> section 5.3.2.</p>
807807
<p>If the bitstream is in <code class="idl"><a data-link-type="idl" href="#dom-avcbitstreamformat-annexb" id="ref-for-dom-avcbitstreamformat-annexb">annexb</a></code> format, <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-encodedvideochunk-internal-data-slot" id="ref-for-dom-encodedvideochunk-internal-data-slot③">[[internal data]]</a></code> is assumed to be in in Annex B format,
808808
as defined in <a data-link-type="biblio" href="#biblio-itu-t-rec-h264" title="H.264 : Advanced video coding for generic audiovisual services">[ITU-T-REC-H.264]</a> Annex B.</p>
809809
<p class="note" role="note"><span class="marker">NOTE:</span> Since <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-encodedvideochunk-internal-data-slot" id="ref-for-dom-encodedvideochunk-internal-data-slot④">[[internal data]]</a></code> is inherently byte-aligned,
810810
implementations are not required to recover byte-alignment.</p>
811811
<h2 class="heading settled" data-level="3" id="videodecoderconfig-description"><span class="secno">3. </span><span class="content">VideoDecoderConfig description</span><a class="self-link" href="#videodecoderconfig-description"></a></h2>
812-
<p>If the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-videodecoderconfig-description" id="ref-for-dom-videodecoderconfig-description①">description</a></code> is present, it is assumed to be an <code>AVCDecoderConfigurationRecord</code>, as defined by <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2019 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a>, section
812+
<p>If the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-videodecoderconfig-description" id="ref-for-dom-videodecoderconfig-description①">description</a></code> is present, it is assumed to be an <code>AVCDecoderConfigurationRecord</code>, as defined by <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2024 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a>, section
813813
5.3.3.1, and the bitstream is assumed to be in <code class="idl"><a data-link-type="idl" href="#dom-avcbitstreamformat-avc" id="ref-for-dom-avcbitstreamformat-avc①">avc</a></code> format.</p>
814814
<p class="note" role="note"><span class="marker">NOTE:</span> This format is commonly used in .MP4 files, where the player generally
815815
has random access to the media data.</p>
@@ -870,7 +870,7 @@ <h3 class="heading settled" data-level="5.2" id="avc-bitstream-format"><span cla
870870
<dd>
871871
SPS and PPS data are not included in the bitstream and are instead emitted
872872
via the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-videoencoder-output-callback-slot" id="ref-for-dom-videoencoder-output-callback-slot">[[output callback]]</a></code> as the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-videodecoderconfig-description" id="ref-for-dom-videodecoderconfig-description④">VideoDecoderConfig.description</a></code> of the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webcodecs/#dom-encodedvideochunkmetadata-decoderconfig" id="ref-for-dom-encodedvideochunkmetadata-decoderconfig">EncodedVideoChunkMetadata.decoderConfig</a></code>.
873-
<p class="note" role="note"><span class="marker">NOTE:</span> This format is described in greater detail by <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2019 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a>,
873+
<p class="note" role="note"><span class="marker">NOTE:</span> This format is described in greater detail by <a data-link-type="biblio" href="#biblio-iso14496-15" title="ISO/IEC 14496-15:2024 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format">[iso14496-15]</a>,
874874
section 5.3. This format is commonly used in .MP4 files, where the
875875
player generally has random access to the media data.</p>
876876
</dl>
@@ -976,14 +976,14 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
976976
<dt id="biblio-rfc2119">[RFC2119]
977977
<dd>S. Bradner. <a href="https://datatracker.ietf.org/doc/html/rfc2119"><cite>Key words for use in RFCs to Indicate Requirement Levels</cite></a>. March 1997. Best Current Practice. URL: <a href="https://datatracker.ietf.org/doc/html/rfc2119">https://datatracker.ietf.org/doc/html/rfc2119</a>
978978
<dt id="biblio-webcodecs">[WEBCODECS]
979-
<dd>Paul Adenot; Bernard Aboba; Eugene Zemtsov. <a href="https://w3c.github.io/webcodecs/"><cite>WebCodecs</cite></a>. URL: <a href="https://w3c.github.io/webcodecs/">https://w3c.github.io/webcodecs/</a>
979+
<dd>Paul Adenot; Eugene Zemtsov. <a href="https://w3c.github.io/webcodecs/"><cite>WebCodecs</cite></a>. URL: <a href="https://w3c.github.io/webcodecs/">https://w3c.github.io/webcodecs/</a>
980980
<dt id="biblio-webidl">[WEBIDL]
981981
<dd>Edgar Chen; Timothy Gu. <a href="https://webidl.spec.whatwg.org/"><cite>Web IDL Standard</cite></a>. Living Standard. URL: <a href="https://webidl.spec.whatwg.org/">https://webidl.spec.whatwg.org/</a>
982982
</dl>
983983
<h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
984984
<dl>
985985
<dt id="biblio-iso14496-15">[ISO14496-15]
986-
<dd><a href="https://www.iso.org/standard/74429.html"><cite>ISO/IEC 14496-15:2019 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format</cite></a>. September 2019. URL: <a href="https://www.iso.org/standard/74429.html">https://www.iso.org/standard/74429.html</a>
986+
<dd><a href="https://www.iso.org/standard/89118.html"><cite>ISO/IEC 14496-15:2024 Information technology — Coding of audio-visual objects — Part 15: Carriage of network abstraction layer (NAL) unit structured video in the ISO base media file format</cite></a>. October 2024. URL: <a href="https://www.iso.org/standard/89118.html">https://www.iso.org/standard/89118.html</a>
987987
<dt id="biblio-itu-t-rec-h264">[ITU-T-REC-H.264]
988988
<dd><a href="https://www.itu.int/rec/T-REC-H.264"><cite>H.264 : Advanced video coding for generic audiovisual services</cite></a>. June 2019. URL: <a href="https://www.itu.int/rec/T-REC-H.264">https://www.itu.int/rec/T-REC-H.264</a>
989989
<dt id="biblio-rfc6381">[RFC6381]
@@ -1726,7 +1726,12 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
17261726
function showRefHint(link) {
17271727
if(link.classList.contains("dfn-link")) return;
17281728
const url = link.getAttribute("href");
1729-
const ref = refsData[url];
1729+
const refHintKey = link.getAttribute("data-refhint-key");
1730+
let key = url;
1731+
if(refHintKey) {
1732+
key = refHintKey + "_" + url;
1733+
}
1734+
const ref = refsData[key];
17301735
if(!ref) return;
17311736

17321737
hideAllRefHints(); // Only display one at this time.

0 commit comments

Comments
 (0)