The support of HTML5 video has evolved a lot over the years. I am trying to understand whether the `<video>` element still needs to have three sources: MP4, WEBM, and OGG.

There are a lot of answers throughout StackOverflow with deeply conflicting information - some of which say that you just need MP4 now, others say, MP4 and WEBM are enough, and then finally many say that you need all three (although many of those article are ~10 years old).

[W3 suggests](https://www.w3schools.com/html/html5_video.asp) that either MP4 or WEBM alone would have universal support (Even though I found a 2011 [article from Google](https://blog.chromium.org/2011/01/html-video-codec-support-in-chrome.html) saying that they would be removing support for MP4/H.264). [Wikipedia paints a more complicated picture](https://en.wikipedia.org/wiki/HTML5_video#Browser_support) (as well as listing that Google Chrome does indeed support MP4/H.264). [Azure Media services](https://learn.microsoft.com/en-us/azure/media-services/latest/encode-media-encoder-standard-formats-reference) ONLY seems to allow output in MP4, which would suggest to me that MP4 must have widespread compatibility.

Also see [Example 1](https://stackoverflow.com/questions/4927809/why-is-there-no-common-html5-video-codec-standard-for-all-browsers), [Example 2](http://diveintohtml5.info/video.html), [Example 3](https://stackoverflow.com/questions/4927809/why-is-there-no-common-html5-video-codec-standard-for-all-browsers).

Is there any definitive information on what video types to include in an HTML5 video player to achieve widespread compatibility?

Background: I am building a Content Management Platform that allows uploading videos. When a new video is uploaded, a conversion process kicks off to convert the video into the required formats. This takes time and CPU/Memory, so if it is possible I would like to convert uploaded videos into as few formats as possible.

p.s. This question HAS [been asked before](https://stackoverflow.com/questions/14636415/html5-video-formats-compatibility), however, the fundamentals of playing video on the web continually evolve and most of the answers out there have become irrelevant.