Do I need both WebM and ogv formats when using HTML5 video?

nitech picture nitech · Jun 25, 2012 · Viewed 32.3k times · Source

From videojs.com's documentation, I had the impression that I needed to include both ogv and webm file formats (in addition to mp4).

Then I read http://www.htmlgoodies.com/html5/client/how-to-embed-video-using-html5.html#fbid=erNepglDbZl, from which it seems I just need mp4 and (ogv or webm).

What is correct? Do I need all three?

Answer

Bart Burg picture Bart Burg · Jan 9, 2017

For those coming to this old question: only mp4 is required nowadays!

http://caniuse.com/#feat=mpeg4