support WAV format for MediaRecorder

NEW
Unassigned

Status

()

Core
Audio/Video: Recording
P4
normal
Rank:
31
5 months ago
2 months ago

People

(Reporter: Viga, Unassigned, Mentored)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 months ago
currently, only ogg is supported for MediaRecorder(audio),
Please support wav format.
(Reporter)

Updated

4 months ago
Flags: needinfo?(padenot)

Comment 1

4 months ago
(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)
(Reporter)

Comment 2

4 months ago
Which FireFox version do you use? Or do you use other browser, like Chrome?
Flags: needinfo?(liweijia)

Comment 3

4 months ago
(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)

Comment 4

4 months ago
Just to make sure I verified it also works on the Nightly build of Firefox 56.0a1 (2017-07-11).

Updated

4 months ago
Rank: 31
Priority: -- → P3
(Reporter)

Comment 5

4 months ago
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)
(Reporter)

Comment 6

4 months ago
https://github.com/streamproc/MediaStreamRecorder/blob/master/MediaStreamRecorder.js#L54
It clearly says, it's encoded in javascript.

Comment 7

4 months ago
(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
You need to log in before you can comment on or make changes to this bug.