Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant bitrate audio encoding with MediaRecorder #414

Open
sizeak opened this issue Jul 30, 2020 · 4 comments
Open

Constant bitrate audio encoding with MediaRecorder #414

sizeak opened this issue Jul 30, 2020 · 4 comments
Labels
venue: W3C Specifications in W3C Working Groups

Comments

@sizeak
Copy link

sizeak commented Jul 30, 2020

Request for Mozilla Position on an Emerging Web Specification

Other information

A new enumeration (BitrateMode) has been added for specifying either constant or variable bitrate for audio encoding, MediaRecorderOptions has an extra field called audioBitrateMode for requesting a specific bitrate mode from the MediaRecorder and a field was added to MediaRecorder for retrieving the bitrate mode being used for encoding.

@hsivonen
Copy link
Member

hsivonen commented Aug 4, 2020

I note that neither the explainer nor the other linked documents explain a use case. The person who requested said they "need" this, and later comments took it as a given that CBR for audio is common.

However, it was not explained what use cases are enabled by CBR than now fail due to MediaRecorder producing VBR.

@annevk annevk added the venue: W3C Specifications in W3C Working Groups label Aug 4, 2020
@annevk
Copy link
Contributor

annevk commented Aug 4, 2020

cc @jan-ivar

@sizeak
Copy link
Author

sizeak commented Aug 4, 2020

I note that neither the explainer nor the other linked documents explain a use case. The person who requested said they "need" this, and later comments took it as a given that CBR for audio is common.

However, it was not explained what use cases are enabled by CBR than now fail due to MediaRecorder producing VBR.

I am the person who needed this and CBR audio is common. I have an open task to update the explainer with more information, but in short, CBR gives me predicable packet and file sizes which can be useful in a number of situations, it can also be less resource intensive to encode and can give higher quality. I have use cases which require CBR encoding, without implementing support in MediaRecorder I would be forced to ship a WASM alternative which would have performance implications.

@sizeak
Copy link
Author

sizeak commented Aug 4, 2020

The explainer has now been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
venue: W3C Specifications in W3C Working Groups
Projects
Status: Unscreened
Development

No branches or pull requests

3 participants