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

do we need support specify audio encode bitrateMode interface ? #649

Closed bdrtc closed 1 year ago

bdrtc commented 1 year ago

some audio codecs(opus, HE AAC) support specify encoder bitrate mode,

according section-2.1.8 of opus rfc6716 and opus api doc , opus encoder support VBR and CBR mode, and vbr was used by default.

we can use bitrateMode exist in mediastream-recording, constant correspond to CBR and variable correspond to VBR mode.

suggest to add audioBitrateMode in audio codec that support vbr/cbr mode, which specifes the BitrateMode that should be used to encode the audio track.

tguilbert-google commented 1 year ago

This seems reasonable. I can edit the spec and codec registries in Q2.

Thanks for the suggestion!