Skip to content

Encoding complexity#252

Open
sprangerik wants to merge 2 commits into
w3c:mainfrom
sprangerik:encoding_complexity
Open

Encoding complexity#252
sprangerik wants to merge 2 commits into
w3c:mainfrom
sprangerik:encoding_complexity

Conversation

@sprangerik

@sprangerik sprangerik commented May 8, 2026

Copy link
Copy Markdown

This introduces a new enum RTCEncodingComplexity and adds an encodingComplexity member to RTCRtpEncodingParameters to allow applications to hint at the desired trade-off between quality and CPU/power consumption for an encoding.

Fixes #191


Preview | Diff

Erik Språng added 2 commits May 8, 2026 16:17
This introduces a new enum `RTCEncodingComplexity` and adds an `encodingComplexity` member to `RTCRtpEncodingParameters` to allow applications to hint at the desired trade-off between quality and CPU/power consumption for an encoding.

Includes guidance for implementors on expected relative encoding times and notes on the best-effort nature of this hint.

Fixes w3c#191
@youennf

youennf commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Given this might be even more useful to WebCodecs encoders, it seems we should discuss this in WebCodecs repo and maybe piggy back on what is added there in terms of enum for instance.

@youennf

youennf commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

@sprangerik, do you plan to file an issue to WebCodecs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API to control encode complexity

2 participants