本文档的状态
1.
完全限定的编解码器字符串
编解码器字符串以前缀
"av01." 开始,后跟一个可变长度的
后缀,如 [AV1-ISOBMFF] 第 5 节所述。
2. EncodedVideoChunk 数据
EncodedVideoChunk
的 [[internal data]]
预期为
符合 [AV1] 第 5 节所述
“低开销比特流格式”的数据。
3.
VideoDecoderConfig description
description
不用于此编解码器。
4. EncodedVideoChunk type
如果某个 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 到 63 之间变化
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. Key words for use in RFCs to
Indicate Requirement Levels. 1997 年 3 月. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
- [WEBCODECS]
- Paul Adenot; Eugene Zemtsov. WebCodecs. 2025 年 4
月
17 日. WD. URL: https://www.w3.org/TR/webcodecs/
- [WEBIDL]
- Edgar Chen; Timothy Gu. Web IDL Standard. Living
Standard. URL: https://webidl.spec.whatwg.org/
- [AV1]
- AV1 Bitstream & Decoding Process
Specification. URL: https://aomediacodec.github.io/av1-spec/
- [AV1-ISOBMFF]
- AV1 Codec ISO Media File Format
Binding. URL: https://aomediacodec.github.io/av1-isobmff/
- [WEBCODECS-CODEC-REGISTRY]
- Paul Adenot; Bernard Aboba. WebCodecs Codec
Registry. 2024 年 9 月 9 日. DRY. URL: https://www.w3.org/TR/webcodecs-codec-registry/
IDL 索引
partial dictionary VideoEncoderEncodeOptions {
VideoEncoderEncodeOptionsForAv1 av1;
};
dictionary VideoEncoderEncodeOptionsForAv1 {
unsigned short? quantizer;
};