[html5] r1057 - /

whatwg at whatwg.org whatwg at whatwg.org
Sat Oct 13 00:35:49 PDT 2007


Author: ianh
Date: 2007-10-13 00:35:45 -0700 (Sat, 13 Oct 2007)
New Revision: 1057

Modified:
   index
   source
Log:
[ago] (2) Explain codecs= values as examples to aid authors. Microsoft, Real, and others: please let me know what vodecs= values your media types (WMV, RM, etc) should have.

Modified: index
===================================================================
--- index	2007-10-13 06:40:08 UTC (rev 1056)
+++ index	2007-10-13 07:35:45 UTC (rev 1057)
@@ -15493,10 +15493,116 @@
    attribute gives the type of the <a href="#media8">media resource</a>, to
    help the user agent determine if it can play this <a href="#media8">media
    resource</a> before downloading it. Its value must be a MIME type. The
-   <code title="">codec</code> parameter may be specified and might be
+   <code title="">codecs</code> parameter may be specified and might be
    necessary to specify exactly how the resource is encoded. <a
    href="#refsRFC2046">[RFC2046]</a> <a href="#refsRFC4281">[RFC4281]</a>
 
+  <div class=example>
+   <p>The following list shows some examples of how to use the <code
+    title="">codecs=</code> MIME parameter in the <code
+    title=attr-source-type><a href="#type8">type</a></code> attribute.</p>
+
+   <dl>
+    <dt>H.264 Simple baseline profile video (main and extended video
+     compatible) level 3 and Low-Complexity AAC audio in MP4 container
+
+    <dd>
+     <pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.42E030, mp4a.40.2&quot;"></pre>
+
+    <dt>H.264 Extended profile video (baseline-compatible) level 3 and
+     Low-Complexity AAC audio in MP4 container
+
+    <dd>
+     <pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.58A030, mp4a.40.2&quot;"></pre>
+
+    <dt>H.264 Main profile video level 3 and Low-Complexity AAC audio in MP4
+     container
+
+    <dd>
+     <pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.4D4030, mp4a.40.2&quot;"></pre>
+
+    <dt>H.264 "High" profile video (incompatible with main, baseline, or
+     extended profiles) level 3 and Low-Complexity AAC audio in MP4 container
+
+    <dd>
+     <pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.640030, mp4a.40.2&quot;"></pre>
+
+    <dt>MPEG-4 Visual Simple Profile Level 0 video and Low-Complexity AAC
+     audio in MP4 container
+
+    <dd>
+     <pre><source src="video.mp4" type="video/mp4; codecs=&quot;mp4v.20.8, mp4a.40.2&quot;"></pre>
+
+    <dt>MPEG-4 Advanced Simple Profile Level 0 video and Low-Complexity AAC
+     audio in MP4 container
+
+    <dd>
+     <pre><source src="video.mp4" type="video/mp4; codecs=&quot;mp4v.20.240, mp4a.40.2&quot;"></pre>
+
+    <dt>MPEG-4 Visual Simple Profile Level 0 video and AMR audio in 3GPP
+     container
+
+    <dd>
+     <pre><source src="video.3gp" type="video/3gpp; codecs=&quot;mp4v.20.8, samr&quot;"></pre>
+
+    <dt>Theora video and Vorbis audio in Ogg container
+
+    <dd>
+     <pre><source src="video.ogg" type="application/ogg; codecs=&quot;theora, vorbis&quot;"></pre>
+
+    <dt>Theora video and Speex audio in Ogg container
+
+    <dd>
+     <pre><source src="video.ogg" type="application/ogg; codecs=&quot;theora, speex&quot;"></pre>
+
+    <dt>Vorbis audio alone in Ogg container
+
+    <dd>
+     <pre><source src="video.ogg" type="application/ogg; codecs=vorbis"></pre>
+    </dd>
+    <!-- awaiting definition by the Ogg or BBC guys:
+    <dt>Dirac video and Vorbis audio in Ogg container</dt>
+    <dd><pre><source src="video.ogg" type="application/ogg; codecs="></pre></dd>
+-->
+
+    <dt>Theora video and Vorbis audio in Matroska container
+
+    <dd>
+     <pre><source src="video.mkv" type="video/x-matroska; codecs=&quot;theora, vorbis&quot;"></pre>
+    </dd>
+    <!-- awaiting definition by the Ogg or BBC guys:
+    <dt>Dirac video and Vorbis audio in Matroska container</dt>
+    <dd><pre><source src="video.mkv" type="video/x-matroska; codecs="></pre></dd>
+-->
+    <!-- awaiting definition by the Microsoft guys:
+
+    <dt>WMV9 video and WMA 2 audio in ASF container</dt>
+    <dd><pre><source src="video.wmv" type="video/x-ms-wmv; codecs="></pre></dd>
+
+    <dt>WMV8 video and WMA 2 audio in ASF container</dt>
+    <dd><pre><source src="video.wmv" type="video/x-ms-wmv; codecs="></pre></dd>
+
+    <dt>VC-1 video and WMA 10 Pro audio in ASF container</dt>
+    <dd><pre><source src="video.wmv" type="video/x-ms-wmv; codecs="></pre></dd>
+
+    <dt>XviD video and MP3 audio in AVI container</dt>
+    <dd><pre><source src="video.avi" type="video/x-msvideo; codecs="></pre></dd>
+
+    <dt>Motion-JPEG video and uncompressed PCM audio in AVI container</dt>
+    <dd><pre><source src="video.avi" type="video/x-msvideo; codecs="></pre></dd>
+
+-->
+    <!-- awaiting definition by Real:
+    <dt>Real Video 10 video and High-Efficiency AAC audio in Real Media container</dt>
+    <dd><pre><source src="video.rm" type="application/vnd.rn-realmedia; codecs="></pre></dd>
+-->
+    <!--  undefined:
+    <dt>MPEG-1 video and MPEG-1 Audio Layer II audio in MPEG-1 program stream</dt>
+    <dd><pre><source src="video.mpg" type="video/mpeg; codecs="></pre></dd>
+-->
+   </dl>
+  </div>
+
   <p>The <dfn id=media9 title=attr-source-media><code>media</code></dfn>
    attribute gives the intended media type of the <a href="#media8">media
    resource</a>, to help the user agent determine if this <a
@@ -44680,18 +44786,17 @@
    &#xc724;&#xc11d;&#xcc2c; (Channy Yun), Charl van
    Niekerk<!--status.whatwg.org maintainer-->, Charles Iliya Krempeaux,
    Charles McCathieNevile, Christian Biesinger, Christian Johansen, Chriswa,
-   Daniel Peng, Daniel Spång, Darin Alder, Darin Fisher, Dave
-   Townsend<!-- Mossop on moz irc -->, David Baron, David Flanagan, David
-   Håsäther, David Hyatt, Derek Featherstone, Dimitri Glazkov,
-   dolphinling, Doron Rosenberg, Eira Monstad, Elliotte Harold, Erik
+   Daniel Peng, Daniel Spång, Darin Alder, Darin Fisher, Dave Singer,
+   Dave Townsend<!-- Mossop on moz irc -->, David Baron, David Flanagan,
+   David Håsäther, David Hyatt, Derek Featherstone, Dimitri
+   Glazkov, dolphinling, Doron Rosenberg, Eira Monstad, Elliotte Harold, Erik
    Arvidsson, Evan Martin, fantasai, Franck 'Shift' Quélain, Geoffrey
    Sneddon, Håkon Wium Lie, Henri Sivonen, Henrik Lied, Ignacio Javier,
    J. King, James Graham, James M Snell, James Perrett, Jan-Klaas Kollhof,
    Jasper Bryant-Greene, Jeff Cutsinger, Jeff Walden, Jens Bannmann, Jeroen
    van der Meer, Joel Spolsky, John Boyer, John Harding, Johnny Stenback, Jon
    Perlow, Jonathan Worent, Jorgen Horstink, Josh Levenberg, Joshua Randall,
-   Jukka K. Korpela, Kai Hendry, <!-- Keryx
-  Web, = Lars Gunther --> Kornel
+   Jukka K. Korpela, Kai Hendry, <!-- Keryx Web, = Lars Gunther --> Kornel
    Lesinski, &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi), Kristof
    Zelechovski, Lachlan Hunt, Larry Page, Lars Gunther, Laurens Holst, Lenny
    Domnitser, Léonard Bouchet, Leons Petrazickis,
@@ -44706,9 +44811,9 @@
    Mikko Rantalainen, Neil Deakin, Olav Junker Kjær, Philip Taylor,
    Rajas Moonka, Rimantas Liubertas, Robert O'Callahan, Robert Sayre, Roman
    Ivanov, S. Mike Dierken, Sam Ruby, Sam Weinig, Scott Hess, Sean Knapp,
-   Shaun Inman, Simon Pieters, Stefan Haustein, Stephen Ma, Steve Runyon,
-   Steven Garrity, Stewart Brodie, Stuart Parmenter, Tantek Çelik,
-   Thomas Broyer, Thomas O'Connor, Tim Altman, Vladimir
+   Shaun Inman, Silvia Pfeiffer, Simon Pieters, Stefan Haustein, Stephen Ma,
+   Steve Runyon, Steven Garrity, Stewart Brodie, Stuart Parmenter, Tantek
+   Çelik, Thomas Broyer, Thomas O'Connor, Tim Altman, Vladimir
    Vuki&#x0107;evi&#x0107;, Wakaba, William Swanson, Øistein E.
    Andersen, and everyone on the WHATWG mailing list for their useful and
    substantial comments.

Modified: source
===================================================================
--- source	2007-10-13 06:40:08 UTC (rev 1056)
+++ source	2007-10-13 07:35:45 UTC (rev 1057)
@@ -13128,11 +13128,100 @@
   attribute gives the type of the <span>media resource</span>, to help
   the user agent determine if it can play this <span>media
   resource</span> before downloading it. Its value must be a MIME
-  type. The <code title="">codec</code> parameter may be specified and
+  type. The <code title="">codecs</code> parameter may be specified and
   might be necessary to specify exactly how the resource is
   encoded. <a href="#refsRFC2046">[RFC2046]</a> <a
   href="#refsRFC4281">[RFC4281]</a></p>
 
+  <div class="example">
+
+   <p>The following list shows some examples of how to use the <code
+   title="">codecs=</code> MIME parameter in the <code
+   title="attr-source-type">type</code> attribute.</p>
+
+   <dl>
+
+    <dt>H.264 Simple baseline profile video (main and extended video compatible) level 3 and Low-Complexity AAC audio in MP4 container</dt>
+    <dd><pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.42E030, mp4a.40.2&quot;"></pre></dd>
+
+    <dt>H.264 Extended profile video (baseline-compatible) level 3 and Low-Complexity AAC audio in MP4 container</dt>
+    <dd><pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.58A030, mp4a.40.2&quot;"></pre></dd>
+
+    <dt>H.264 Main profile video level 3 and Low-Complexity AAC audio in MP4 container</dt>
+    <dd><pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.4D4030, mp4a.40.2&quot;"></pre></dd>
+
+    <dt>H.264 "High" profile video (incompatible with main, baseline, or extended profiles) level 3 and Low-Complexity AAC audio in MP4 container</dt>
+    <dd><pre><source src="video.mp4" type="video/mp4; codecs=&quot;avc1.640030, mp4a.40.2&quot;"></pre></dd>
+
+
+    <dt>MPEG-4 Visual Simple Profile Level 0 video and Low-Complexity AAC audio in MP4 container</dt>
+    <dd><pre><source src="video.mp4" type="video/mp4; codecs=&quot;mp4v.20.8, mp4a.40.2&quot;"></pre></dd>
+
+    <dt>MPEG-4 Advanced Simple Profile Level 0 video and Low-Complexity AAC audio in MP4 container</dt>
+    <dd><pre><source src="video.mp4" type="video/mp4; codecs=&quot;mp4v.20.240, mp4a.40.2&quot;"></pre></dd>
+
+    <dt>MPEG-4 Visual Simple Profile Level 0 video and AMR audio in 3GPP container</dt>
+    <dd><pre><source src="video.3gp" type="video/3gpp; codecs=&quot;mp4v.20.8, samr&quot;"></pre></dd>
+
+
+    <dt>Theora video and Vorbis audio in Ogg container</dt>
+    <dd><pre><source src="video.ogg" type="application/ogg; codecs=&quot;theora, vorbis&quot;"></pre></dd>
+
+    <dt>Theora video and Speex audio in Ogg container</dt>
+    <dd><pre><source src="video.ogg" type="application/ogg; codecs=&quot;theora, speex&quot;"></pre></dd>
+
+    <dt>Vorbis audio alone in Ogg container</dt>
+    <dd><pre><source src="video.ogg" type="application/ogg; codecs=vorbis"></pre></dd>
+
+<!-- awaiting definition by the Ogg or BBC guys:
+    <dt>Dirac video and Vorbis audio in Ogg container</dt>
+    <dd><pre><source src="video.ogg" type="application/ogg; codecs="></pre></dd>
+-->
+
+    <dt>Theora video and Vorbis audio in Matroska container</dt>
+    <dd><pre><source src="video.mkv" type="video/x-matroska; codecs=&quot;theora, vorbis&quot;"></pre></dd>
+
+<!-- awaiting definition by the Ogg or BBC guys:
+    <dt>Dirac video and Vorbis audio in Matroska container</dt>
+    <dd><pre><source src="video.mkv" type="video/x-matroska; codecs="></pre></dd>
+-->
+
+
+<!-- awaiting definition by the Microsoft guys:
+
+    <dt>WMV9 video and WMA 2 audio in ASF container</dt>
+    <dd><pre><source src="video.wmv" type="video/x-ms-wmv; codecs="></pre></dd>
+
+    <dt>WMV8 video and WMA 2 audio in ASF container</dt>
+    <dd><pre><source src="video.wmv" type="video/x-ms-wmv; codecs="></pre></dd>
+
+    <dt>VC-1 video and WMA 10 Pro audio in ASF container</dt>
+    <dd><pre><source src="video.wmv" type="video/x-ms-wmv; codecs="></pre></dd>
+
+    <dt>XviD video and MP3 audio in AVI container</dt>
+    <dd><pre><source src="video.avi" type="video/x-msvideo; codecs="></pre></dd>
+
+    <dt>Motion-JPEG video and uncompressed PCM audio in AVI container</dt>
+    <dd><pre><source src="video.avi" type="video/x-msvideo; codecs="></pre></dd>
+
+-->
+
+
+<!-- awaiting definition by Real:
+    <dt>Real Video 10 video and High-Efficiency AAC audio in Real Media container</dt>
+    <dd><pre><source src="video.rm" type="application/vnd.rn-realmedia; codecs="></pre></dd>
+-->
+
+
+<!--  undefined:
+    <dt>MPEG-1 video and MPEG-1 Audio Layer II audio in MPEG-1 program stream</dt>
+    <dd><pre><source src="video.mpg" type="video/mpeg; codecs="></pre></dd>
+-->
+
+   </dl>
+
+  </div>
+
   <p>The <dfn title="attr-source-media"><code>media</code></dfn>
   attribute gives the intended media type of the <span>media
   resource</span>, to help the user agent determine if this
@@ -40591,18 +40680,18 @@
   van Niekerk<!--status.whatwg.org maintainer-->, Charles Iliya
   Krempeaux, Charles McCathieNevile, Christian Biesinger, Christian
   Johansen, Chriswa, Daniel Peng, Daniel Spång, Darin Alder,
-  Darin Fisher, Dave Townsend<!-- Mossop on moz irc -->, David Baron,
-  David Flanagan, David Håsäther, David Hyatt, Derek
-  Featherstone, Dimitri Glazkov, dolphinling, Doron Rosenberg, Eira
-  Monstad, Elliotte Harold, Erik Arvidsson, Evan Martin, fantasai,
-  Franck 'Shift' Quélain, Geoffrey Sneddon, Håkon Wium
-  Lie, Henri Sivonen, Henrik Lied, Ignacio Javier, J. King, James
-  Graham, James M Snell, James Perrett, Jan-Klaas Kollhof, Jasper
-  Bryant-Greene, Jeff Cutsinger, Jeff Walden, Jens Bannmann, Jeroen
-  van der Meer, Joel Spolsky, John Boyer, John Harding, Johnny
-  Stenback, Jon Perlow, Jonathan Worent, Jorgen Horstink, Josh
-  Levenberg, Joshua Randall, Jukka K. Korpela, Kai Hendry, <!-- Keryx
-  Web, = Lars Gunther --> Kornel Lesinski,
+  Darin Fisher, Dave Singer, Dave Townsend<!-- Mossop on moz irc -->,
+  David Baron, David Flanagan, David Håsäther, David Hyatt,
+  Derek Featherstone, Dimitri Glazkov, dolphinling, Doron Rosenberg,
+  Eira Monstad, Elliotte Harold, Erik Arvidsson, Evan Martin,
+  fantasai, Franck 'Shift' Quélain, Geoffrey Sneddon,
+  Håkon Wium Lie, Henri Sivonen, Henrik Lied, Ignacio Javier,
+  J. King, James Graham, James M Snell, James Perrett, Jan-Klaas
+  Kollhof, Jasper Bryant-Greene, Jeff Cutsinger, Jeff Walden, Jens
+  Bannmann, Jeroen van der Meer, Joel Spolsky, John Boyer, John
+  Harding, Johnny Stenback, Jon Perlow, Jonathan Worent, Jorgen
+  Horstink, Josh Levenberg, Joshua Randall, Jukka K. Korpela, Kai
+  Hendry, <!-- Keryx Web, = Lars Gunther --> Kornel Lesinski,
   &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi), Kristof
   Zelechovski, Lachlan Hunt, Larry Page, Lars Gunther, Laurens Holst,
   Lenny Domnitser, Léonard Bouchet, Leons Petrazickis,
@@ -40617,12 +40706,12 @@
   Mike Shaver, Mikko Rantalainen, Neil Deakin, Olav Junker Kjær,
   Philip Taylor, Rajas Moonka, Rimantas Liubertas, Robert O'Callahan,
   Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam Ruby, Sam Weinig,
-  Scott Hess, Sean Knapp, Shaun Inman, Simon Pieters, Stefan Haustein,
-  Stephen Ma, Steve Runyon, Steven Garrity, Stewart Brodie, Stuart
-  Parmenter, Tantek Çelik, Thomas Broyer, Thomas O'Connor, Tim
-  Altman, Vladimir Vuki&#x0107;evi&#x0107;, Wakaba, William Swanson,
-  Øistein E. Andersen, and everyone on the WHATWG mailing list
-  for their useful and substantial comments.</p>
+  Scott Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon Pieters,
+  Stefan Haustein, Stephen Ma, Steve Runyon, Steven Garrity, Stewart
+  Brodie, Stuart Parmenter, Tantek Çelik, Thomas Broyer, Thomas
+  O'Connor, Tim Altman, Vladimir Vuki&#x0107;evi&#x0107;, Wakaba,
+  William Swanson, Øistein E. Andersen, and everyone on the
+  WHATWG mailing list for their useful and substantial comments.</p>
 
   <p>Special thanks to Richard Williamson for creating the first
   implementation of <code>canvas</code> in Safari, from which the




More information about the Commit-Watchers mailing list