Camen Design Forum

HTML5 MP4

append delete Me is not u

Does the html5 mp4 "have" to be encoded as h.264? Can it be a regular mp4?

Reply RSS

Replies

append delete #1. Martijn

What encoding would you use for “a regular mp4”? What makes using the H.264 codec an irregular MP4?

This question is manifold, and so is the answer:

1. HTML5 does not mention *any* video format. It used to mention “Ogg Theora video and Ogg Vorbis audio” [1] but this was removed. HTML5 itself allows *everything*, it is browsers that do not support so.

2. MP4 is a container format. This means it has nothing to do with whether software can play the video contained in it. Only the encoding (the used codec) for the video stream *inside* the MP4 container is of any importance.

3. H.264 is not the only codec supported by browsers. So if the thing you call “regular” is a coded supported by a browser feel free to use it.

I recommend you read the Video section of Dive into HTML5: http://diveintohtml5.info/video.html. It will talk you through containers and codecs. It also includes an overview of what different formats work in different browsers [2].

[1]: http://html5.org/tools/web-apps-tracker?from=1142&to=1143
[2]: http://diveintohtml5.info/video.html#what-works

append delete #2. Me is not you

Thank you ... your #3 answer best suited my concern, which is to use mp4 but not the h.264 coding within the mp4 due to the patent-encumbered tax. I guess I'll be happy if Apple can play a non-H.264 mp4 ... And, I believe it does.

append delete #3. Martijn

If we are talking about browsers only it might not be that taxing thanks to Cisco open-sourcing the H.264 codec and Firefox (probably) following suit and implementing it. See http://www.metafilter.com/133375/Cisco-going-to-pay-H264-licensing-fees-to-provide-free-codec (scroll down for some more links to background information).

append delete #4. Me is not you

Thank you!

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn