W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > September 2019

[mediacapture-record] Ability to specify constant bit rate encoding in MediaRecorder options. (#183)

From: Simon Jackson via GitHub <sysbot+gh@w3.org>
Date: Tue, 03 Sep 2019 10:49:14 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-488531796-1567507753-sysbot+gh@w3.org>
sizeak has just created a new issue for https://github.com/w3c/mediacapture-record:

== Ability to specify constant bit rate encoding in MediaRecorder options. ==
I'm working on a project where we use the MediaRecorder to compress audio to Opus. I need a constant bitrate (CBR) file and while it is possible to specify the audio bitrate to the MediaRecorder, it isn't possible to disable the VBR mode of the Opus encoder, which causes it to use the bitrate as an average bitrate (ABR mode). 

I'd like to add an option to MediaRecorder to specify that I'd like a CBR audio file to be encoded, for example:

```
const mediaRecorder = new MediaRecorder(stream, {
  mimeType: 'audio/webm; codecs=opus',
  audioBitsPerSecond: 128000,
  audioConstantBitRate: true
});
```

Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/183 using your GitHub account
Received on Tuesday, 3 September 2019 10:49:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:28 UTC