MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

Supporting alternative encoders (VP9/H264)

Open Joe-Palmer opened this issue 9 years ago • 1 comments
trafficstars

As of Chrome v48, VP9 is now supported in WebRTC:

https://developers.google.com/web/updates/2016/01/vp9-webrtc?hl=en

Microsoft edge supports H264 and at some point will support VP9:

https://blogs.windows.com/msedgedev/2015/09/08/announcing-vp9-support-coming-to-microsoft-edge/

Firefox already supports both VP8 and H264 so soon most browsers will have a choice of encoders.

How to I specify the encoding format using MediaStreamRecorder? I have tried to work it out but can only record VP8 video...

Joe-Palmer avatar Feb 25 '16 09:02 Joe-Palmer

You can set codecs in the mimeType:

recorder.mimeType = 'video/webm; codecs="vorbis,vp9"';

Regarding H264, please find relevant values:

screen shot 2016-02-25 at 3 45 40 pm

muaz-khan avatar Feb 25 '16 10:02 muaz-khan