Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebCodecs: Per-frame quantizer in VideoEncoder #223

Open
Djuffin opened this issue Jul 6, 2023 · 1 comment
Open

WebCodecs: Per-frame quantizer in VideoEncoder #223

Djuffin opened this issue Jul 6, 2023 · 1 comment
Labels
from: Google Proposed, edited, or co-edited by Google. topic: media Spec relates to audio, video, or other timed media venue: W3C Media WG

Comments

@Djuffin
Copy link

Djuffin commented Jul 6, 2023

WebKittens

@youennf

Title of the spec

WebCodecs VideoEncoderBitrateMode

URL to the spec

https://www.w3.org/TR/webcodecs/#video-encoder-bitrate-mode

URL to the spec's repository

https://github.com/w3c/webcodecs

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

No response

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

This change adds "quantizer" VideoEncoderBitrateMode for VideoEncoder.
This allows to specify quantizer parameter for each frame for AV1, VP9, and AVC video codecs.

Quantizer parameter is set via codec specific extensions for VideoEncoderEncodeOptions.

Controlling quantizer for every frame makes possible at least two new use cases for VideoEncoder:

  1. Constant quality encoding when complex frames and parts get more bandwidth than less complex ones.
  2. External rate control algorithms implemented by web developers. Such algorithms can take into account website's knowledge about contents of each frame or quick changes in available network bandwidth.

Work on the Chromium side is being tracked here.

@Djuffin
Copy link
Author

Djuffin commented Jul 6, 2023

Suggested labels:
topic: media
venue: W3C Media WG
from: Google

@Ahmad-S792 Ahmad-S792 added from: Google Proposed, edited, or co-edited by Google. topic: media Spec relates to audio, video, or other timed media venue: W3C Media WG labels Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Google Proposed, edited, or co-edited by Google. topic: media Spec relates to audio, video, or other timed media venue: W3C Media WG
Projects
None yet
Development

No branches or pull requests

2 participants