HTML5 video

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
Lua error in package.lua at line 80: module 'strict' not found.

The HTML5 specification introduced the video element for the purpose of playing videos,[1] partially replacing the object element. HTML5 video is intended by its creators to become the new standard way to show video on the web without plugins, instead of the previous de facto standard of using the proprietary Adobe Flash plugin, though early adaption was hampered by lack of agreement as to which video coding formats should be supported in web browsers.

History of <video> element

The <video> element was proposed by Opera Software in February 2007.[2] Opera also released a preview build that was showcased the same day,[3][4] and a manifesto that called for video to become a first-class citizen of the web.[5]

<video> element examples

The following HTML5 code fragment will embed a WebM video into a web page.

<video src="movie.webm" poster="movie.jpg" controls>
	This is fallback content to display for user agents that do not support the video tag.
</video>

The "controls" attribute enables the browser's own user interface for controlling playback. Alternatively, playback can be controlled with JavaScript, which the web designer can use to create a custom user interface. The optional "poster" attribute specifies an image to show in the video's place before playback is started. Its purpose is to be representative of the video.

Multiple sources

Video format support varies among browsers (see below), so a web page can provide video in multiple formats. For other features, browser sniffing is used sometimes, which may be error-prone: any web developer's knowledge of browsers will inevitably be incomplete or not up-to-date. The browser in question "knows best" what formats it can use. The "video" element supports fallback through specification of multiple sources. Using any number of <source> elements, as shown below, the browser will choose automatically which file to download. Alternatively, the JavaScript canPlayType() function can be used to achieve the same. The "type" attribute specifies the MIME type and possibly a list of codecs, which helps the browser to determine whether it can decode the file. Even with only one choice, such hints may be necessary to a browser for querying its multimedia framework for third party codecs.

<video poster="movie.jpg" controls>
	<source src="movie.webm" type='video/webm; codecs="vp8.0, vorbis"'>
	<source src="movie.ogv" type='video/ogg; codecs="theora, vorbis"'>
	<source src="movie.mp4" type='video/mp4; codecs="avc1.4D401E, mp4a.40.2"'>
	<p>This is fallback content to display for user agents that do not support the video tag.</p>
</video>

Supported video formats

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

The HTML5 specification does not specify which video and audio formats browsers should support. User agents are free to support any video formats they feel are appropriate, but content authors cannot assume that any video will be accessible by all complying user agents, since user agents have no minimal set of video formats to support.

The HTML5 Working Group considered it desirable to specify at least one video format which all user agents (browsers) should support. The ideal format in this regard would:

  • Have good compression, good image quality, and low decode processor use.
  • Be royalty-free.
  • In addition to software decoders, a hardware video decoder should exist for the format, as many embedded processors do not have the performance to decode video.

Initially, Ogg Theora was the recommended standard video format in HTML5, because it was not affected by any known patents. But on December 10, 2007, the HTML5 specification was updated,[6] replacing the reference to concrete formats:

<templatestyles src="Template:Blockquote/styles.css" />

User agents should support Theora video and Vorbis audio, as well as the Ogg container format.

with a placeholder:[7]

<templatestyles src="Template:Blockquote/styles.css" />

It would be helpful for interoperability if all browsers could support the same codecs. However, there are no known codecs that satisfy all the current players: we need a codec that is known to not require per-unit or per-distributor licensing, that is compatible with the open source development model, that is of sufficient quality as to be usable, and that is not an additional submarine patent risk for large companies. This is an ongoing issue and this section will be updated once more information is available.[8]

The result has been the polarisation of HTML5 video between industry-standard, ISO-defined but patented formats, and free, open formats.

Free formats

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

Although Theora is not affected by known non-free patents, Apple[9] has expressed concern about unknown patents that might affect it, whose owners might be waiting for a corporation with extensive financial resources to use the format before suing.[10][11] Formats like H.264 might also be subject to unknown patents in principle, but they have been deployed much more widely and so it is presumed that any patent-holders would have already made themselves known. Apple has also opposed requiring Ogg format support in the HTML standard (even as a "should" requirement) on the grounds that some devices might support other formats much more easily, and that HTML has historically not required particular formats for anything.[11]

Some web developers criticized the removal of the Ogg formats from the specification.[12] A follow-up discussion also occurred on the W3C questions and answers blog.[13]

Mozilla and Opera support only the open formats of Theora and WebM. Google stated its intention to remove support for H.264 in 2011, specifically for the HTML5 video tag.[14] Although it has been removed from Chromium, As of September 2015 it has yet to be removed from Google Chrome four years later.[15][16]

MPEG-DASH Support via the HTML5 Media Source Extensions (MSE)

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

The adaptive bitrate streaming standard MPEG-DASH can be used in Web browsers via the HTML5 Media Source Extensions (MSE)[17] and JavaScript-based DASH players. Such players are, e.g., the open-source project dash.js[17] of the DASH Industry Forum, but there are also products such as bitdash of bitmovin[18] (using HTML5 with JavaScript, but also a Flash-based DASH players for legacy Web browsers not supporting the HTML5 MSE).

Google's purchase of On2

Google's acquisition of On2 in 2010 resulted in its acquisition of the VP8 video format. Google has provided a royalty-free license to use VP8.[19] Google also started WebM, which combines the standardized open source VP8 video codec with Vorbis audio in a Matroska based container. The opening of VP8 was welcomed by the Free Software Foundation.[20]

When Google announced in January 2011 that it would end native support of H.264 in Chrome,[21] criticism came from many quarters including Peter Bright of Ars Technica[22] and Microsoft web evangelist Tim Sneath, who compared Google's move to declaring Esperanto the official language of the United States.[23] However, Haavard Moen of Opera Software strongly criticized the Ars Technica article[24] and Google responded to the reaction by clarifying its intent to promote WebM in its products on the basis of openness.[14]

After the launch of WebM, Mozilla and Opera have called for the inclusion of VP8 in HTML.[25]

On March 7, 2013, Google Inc. and MPEG LA, LLC announced agreements covering techniques that "may be essential" to VP8, with Google receiving a license from MPEG LA and 11 patent holders, and MPEG LA ending its efforts to form a VP8 patent pool.[26][27][28][29]

Non-free formats

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

H.264/MPEG-4 AVC is widely used, and has good speed, compression, hardware decoders, and video quality, but is patent-encumbered.[30] Users of H.264 need licenses either from the individual patent holders, or from the MPEG LA, a group of patent holders including Microsoft and Apple, except for some Internet broadcast video uses.[31] H.264 is usually used in the MP4 container format, together with Advanced Audio Coding (AAC) audio. AAC is also patented in itself, so users of MP4 will have to license both H.264 and AAC.

In June 2009, the WHATWG concluded that no existing format was suitable as a specified requirement.[32]

Apple and Microsoft support only H.264.

Cisco makes a licensed H.264 binary module available for free

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

On October 30, 2013, Cisco announced that they were making a binary H.264 module available for download. Cisco will pay the costs of patent licensing for those binary modules when downloaded by the using software while it is being installed, making H.264 free to use in that specific case.[33]

In the announcement, Cisco cited its desire of furthering the use of the WebRTC project as the reason, since WebRTC's video chat feature will benefit from having a video format supported in all browsers.[34] The H.264 module will be available on "all popular or feasibly supportable platforms, which can be loaded into any application".[35]

Cisco is also planning to publish source code for those modules under BSD license, but without paying the royalties,[33] so the code will practically be free software only in countries without H.264 software patents, which has already been true about other existing implementations.

Also on October 30, 2013, Mozilla's Brendan Eich announced that Firefox would automatically download Cisco's H.264 module when needed by default. He also noted that the binary module is not a perfect solution, since users do not have full free software rights to "modify, recompile, and redistribute without license agreements or fees". Thus Xiph and Mozilla continue the development of Daala.[35][36]

OpenH264 only supports the baseline profile of H.264, and does not by itself address the need for an AAC decoder. Therefore, it is not considered sufficient for typical MP4 web video, which is typically in the high profile with AAC audio.[37][38][39] However, for use in WebRTC, the omission of AAC was justified in the release announcement: "the standards bodies have aligned on Opus and G.711 as the common audio codecs for WebRTC".[34] There is doubt as to whether a capped global licensing of AAC, like Cisco's for H.264, is feasible after AAC's licensing bureau removed the price cap shortly after the release of OpenH264.[40]

Browser support

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

This table shows which video formats are likely to be supported by a given user agent. Most of the browsers listed here use a multimedia framework for decoding and display of video, instead of incorporating such software components. It is not generally possible to tell the set of formats supported by a multimedia framework without querying it, because that depends on the operating system and third party codecs.[41] In these cases, video format support is an attribute of the framework, not the browser (or its layout engine), assuming the browser properly queries its multimedia framework before rejecting unknown video formats. In some cases, the support listed here is not a function of either codecs available within the operating system's underlying media framework, or of codec capabilities built into the browser, but rather could be by a browser add-on that might, for example, bypass the browser's normal HTML parsing of the <video> tag to embed a plug-in based video player.

The video format can be specified by MIME type in HTML (see example). MIME types are used for querying multimedia frameworks for supported formats.[42]

Of these browsers, only Firefox and Opera employ libraries for built-in decoding. In practice, Internet Explorer and Safari can also guarantee certain format support, because their manufacturers also make their multimedia frameworks. At the other end of the scale, Konqueror has identical format support to Internet Explorer when run on Windows, and Safari when run on Mac, but the selected support here for Konqueror is the typical for GNU/Linux, where Konqueror has most of its users. In general, the format support of browsers is much dictated by conflicting interests of vendors, specifically that Media Foundation and QuickTime support commercial standards, whereas GStreamer and Phonon cannot legally support other than free formats by default on the free operating systems that they are intended for.[43]

Browser Operating system Latest stable release Video formats supported
Theora H.264 (MP4) VP8 (WebM) VP9 (WebM)
Android browser Android Template:Latest stable software release/Android (operating system) 2.3[44] 3.0[44] 2.3[44] 4.4[45]
Chromium Unix-like and Windows N/A r18297[46] Manual install[note 1][48] r47759[49] r172738[50]
Google Chrome
Windows, OS X, Linux 51.0.2704.63 (May 25, 2016; 7 years ago (2016-05-25)[51]) [±]
Android 50.0.2661.87 (April 26, 2016; 7 years ago (2016-04-26)[52]) [±]
iOS 50.0.2661.95 (May 3, 2016; 7 years ago (2016-05-03)[53]) [±]
3.0[54][55] 3.0[55][note 2] 6.0[57][58] 29.0[note 3]
Internet Explorer Windows 11.0.27 (11.0.9600.18161) (January 12, 2016; 8 years ago (2016-01-12)[61]) [±] Manual install 9.0[62] Manual install No
Windows Phone 11.0 (February 10, 2014; 10 years ago (2014-02-10)) [±] No 9.0[63] No
Windows RT 10.0 10.0[63]
Microsoft Edge Windows 10 Windows 10
25.10586.0.0 (November 12, 2015; 8 years ago (2015-11-12)[64]) [±]

Windows 10 Mobile
25.10586.164.0 (March 17, 2016; 8 years ago (2016-03-17)[65]) [±]

Xbox One
25.10586.0.0 (November 12, 2015; 8 years ago (2015-11-12)[66]) [±]

No[67] 12.0[68] No Pending[69][note 4]
Windows 10 Mobile No 13.0[70] No Pending[69][note 5]
Konqueror All supported 4.14.3 (November 11, 2014; 9 years ago (2014-11-11)) [±][71] 4.4[note 6]
Mozilla Firefox Windows 7+ 43.0.4 (January 6, 2016; 8 years ago (2016-01-06)[73]) [±]
ESR

38.5.2 (December 22, 2015; 8 years ago (2015-12-22)[74]) [±]

3.5[75] 21.0[note 7] 4.0[78][79] 28.0[80][81]
Windows Vista 22.0[82]
Windows XP and N editions 45.0 (preview release)[83]
Linux 26.0 (using GStreamer)[note 8]
43.0 (using FFmpeg)[86]
Android 17.0[87]
OS X 34.0[88]
Firefox OS 1.1[89]
Opera
Android

36.2.2126.102826 (April 26, 2016; 7 years ago (2016-04-26)[90]) [±]

Android (classic)

12.1.8 (November 6, 2014; 9 years ago (2014-11-06)[91]) [±]

Symbian S60

12.0.22 (June 24, 2012; 11 years ago (2012-06-24)[92]) [±]

Windows Mobile

10.0 (March 16, 2010; 14 years ago (2010-03-16)[93]) [±]

13.0 11.50 15.0 16.0
34.0.2036.47 (January 12, 2016; 8 years ago (2016-01-12)[94]) [±] 10.50[95] 24.0[96] 10.60[97][98] No
Safari iOS 9.0.2 (December 8, 2015; 8 years ago (2015-12-08)[99]) [±] No 3.1[100][101] No No
OS X Manual install Manual install[102]
Web All supported 3.18 (September 23, 2015; 8 years ago (2015-09-23)[103]) [±] 2.28[note 9]
Notes
  1. Third-party codec packages are available.[47]
  2. On 11 January 2011 the removal of support for H.264 was announced on Chromium Blog.[56] As of 8 September 2012 neither actual support was removed, nor the change to this plan was announced.
  3. VP9 support in 25, turned off by default.[59] Enabled by default in version 29.[60]
  4. The Edge platform status feature list has WebM and VP9 marked as "In Development" while Opus and Vorbis are "Under Consideration" with high and medium priorities, respectively.
  5. The Edge platform status feature list has WebM and VP9 marked as "In Development" while Opus and Vorbis are "Under Consideration" with high and medium priorities, respectively.
  6. Any format supported by Phonon on Qt 4.5.[72] Any format supported by Phonon backend. Available Phonon backends include DirectShow, QuickTime, GStreamer and xine; backends using MPlayer and VLC are in development.
  7. As of version 20, prefed off by default.[76] Enabled by default beginning in version 21.[77]
  8. Disabled by default until version 26.[84] Also, depends on the codec on the system.[85]
  9. Any format supported by GStreamer on Webkit/GTK+.[104] The support for Ogg Theora, WebM and h.264 formats is included with base, good, and bad plugins respectively.[105]

Digital rights management (Encrypted Media Extensions)

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

HTML has support for digital rights management (DRM, restricting how content can be used) via the HTML5 Encrypted Media Extensions (EME). The addition of DRM is controversial because it allows restricting users' freedom to use media restricted by DRM, even where fair use gives users the legal right to do so.[106] A main argument in W3C's approval of EME was that the video content would otherwise be delivered in plugins and apps, and not in the web browser.[107]

In 2013 Netflix added support for HTML5 video using EME, beside their old delivery method using a Silverlight plugin (also with DRM).[108]

Usage

In 2010, in the wake of Apple iPad launch and after Steve Jobs announced that Apple mobile devices would not support Flash, a number of high-profile sites began to serve H.264 HTML5 video instead of Adobe Flash for user-agents identifying as iPad.[109] HTML5 video was not as widespread as Flash videos, though there were rollouts of experimental HTML5-based video players from DailyMotion (using Ogg Theora and Vorbis format),[110] YouTube (using the H.264 and WebM formats),[111] and Vimeo (using the H.264 format).[112]

Support for HTML5 video has been steadily increasing. In June 2013, Netflix added support for HTML5 video.[113] In January 2015, YouTube switched to using HTML5 video instead of Flash by default.[114] In December 2015, Facebook switched from Flash to HTML5 for all video content.[115]

As of 2016, Flash is still widely installed on desktops, while generally not being supported on mobile devices such as smartphones.[116] The Flash plugin is widely assumed, including by Adobe,[116][117] to be destined to be phased out.[118][119]

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. 11.0 11.1 Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. 14.0 14.1 Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. 17.0 17.1 HTML5 MSE
  18. bitdash MPEG-DASH Player (HTML5 & Flash) www.dash-player.com
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. Lua error in package.lua at line 80: module 'strict' not found.
  24. Lua error in package.lua at line 80: module 'strict' not found.
  25. Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. http://www.mpegla.com/Lists/MPEG%20LA%20News%20List/Attachments/88/n-13-03-07.pdf
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. http://www.fosspatents.com/2013/03/patent-clouds-remain-over-vp8-google.html
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. Lua error in package.lua at line 80: module 'strict' not found.
  33. 33.0 33.1 http://www.openh264.org/faq.html
  34. 34.0 34.1 Lua error in package.lua at line 80: module 'strict' not found.
  35. 35.0 35.1 Lua error in package.lua at line 80: module 'strict' not found.
  36. Lua error in package.lua at line 80: module 'strict' not found.
  37. Lua error in package.lua at line 80: module 'strict' not found.
  38. Lua error in package.lua at line 80: module 'strict' not found.
  39. Lua error in package.lua at line 80: module 'strict' not found.
  40. http://xiphmont.livejournal.com/63152.html
  41. Lua error in package.lua at line 80: module 'strict' not found.
  42. Lua error in package.lua at line 80: module 'strict' not found.
  43. Lua error in package.lua at line 80: module 'strict' not found.
  44. 44.0 44.1 44.2 Lua error in package.lua at line 80: module 'strict' not found.
  45. Lua error in package.lua at line 80: module 'strict' not found.
  46. Lua error in package.lua at line 80: module 'strict' not found.
  47. Lua error in package.lua at line 80: module 'strict' not found.
  48. http://superuser.com/questions/655605/how-do-i-add-mp3-mp4-and-h-264-support-to-chromium-on-windows
  49. Lua error in package.lua at line 80: module 'strict' not found.
  50. http://src.chromium.org/viewvc/chrome?view=rev&revision=172738
  51. Lua error in package.lua at line 80: module 'strict' not found.
  52. Lua error in package.lua at line 80: module 'strict' not found.
  53. Lua error in package.lua at line 80: module 'strict' not found.
  54. Lua error in package.lua at line 80: module 'strict' not found.
  55. 55.0 55.1 Lua error in package.lua at line 80: module 'strict' not found.
  56. Lua error in package.lua at line 80: module 'strict' not found.
  57. Lua error in package.lua at line 80: module 'strict' not found.
  58. Lua error in package.lua at line 80: module 'strict' not found.
  59. Lua error in package.lua at line 80: module 'strict' not found.
  60. Lua error in package.lua at line 80: module 'strict' not found.
  61. Lua error in package.lua at line 80: module 'strict' not found.
  62. Lua error in package.lua at line 80: module 'strict' not found.
  63. 63.0 63.1 Lua error in package.lua at line 80: module 'strict' not found.
  64. Lua error in package.lua at line 80: module 'strict' not found.
  65. Lua error in package.lua at line 80: module 'strict' not found.
  66. Lua error in package.lua at line 80: module 'strict' not found.
  67. http://dev.modern.ie/platform/status/theoravideocodec/
  68. http://html5test.com/compare/browser/ie-Edge.html
  69. 69.0 69.1 http://www.neowin.net/news/google-owned-webm-format-support-now-reaches-microsoft-edge
  70. http://html5test.com/compare/browser/wp-10.html
  71. Lua error in package.lua at line 80: module 'strict' not found.
  72. Lua error in package.lua at line 80: module 'strict' not found.
  73. Lua error in package.lua at line 80: module 'strict' not found.
  74. Lua error in package.lua at line 80: module 'strict' not found.
  75. Lua error in package.lua at line 80: module 'strict' not found.
  76. Lua error in package.lua at line 80: module 'strict' not found.
  77. Lua error in package.lua at line 80: module 'strict' not found.
  78. Lua error in package.lua at line 80: module 'strict' not found.
  79. Lua error in package.lua at line 80: module 'strict' not found.
  80. Lua error in package.lua at line 80: module 'strict' not found.
  81. http://www.mozilla.org/en-US/firefox/28.0/releasenotes/
  82. Lua error in package.lua at line 80: module 'strict' not found.
  83. Lua error in package.lua at line 80: module 'strict' not found.
  84. Lua error in package.lua at line 80: module 'strict' not found.
  85. Lua error in package.lua at line 80: module 'strict' not found.
  86. Lua error in package.lua at line 80: module 'strict' not found.
  87. http://arstechnica.com/information-technology/2012/11/mozilla-ships-firefox-with-h-264-support-on-android/
  88. Lua error in package.lua at line 80: module 'strict' not found.
  89. https://developer.mozilla.org/en-US/Apps/Build/Audio_and_video_delivery/H.264_support_in_Firefox
  90. Lua error in package.lua at line 80: module 'strict' not found.
  91. Lua error in package.lua at line 80: module 'strict' not found.
  92. Lua error in package.lua at line 80: module 'strict' not found.
  93. Lua error in package.lua at line 80: module 'strict' not found.
  94. Lua error in package.lua at line 80: module 'strict' not found.
  95. Lua error in package.lua at line 80: module 'strict' not found.
  96. http://blogs.opera.com/desktop/changelog-24/
  97. Lua error in package.lua at line 80: module 'strict' not found.
  98. Lua error in package.lua at line 80: module 'strict' not found.
  99. Lua error in package.lua at line 80: module 'strict' not found.
  100. Lua error in package.lua at line 80: module 'strict' not found..
  101. Lua error in package.lua at line 80: module 'strict' not found..
  102. Lua error in package.lua at line 80: module 'strict' not found.
  103. Lua error in package.lua at line 80: module 'strict' not found.
  104. Lua error in package.lua at line 80: module 'strict' not found.
  105. Lua error in package.lua at line 80: module 'strict' not found.
  106. http://www.defectivebydesign.org/sign-on-against-drm-in-html
  107. http://www.infoworld.com/article/2612478/html5/berners-lee-and-w3c-approve-html5-video-drm-additions.html?page=2
  108. http://techblog.netflix.com/2013/04/html5-video-at-netflix.html
  109. Lua error in package.lua at line 80: module 'strict' not found.
  110. Lua error in package.lua at line 80: module 'strict' not found.
  111. Lua error in package.lua at line 80: module 'strict' not found.
  112. Lua error in package.lua at line 80: module 'strict' not found.
  113. http://www.extremetech.com/computing/159960-netflix-switches-from-silverlight-to-html5-in-windows-8-1-reduces-cpu-usage-dramatically
  114. http://www.theverge.com/2015/1/27/7926001/youtube-drops-flash-for-html5-video-default
  115. http://www.theverge.com/2015/12/18/10623738/facebook-now-using-html5-all-videos
  116. 116.0 116.1 http://arstechnica.com/information-technology/2012/08/availability-of-adobes-flash-browser-plugin-discontinued-on-android/
  117. http://www.cio.com/article/2376661/internet/how-adobe-is-moving-on-from-flash-to-embrace-html5.html
  118. http://thenextweb.com/apps/2015/09/01/adobe-flash-just-took-another-step-towards-death-thanks-to-google/
  119. http://www.wired.com/2015/07/adobe-flash-player-die/

External links