WebCodecs support for enabling AV1 screen content coding tools
- Category
- Multimedia
- Type
- Chromium catches up
- Status
- No longer pursuing (Chrome No longer pursuing)
- Intent stage
- None
WPT details: Unclear to what degree this is testable. Enabling this feature reduces the encoded frame size which makes it tough to test, it might be possible with a canvas source that provides predictable input similar to https://webrtc.github.io/samples/src/content/insertable-streams/video-processing/
Summary
No longer pursuing, part of contentHint: https://chromestatus.com/feature/5103493249761280 Adds AV1EncoderConfig (a dictionary containing forceScreenContentTools) to the VideoEncoderConfig along these lines: encoder.configure({ codec: 'av01.0.04M.08', av1: { forceScreenContentTools: false }, width: 1920, height: 1080, bitrate: 2_000_000, framerate: 5, }); This allows an application to encode “screen content”, in particular presentation slides, in a more efficient way supported by the AV1 codec. This material is typically static, often includes text, a limited set of colors, lots of repetitive content (e.g. straight lines, shapes) for which the encoder can optimize. See the explainer for a lot of visual examples. This AV1 feature is already supported by WebRTC and enabled for screen sharing MediaStreamTracks so this increases platform consistency.
Standards & signals
- Specification: https://www.w3.org/TR/webcodecs-av1-codec-registration/#dom-av1encoderconfig-forcescreencontenttools
- Firefox: Closed Without a Position — pending feedback, most likely similar to this situation https://github.com/mozilla/standards-positions/issues/837#issuecomment-1614666364
- Safari: No signal
- Web developers: No signals — Presented in the screen capture community group during TPAC 2023, slides here: https://docs.google.com/presentation/d/10i4HFYZ4CylpFUuoJcigfiI5uS7pK3uaseQpcYhugAY/edit#slide=id.g27ea3fad398_0_0
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1464862
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=webcodecs-support-for-enabling-av1-screen-content-coding-tools
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+WebCodecs%20support%20for%20enabling%20AV1%20screen%20content%20coding%20tools
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=WebCodecs%20support%20for%20enabling%20AV1%20screen%20content%20coding%20tools
- Baseline status: https://webstatus.dev/?q=WebCodecs%20support%20for%20enabling%20AV1%20screen%20content%20coding%20tools
Docs: https://github.com/fippo/webrtc-explainers/blob/gh-pages/av1-screencontent/index.md