w3c / webcodecs

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

OpusBitstreamFormat for AudioEncoderConfig #342

Open chcunningham opened 2 years ago

chcunningham commented 2 years ago

Opus follows the pattern of AVC and AAC in having at least two ways to packetize the encoded chunk data. Currently the registration defines how the AudioDecoderConfig.description to signals the packet type, but we should add something like OpusBitstreamFormat { "opus", "ogg" } (check me on the names) for the AudioEncoderConfig to signal a desired encoded output format.

tguilbert-google commented 1 year ago

Revisiting this CL from an offline conversation with @dalecurtis:

Do we want to keep ogg encapsulation support? libopus does not have default support, and it will require shipping an additional ogg muxer

padenot commented 5 months ago

Firefox currently only supports the Opus bitstream format. We could add OGG containerization, but we could also remove this from the standard if nobody has even implemented it, and nobody feels the need for it.