HTML5 and Video Bas Zoetekouw Bas.zoetekouw@surfnet.nl
HTML5 Video Report published (jan 2011) HTML5 Video: current status by Herman van Dompseler and Bas Zoetekouw Download at http://www.mediamosa.org/content/html5-video-current-situation 1 SURFnet - We make innovation work
What is HTML5? - HTML 2.0: 1995 - HTML 3.2: 1997 - HTML 4.0: 1998 - XHTML 1.0: 2000 - XHTML 1.1: 2001 - … - … - HTML5: 201x 2 SURFnet - We make innovation work
What is HTML5? HTML5 ≈ HTML + CSS + JS - Integrates multimedia: - 2D & 3D drawing (Canvas, WebGL) - Audio and video playback - Native SVG support - New semantic elements: - <nav>, <footer>, <figcaption>, <section> - Lots of other useful features: - Geolocation - Persistent offline storage (blob, SQL) - Multithreaded JS (“web workers”) - Web fonts - Extensive overview: http://slides.html5rocks.com/ 3 SURFnet - We make innovation work
HTML5: possibilities Limitless possibilities! - Webapps - Games - Multimedia 4 SURFnet - We make innovation work
HTML5 games 5 SURFnet - We make innovation work
Video: before HTML5 <object ¡width="640" ¡height="385"> ¡ ¡ ¡<param ¡name="movie" ¡value="http://www.youtube.com/v/qiD93UxvHRw?fs=1&hl=nl_NL"> ¡ ¡ ¡ ¡ ¡</param> ¡ ¡ ¡<param ¡name="allowFullScreen" ¡value="true"></param> ¡ ¡ ¡<param ¡name="allowscriptaccess" ¡value="always"></param> ¡ ¡ ¡<embed ¡src="http://www.youtube.com/v/qiD93UxvHRw?fs=1&hl=nl_NL” ¡ ¡ ¡ ¡ ¡type="application/x–shockwave–Flash” ¡allowscriptaccess="always” ¡ ¡ ¡ ¡ ¡allowfullscreen="true" ¡width="640" ¡height="385"> ¡ ¡ ¡</embed> ¡ </object> ¡ ¡ 6 SURFnet - We make innovation work
HTML5 and Video Support for playing video directly from the browser <video ¡id="movie" ¡width="320" ¡height="240" ¡preload ¡controls> ¡ ¡ ¡<source ¡src="MY_MOVIE.mp4" ¡/> ¡ ¡ ¡<source ¡src="MY_MOVIE.webm" ¡type='video/webm ¡/> ¡ </video> ¡ - No plugins required - Rendering of video is responsibility of the browser - Video fully accessible from Javascript/DOM - Styling using CSS 7 SURFnet - We make innovation work
Why HTML5-based video? - Easy & clean - Open standard - Cross-platform - No more plugins! - Fancy stuff: 8 SURFnet - We make innovation work
Support for HTML5 Video 9 SURFnet - We make innovation work
Browsers SURFmedia visitors (jan-feb 2011) IE9 1% Firefox 16% Internet Explorer 8 49% Non-IE browsers 34% Chrome 11% Internet Safari Explorer 7 6% 15% Other IE6 1% 1% 10 SURFnet - We make innovation work
Video formats for HTML5 - Video/audio codec support depends on browser/platform - Lots of politics involved - Platforms support own media format: - Apple supports Quicktime in OSX/iOS - Microsoft supports WMV in Windows 11 SURFnet - We make innovation work
Cross-platform Formats 3 cross-platform formats: - H.264 - Ogg - WebM 12 SURFnet - We make innovation work
Cross-platform Formats H.264: - MP4 container - H.264 video (baseline/main/high) - AAC audio o Modern codecs with high compression rate o Widely supported o Hardware implementation available o Very good video-encoders available (x264) o Licensing fees required 13 SURFnet - We make innovation work
Cross-platform Formats Ogg: - Ogg container - Theora (VP3) video - Vorbis audio o Slightly dated video codec o Decent quality video o No hardware implementations o Not very widely supported o Open format, free to use 14 SURFnet - We make innovation work
New kid on the block WebM: - VP8 video - Vorbis audio - Simplified Matroska container o Open and Free o Slightly less advanced than H.264 o Support growing rapidly o Problems: - Ulterior motives? - Possible patent issues 15 SURFnet - We make innovation work
New kid on the block “A key factor in the web’s success is that its core technologies such as HTML, HTTP, TCP/IP, etc. are open and freely implementable. Though video is also now core to the web experience, there is unfortunately no open and free video format that is on par with the leading commercial choices. To that end, we are excited to introduce WebM, a broadly-backed community effort to develop a world-class media format for the open web.” 16 SURFnet - We make innovation work
Client support Internet Firefox Chrome Safari Opera Explorer 8 9 3.6 4.0 6+ 3+ 10.6+ Ogg/Theora/Vorbis – – ! ! ! – ! MP4/H.264/AAC/ – ! – – ! ! – WebM/VP8/Vorbis – ! – ! ! – ! No single cross-platform format - Need H.264 and (WebM or Ogg) Mobile world even more problematic. 17 SURFnet - We make innovation work
Nothing settled yet How quickly will IE9 and Firefox 4 be adopted? Lots of developments: - H.264 will stay free for consumers - Adobe Flash will support WebM - Google supports WebM in Internet Explorer (!) - Google drops support for MP4/H.264 from Chrome - Microsoft supports MP4/H.264 in Chrome (!) What’s next? 18 SURFnet - We make innovation work
Why no HTML5? - Complexity shifted to video backend - Need to support different/multiple formats - Some features not available (yet?): - DRM - Live recordings - RTP streaming/multicast 19 SURFnet - We make innovation work
Conclusion HTML5 Video is here to stay - Abide your time - But be prepared 20 SURFnet - We make innovation work
Be prepared! - Get rid of proprietary formats - Add support for Ogg or WebM - Possible right now: implement HTML5 video with Flash fallback 21 SURFnet - We make innovation work
http://www.mediamosa.org/content/html5-‑video-‑current-‑situation ¡ http://demo.mediamosa.org/content/html5-‑browser-‑support ¡ Bas Zoetekouw b.zoetekouw@surfnet.nl www.surfnet.nl Presentation released under Creative Commons http://creativecommons.org/licenses/by/3.0/ 22 SURFnet - We make innovation work
Recommend
More recommend