stream.new
stream.new copied to clipboard
Update MediaRecorder preferences
After consulting with @philcluff @gkatsev and @cjpillsbury -- this is the consensus for the recommended mimeType
stack for MediaRecorder for our use case.
- It provides greatest compatibility across recording devices
- It's a fair tradeoff for the resulting file quality vs
vp9
- It has good compatibility for uploading to and hosting by Mux
const preferredOptions = { mimeType: 'video/mp4;codecs=avc1' };
const backupOptions = { mimeType: 'video/webm;codecs=vp9' };
const lastResortOptions = { mimeType: 'video/webm;codecs=vp8,opus' };
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/mux/stream-new/2vYsoTKE5iBuuAHd2PnZKYPZuBqd
✅ Preview: https://stream-new-git-dk-media-recorder-codecs-mux.vercel.app
I'm curious (this is outside my wheelhouse) - why is opus a last-resort audio codec? (or is it implied by the other codec options?)
@davekiss is this good to merge?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
stream-new | ✅ Ready (Inspect) | Visit Preview | Jun 14, 2022 at 7:35PM (UTC) |
@dylanjha This should be g2g, can you try a recording on your end to sanity check?