On .mov
files and caniuse.com
The last part of the OP's question has not been answered yet.
In other words, does the MPEG-4/H.264 table on CanIUse apply to .mov files the same as .mp4 files? Or is there any difference?
Taking a look into CanIUse's raw support data we'll find the necessary metadata on the MPEG-4/H.264 codec in the corresponding features-json/mpeg4.json
data file, on line 563:
"keywords":"avc,mp4,mpv,mov,aac,h264",
Of course, mov
could also be a keyword somewhere else, but when searching the given repository, one will only find it in the features-json/mpeg4.json
data file, and correspondingly one time each in the files data.json
, fulldata-json/data-1.0.json
and fulldata-json/data-2.0.json
which are just compositions of all the features-json/
files.
So, yes. The MPEG-4/H.264 table on CanIUse applies to .mov
files the same way as to .mp4
files.
Addendum on the browser support for .mov
files
Concerning the first question:
I've read that .mov files can use MPEG-4 formats. Is there anything particular about the .mov extension versus the .mp4 extension on the web that affects browser support?
The relation between the .mov
container format and the MPEG-4/H.264 codec has already been elucidated in the answer of Gerrit Bertier.
I would like to add, that as e.g. the MDN Web Docs on Video and audio content state:
Each <source>
element also has a type
attribute. This is optional, but it is advised that you include it. The type
attribute contains the MIME type of the file specified by the <source>
, and browsers can use the type
to immediately skip videos they don't understand. If type
isn't included, browsers will load and try to play each file until they find one that works, which obviously takes time and is an unnecessary use of resources.
So, that's a typical case of branch predication.
It seems that Blink/Chromium-browser take the strict approach to read video/quicktime
literally, and assume that the .mov
file uses the now widely unsupported QuickTime format. On one side, such the overhead for loading a file with a probably unsupported codec is avoided. Alas, on the other side .mov
container files using still supported codecs as MPEG-4/H.264 or AVI are excluded. The idea is that one should declare MPEG-4/H.264 files explicitly e.g. as video/mp4
, independently of the file extension. If it's a .foo
file from the outside, but video/mp4
inside, then just use the proper MIME type and that's it.
However, other browsers like Firefox probably assume -- like caniuse.com -- that the .mov
file highly likely uses the MPEG-4/H.264 codec and accept the risk to be mistaken, as there will be probably more hits than fails.
Finally, Safari is Apple's browser. And as the QuickTime codec was introduced by Apple it is still supported by Safari, accepting a video/quicktime
container with any supported codec inside.
file.mov
intofile.mp4
then test in browsers like desktop & Android too. – Loehrget info
on Mac OS showedCodecs: H.264, AAC
. Maybe useful to know about renaming, but I am wondering if it would work on various browsers as is, without renaming either. I don't have an Android or Windows environment to test with, so hoping to find answers here. – Discover