

Sometimes, your user will need the recorded videos outside of the browser for different reasons and your project may need as well provide support for this kind of users by simply converting the video into its mp4 version so it can be played on multiple platforms as well. A lot of WebRTC based open source projects that allow you for example, record a video from the browser and upload it to your server, use the webm format as it's one of the most known formats for the web.

The WebM file structure is based on the Matroska container. WebM is 100% free, and open-sourced under a BSD-style license. WebM files consist of video streams compressed with the VP8 or VP9 video codecs and audio streams compressed with the Vorbis or Opus audio codecs.
WebM is an open, royaltyz-free, media file format designed for the web that defines the file container structure, video and audio formats.
