MediaStreamRecorder
MediaStreamRecorder copied to clipboard
Supporting alternative encoders (VP9/H264)
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...
You can set codecs in the mimeType:
recorder.mimeType = 'video/webm; codecs="vorbis,vp9"';
Regarding H264, please find relevant values:
