w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
953 stars 135 forks source link

Add EventHandler for Encoder/Decoder power efficiency changes #645

Closed aboba closed 1 year ago

aboba commented 1 year ago

Fixes https://github.com/w3c/webcodecs/issues/604

Related: https://github.com/w3c/webrtc-stats/pull/732 https://github.com/w3c/webrtc-stats/issues/730 https://github.com/w3c/webrtc-stats/pull/725 https://github.com/w3c/webrtc-stats/issues/724

Work-in-progress, do not merge.


Preview | Diff

dalecurtis commented 1 year ago
  1. Chrome only has fallback for no-preference when hardware encoder encounters an error. It will try software encoding.
  2. Spec doesn't currently have any language allowing fallback. We could add a note forbidding fallback.
  3. @dalecurtis to gather stats on current fallback mechanism.
  4. Way forward for current users is to specify prefer-hardware or prefer-software which won't trigger fallback in Chrome.
  5. @aboba to ask media WG (Mar 7th) for opinions on whether developers prefer automatic fallback or want explicit control even in no-preference case.