本文档的状态
目录
1 完全
限定的编解码器字符串
2 EncodedVideoChunk
数据
3 VideoDecoderConfig 描述
4 EncodedVideoChunk
类型
5 VideoEncoderEncodeOptions 扩展
5.1 VideoEncoderEncodeOptionsForAv1
6 隐私
考量
7 安全
考量
符合性
文档
约定
索引
由
本规范定义的术语
由引用
定义的术语
引用
规范性
引用
非规范性
引用
IDL 索引
1.
完全限定的编解码器字符串
编解码器字符串 以前缀
"av01." 开始,后接一个可变长度的
后缀,如 [AV1-ISOBMFF] 第 5 节所述。
2. EncodedVideoChunk 数据
EncodedVideoChunk
[[internal data]]
预期为
符合“低开销比特流格式”的数据,如 [AV1] 第 5
节所述。
3.
VideoDecoderConfig 描述
description
不用于此编解码器。
4. EncodedVideoChunk 类型
如果一个 EncodedVideoChunk
的
[[type]]
为
key ,
则该 EncodedVideoChunk
预期会
包含一个 frame_type 为 KEY_FRAME 的帧,如 [AV1] 第
6.8.2 节所定义。
5.
VideoEncoderEncodeOptions 扩展
partial dictionary VideoEncoderEncodeOptions {
VideoEncoderEncodeOptionsForAv1 av1 ;
};
av1 , 类型为 VideoEncoderEncodeOptionsForAv1
包含 [AV1] 编解码器的编解码器特定编码选项。
5.1. VideoEncoderEncodeOptionsForAv1
dictionary VideoEncoderEncodeOptionsForAv1 {
unsigned short ? quantizer ;
};
quantizer , 类型为 unsigned short ,可空
设置逐帧量化器值。
在 [AV1] 中,量化器索引可以
从 0 变化到 255
6. 隐私考量
请参阅 隐私
考量 一节,见 [WEBCODECS] 。
7. 安全考量
请参阅 安全
考量 一节,见 [WEBCODECS] 。
文档
约定
符合性要求以
描述性断言
和 RFC 2119 术语的组合来表达。
本文档规范性部分中的关键词“MUST”、“MUST NOT”、“REQUIRED”、“SHALL”、“SHALL NOT”、“SHOULD”、“SHOULD NOT”、“RECOMMENDED”、
“MAY”和“OPTIONAL”
应按 RFC 2119 中的描述进行解释。
然而,为了可读性,
在本规范中这些词并不全部以大写字母出现。
本规范的所有文本均为规范性文本,
但明确标记为非规范性的章节、示例和注除外。[RFC2119]
本规范中的示例以“for example”等词引入,
或者通过 class="example"
与规范性文本分隔开,
如下所示:
资料性注以“Note”一词开头,
并通过 class="note"
与规范性文本分隔开,
如下所示:
Note,这是一个资料性注。
索引
由本
规范定义的术语
由引用
定义的术语
[WEBCODECS] 定义以下术语:
"key"
EncodedVideoChunk
VideoEncoderConfig
VideoEncoderEncodeOptions
[[internal data]]
[[type]]
description
[WEBIDL] 定义以下术语:
引用
规范性引用
[RFC2119]
S. Bradner. 用于 RFC 中表示
要求级别的关键词 . 1997年3月. 最佳当前实践. URL: https://datatracker.ietf.org/doc/html/rfc2119
[WEBCODECS]
Paul Adenot; Eugene Zemtsov. WebCodecs .
2026年5月5日.
WD. URL: https://www.w3.org/TR/webcodecs/
[WEBIDL]
Edgar Chen; Timothy Gu. Web IDL 标准 . 现行标准.
URL: https://webidl.spec.whatwg.org/
[AV1]
AV1 比特流与解码过程
规范 . URL: https://aomediacodec.github.io/av1-spec/
[AV1-ISOBMFF]
AV1 编解码器 ISO 媒体文件格式
绑定 . URL: https://aomediacodec.github.io/av1-isobmff/
[WEBCODECS-CODEC-REGISTRY]
Paul Adenot; Eugene Zemtsov. WebCodecs 编解码器
注册表 . 2026年2月12日. DRY. URL: https://www.w3.org/TR/webcodecs-codec-registry/
IDL 索引
partial dictionary VideoEncoderEncodeOptions {
VideoEncoderEncodeOptionsForAv1 av1 ;
};
dictionary VideoEncoderEncodeOptionsForAv1 {
unsigned short ? quantizer ;
};