I am working on adding the ability to upload videos to a CMS that I am developing, and I am a little confused about the "best practices" for uploading videos. The videos will be played using the Video.js library.
My understanding of HTML5 videos is that there are three possible formats: MP4, OGG and WEBM. It would appear that MP4 is supported by all browsers while the other two are less supported.
- If I want to allow users to upload any sort of video, will I then have to convert whatever they upload into a format that works with HTML5? Or is there a different way that I can go about this?
- If MP4 is basically supported everywhere, what is the point of including the other two formats? If I do convert videos after the user uploads, should I convert the video into all three versions?
- I assume that when you upload a video into YouTube, they convert the video into the correct formats? Or how else are they able to play any video format?
- Are there any libraries or techniques available to convert an uploaded video quickly?