Open Bug 1379241 Opened 7 years ago Updated 2 years ago

support WAV format for MediaRecorder

Categories

(Core :: Audio/Video: Recording, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: liweijia, Unassigned, Mentored)

Details

currently, only ogg is supported for MediaRecorder(audio), Please support wav format.
Flags: needinfo?(padenot)
(In reply to Viga from comment #0) > currently, only ogg is supported for MediaRecorder(audio), > Please support wav format. Viga, can you try going here: https://www.webrtc-experiment.com/RecordRTC/ In the 'Start Recording' section, I selected 'Microphone' and 'pcm'. After recording a bit of audio and clicking 'Save To Disk' it asked me to save a '.wav' file.
Flags: needinfo?(liweijia)
Which FireFox version do you use? Or do you use other browser, like Chrome?
Flags: needinfo?(liweijia)
(In reply to Viga from comment #2) > Which FireFox version do you use? Or do you use other browser, like Chrome? I ran that test on the current release of Firefox (54.0.1) on OSX 10.11. I also just tried it on Ubuntu with Firefox (54.0) and it worked as well.
Flags: needinfo?(liweijia)
Just to make sure I verified it also works on the Nightly build of Firefox 56.0a1 (2017-07-11).
Rank: 31
Priority: -- → P3
Hi Michael, I find source code, https://dxr.mozilla.org/mozilla-central/source/dom/webidl https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaRecorder.cpp I don't see any audio/wav format encoded. Maybe the link you post, it's not implemented by MediaRecorder.
Flags: needinfo?(liweijia) → needinfo?(mfroman)
(In reply to Viga from comment #6) > https://github.com/streamproc/MediaStreamRecorder/blob/master/ > MediaStreamRecorder.js#L54 > It clearly says, it's encoded in javascript. My apologies! I was just looking for something that potentially exercised MediaRecorder and found that demo. I had not had a chance to walk the demo code. I'll let :padenot adjust the priority on the bug after he has a chance to look at it.
Flags: needinfo?(mfroman)
FWIW here's a fiddle that exercises MediaRecorder https://jsfiddle.net/jib1/pkc16k9r/
It's unclear if we have time to do that for now, but I suppose we would accept a patch.
Flags: needinfo?(padenot)
Mass change P3->P4 to align with new Mozilla triage process.
Priority: P3 → P4

Moving to P3 as the meaning of P4 has changed since the bulk change above.

Priority: P4 → P3

I'm interested in taking a stab at this.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.