How to Encode Video for HTML5
The state of HTML5 support in browsers is just as fractured as ever. Leading a 流媒体 East audience through a chart on HTML5 support by browser, encoding expert 1月时 showed where the Ogg Theora, H.264, and WebM codecs are now used.
"The vision, of course, for HTML5 is we have plug-in-free playback in the browser of our video files. That's the promise. That's what we all want,欧泽说. "What we see here, to kind of summarize it for you, is there's some support for Ogg Theora, and the only browser with significant penetration right now that still uses Ogg Theora is Firefox 3.5和3.6. So, there's still probably 3 or 4 percent of the people out there using this browser that, if you're using HTML5 as the delivery method, you can only reach them by producing an Ogg Theora file."
Ozer then looked at the current state of H.264年支持:
"H.264 is the codec that's been used by Internet Explorer 9 and Safari, as well as being available on the iPhone and Android, but so far it's not integrated into Opera,欧泽说. "It's still in Chrome, but Google says they're going to take it out." Ozer has doubts that that will actually take place. "I think it's a pretty safe bet that Chrome will continue to play back H.264, but you don't get Firefox. Mozilla has said they may consider H.264, because they know they're losing market share because it's an important codec, but if you're an Opera user you may never get H.264."
Ozer then guided the audience through WebM browser support, before concluding that HTML5 still isn't the easy path for video that creators want.
"If you're trying to use one codec to deliver via HTML5, you can't do it. 事实上, if you want complete penetration over all HTML5-compatible browsers, you need to have three versions of your encoded file,欧泽说.
For advice on creating a useful HTML5 video strategy, watch the full video below and download a PDF of Ozer's presentation.
HOW-TO: Encoding Video for HTML5
Learn the technological fundamentals behind encoding both H.264 and WebM formats for playback with the HTML5 tag. Learn the basics of H.264 and WebM encoding, and how to produce it for HTML5 distribution. In addition, see how the various H.264 and WebM encoding tools compare in regards to performance, quality, and features.
发言人: 1月时, Principal, Doceo Publishing