This tutorial will show you how to convert your video file to HTML5 compatible.
Convert to MP4 Format
MP4 format is supported by Chrome, Safari, Microsoft Edge, iPhone, iPad, Android and Flash. In this tutorial, we use the freeware Handbrake http://handbrake.fr/ to convert MP4 videos.
Step 1 - Download Handbrake
Handbrake http://handbrake.fr/ is an open source, GPL-licensed application for encoding MP4 video. It works on Windows, Linux and Mac.
Step 1 - Convert your video with Handbrake
HandBrake has a graphic interface which is straightforward and easy to use. In the main dialog, you can click Source button and choose a video file. On the right side, there is a list of Presets, you can choose the option "iPhone & iPad Touch".
Make sure you also check the option "Web Optimized". The option is also known as "Fast start" or "Progressive downloading". It places the container header at the start of the file, and allows your video to start playing while it's still downloading.
Click Start and wait for the encoding complete.
Convert to WebM Format
Firefox and Opera do not support MP4. To play with HTML5 in Firefox and Opera, you need to provide an extra WebM video. To convert your video to Firefox compatible WebM format, you could use the free extension https://firefogg.org/.