From baf8e2fd70454852d32d0dbcea4fe4e30f352c7a Mon Sep 17 00:00:00 2001 From: Bernard Aboba Date: Wed, 19 Apr 2023 13:12:05 -0700 Subject: [PATCH 1/2] Add per-frame QP support to AVC This value is used by VideoEncoder.encode() if VideoEncoder is configured with "quantizer" bitrate mode. Followup for: #270 --- avc_codec_registration.src.html | 39 ++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/avc_codec_registration.src.html b/avc_codec_registration.src.html index 34bbb4a4..ee045740 100644 --- a/avc_codec_registration.src.html +++ b/avc_codec_registration.src.html @@ -17,7 +17,8 @@ {{EncodedVideoChunk/[[internal data]]}} bytes, (3) the {{VideoDecoderConfig/description|VideoDecoderConfig.description}} bytes, (4) the values of {{EncodedVideoChunk}} {{EncodedVideoChunk/[[type]]}}, - and (5) the codec-specific extensions to {{VideoEncoderConfig}} + (5) the codec-specific extensions to {{VideoEncoderConfig}}, and + (6) the codec-specific extensions to {{VideoEncoderEncodeOptions}}. The registration is not intended to include any information on whether a codec format is encumbered by intellectual property claims. Implementers and @@ -187,6 +188,42 @@ player generally has random access to the media data. +VideoEncoderEncodeOptions extensions {#videoencoderencodeoptions-extensions} +============================================================== + +
+
+partial dictionary VideoEncoderEncodeOptions {
+  VideoEncoderEncodeOptionsForAvc avc;
+};
+
+
+ +
+
avc
+
+ Contains codec specific encode options for the [[ITU-T-REC-H.264]] codec. +
+
+ +VideoEncoderEncodeOptionsForAv1 {#av1-encode-options} +-------------------------------------- +
+
+dictionary VideoEncoderEncodeOptionsForAvc {
+  unsigned short? quantizer;
+};
+
+
+ +
+
quantizer
+
+ Sets per-frame quantizer value. + In [[ITU-T-REC-H.264]] the quantizer threshold can be varied from 0 to 51 +
+
+ Privacy Considerations {#privacy-considerations} ========================================================================== From 89c802f40f46324abd6b1e4b46afbc53d36916b7 Mon Sep 17 00:00:00 2001 From: Bernard Aboba Date: Tue, 25 Apr 2023 14:01:14 -0700 Subject: [PATCH 2/2] Av1 -> Avc --- avc_codec_registration.src.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avc_codec_registration.src.html b/avc_codec_registration.src.html index ee045740..0dfcaa5f 100644 --- a/avc_codec_registration.src.html +++ b/avc_codec_registration.src.html @@ -206,7 +206,7 @@ -VideoEncoderEncodeOptionsForAv1 {#av1-encode-options} +VideoEncoderEncodeOptionsForAvc {#avc-encode-options} --------------------------------------
 
@@ -220,7 +220,7 @@
   <dt><dfn dict-member for=VideoEncoderEncodeOptionsForAvc>quantizer</dfn></dt>
   <dd>
     Sets per-frame quantizer value.
-    In [[ITU-T-REC-H.264]] the quantizer threshold can be varied from 0 to 51
+    In [[ITU-T-REC-H.264]] the quantizer threshold can be varied from 0 to 51.
   </dd>
 </dl>