stream.new icon indicating copy to clipboard operation
stream.new copied to clipboard

Update MediaRecorder preferences

Open davekiss opened this issue 2 years ago • 5 comments

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' };

davekiss avatar Mar 03 '22 14:03 davekiss

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

vercel[bot] avatar Mar 03 '22 14:03 vercel[bot]

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?)

eropple avatar Mar 17 '22 01:03 eropple

@davekiss is this good to merge?

dylanjha avatar Jun 07 '22 22:06 dylanjha

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)

vercel[bot] avatar Jun 14 '22 19:06 vercel[bot]

@dylanjha This should be g2g, can you try a recording on your end to sanity check?

davekiss avatar Jun 14 '22 19:06 davekiss