Compare Revisions

Media formats supported by the HTML audio and video elements

Revision 482967:

Revision 482967 by frankyan on

Revision 485253:

Revision 485253 by Hsivonen on

Title:
Media formats supported by the HTML audio and video elements
Media formats supported by the HTML audio and video elements
Slug:
HTML/Supported_media_formats
HTML/Supported_media_formats
Tags:
"Firefox","audio","HTML5","media formats","file formats","Media","video"
"Firefox","audio","HTML5","media formats","file formats","Media","video"
Content:

Revision 482967
Revision 485253
n101      The MP4 container format with the H.264 video codec and eitn101      The MP4 container format with the H.264 video codec and the
>her the AAC audio codec or the MP3 audio codec is natively suppor> AAC audio codec is natively supported by Internet Explorer, Safa
>ted by Internet Explorer, Safari and Chrome, but Chromium and Ope>ri and Chrome, but Chromium and Opera do not support the format. 
>ra do not support the format. Firefox will soon support the forma>IE and Chrome also support the MP3 audio codec in the MP4 contain
>t, but only when a third-party decoder is available.>er, but Safari does not. Firefox supports the format on some plat
 >forms, but only when a third-party decoder is available.
nn105    </p>
106    <h2>
107      MP3
108    </h2>
109    <p>
110      The MP3 audio format (.mp3, <code>audio/mpeg</code>; distin
 >ct from the above MP3 audio in an MP4 container case) is supporte
 >d in <code>&lt;audio&gt;</code> by Firefox when the operating sys
 >tem provides an MP3 decoder and by Internet Explorer, Chrome and 
 >Safari.
n143              Featuren149              Feature
n183              <code>&lt;audio&gt;</code>: WAVE, PCMn189              <code>&lt;audio&gt;</code>: PCM in WAVE
n203              <code>&lt;audio&gt;</code>: WebM, Vorbisn209              <code>&lt;audio&gt;</code>: Vorbis in WebM
n223              <code>&lt;audio&gt;</code>: Ogg, Vorbisn229              <code>&lt;audio&gt;</code>: Vorbis in Ogg
nn249              &lt;audio&gt;: MP3
250            </td>
251            <td>
252              {{ CompatVersionUnknown() }} (Not in Chromium)
253            </td>
254            <td>
255              Partial (see below)
256            </td>
257            <td>
258              9.0
259            </td>
260            <td>
261              {{ CompatNo() }}
262            </td>
263            <td>
264              3.1
265            </td>
266          </tr>
267          <tr>
268            <td>
243              <code>&lt;audio&gt;</code>: MP4, MP3269              <code>&lt;audio&gt;</code>: MP3 in MP4
270            </td>
271            <td>
272              <p>
273                {{ CompatUnknown() }}
274              </p>
275            </td>
276            <td>
277              {{ CompatUnknown() }}
278            </td>
279            <td>
280              {{ CompatUnknown() }}
281            </td>
282            <td>
283              {{ CompatUnknown() }}
284            </td>
285            <td>
286              {{ CompatUnknown() }}
287            </td>
288          </tr>
289          <tr>
290            <td>
291              <code>&lt;audio&gt;</code>: AAC in MP4
292            </td>
293            <td>
294              <p>
295                {{ CompatVersionUnknown() }} (Main only) (Not in 
 >Chromium)
296              </p>
297            </td>
298            <td>
299              <p>
300                Partial (see below)
301              </p>
302            </td>
303            <td>
304              9.0
305            </td>
306            <td>
307              {{ CompatNo() }}
308            </td>
309            <td>
310              3.1
311            </td>
312          </tr>
313          <tr>
314            <td>
315              <code>&lt;audio&gt;</code>: Opus in Ogg
316            </td>
317            <td>
318              27.0
319            </td>
320            <td>
321              {{ CompatGeckoDesktop("15.0") }}
322            </td>
323            <td>
324              {{ CompatUnknown() }}
325            </td>
326            <td>
327              {{ CompatUnknown() }}
328            </td>
329            <td>
330              {{ CompatUnknown() }}
331            </td>
332          </tr>
333          <tr>
334            <td>
335              <code>&lt;video&gt;</code>: VP8 and Vorbis in WebM
336            </td>
337            <td>
338              {{ CompatVersionUnknown() }}
339            </td>
340            <td>
341              {{ CompatGeckoDesktop("2.0") }}
342            </td>
343            <td>
344              9.0 (<a class="external" href="http://blogs.msdn.co
 >m/b/ie/archive/2011/03/16/html5-video-update-webm-for-ie9.aspx" t
 >itle="http://blogs.msdn.com/b/ie/archive/2011/03/16/html5-video-u
 >pdate-webm-for-ie9.aspx">must be installed separately</a>, e.g. <
 >a class="external" href="http://tools.google.com/dlpage/webmmf/" 
 >title="http://tools.google.com/dlpage/webmmf/">WebM MF</a>)
345            </td>
346            <td>
347              10.60
348            </td>
349            <td>
350              3.1 (must be installed separately, e.g. <a class="e
 >xternal" href="http://perian.org/" title="http://perian.org/">Per
 >ian</a>)
351            </td>
352          </tr>
353          <tr>
354            <td>
355              <code>&lt;video&gt;</code>:&nbsp; Theora and Vorbis
 > in Ogg
356            </td>
357            <td>
358              {{ CompatVersionUnknown() }}
359            </td>
360            <td>
361              {{ CompatGeckoDesktop("1.9.1") }}
362            </td>
363            <td>
364              {{ CompatNo() }}
365            </td>
366            <td>
367              10.50
368            </td>
369            <td>
370              3.1 (must be installed separately, e.g. <a class="e
 >xternal" href="http://www.xiph.org/quicktime/" title="http://www.
 >xiph.org/quicktime/">XiphQT</a>)
371            </td>
372          </tr>
373          <tr>
374            <td>
375              <code>&lt;video&gt;</code>:&nbsp; H.264 and MP3 in 
 >MP4
n251              <p>n
252                Partial (see below)383              Partial (see below)
253              </p>
n262              3.1n392              {{ CompatNo() }}
263            </td>
264          </tr>
265          <tr>
266            <td>393            </td>
267              <code>&lt;audio&gt;</code>: MP4, AAC394          </tr>
395          <tr>
268            </td>396            <td>
269            <td>
270              <p>
271                {{ CompatVersionUnknown() }} (Main only) (Not in 
>Chromium) 
272              </p>
273            </td>
274            <td>
275              <p>
276                Partial (see below)
277              </p>
278            </td>
279            <td>
280              9.0
281            </td>
282            <td>
283              {{ CompatNo() }}
284            </td>
285            <td>
286              3.1
287            </td>
288          </tr>
289          <tr>
290            <td>
291              <code>&lt;audio&gt;</code>: Ogg, Opus
292            </td>
293            <td>
294              27.0
295            </td>
296            <td>
297              {{ CompatGeckoDesktop("15.0") }}
298            </td>
299            <td>
300              {{ CompatUnknown() }}
301            </td>
302            <td>
303              {{ CompatUnknown() }}
304            </td>
305            <td>
306              {{ CompatUnknown() }}
307            </td>
308          </tr>
309          <tr>
310            <td>
311              <code>&lt;video&gt;</code>: WebM, VP8, Vorbis
312            </td>
313            <td>
314              {{ CompatVersionUnknown() }}
315            </td>
316            <td>
317              {{ CompatGeckoDesktop("2.0") }}
318            </td>
319            <td>
320              9.0 (<a class="external" href="http://blogs.msdn.co
>m/b/ie/archive/2011/03/16/html5-video-update-webm-for-ie9.aspx" t 
>itle="http://blogs.msdn.com/b/ie/archive/2011/03/16/html5-video-u 
>pdate-webm-for-ie9.aspx">must be installed separately</a>, e.g. < 
>a class="external" href="http://tools.google.com/dlpage/webmmf/"  
>title="http://tools.google.com/dlpage/webmmf/">WebM MF</a>) 
321            </td>
322            <td>
323              10.60
324            </td>
325            <td>
326              3.1 (must be installed separately, e.g. <a class="e
>xternal" href="http://perian.org/" title="http://perian.org/">Per 
>ian</a>) 
327            </td>
328          </tr>
329          <tr>
330            <td>
331              <code>&lt;video&gt;</code>: Ogg, Theora, Vorbis
332            </td>
333            <td>
334              {{ CompatVersionUnknown() }}
335            </td>
336            <td>
337              {{ CompatGeckoDesktop("1.9.1") }}
338            </td>
339            <td>
340              {{ CompatNo() }}
341            </td>
342            <td>
343              10.50
344            </td>
345            <td>
346              3.1 (must be installed separately, e.g. <a class="e
>xternal" href="http://www.xiph.org/quicktime/" title="http://www. 
>xiph.org/quicktime/">XiphQT</a>) 
347            </td>
348          </tr>
349          <tr>
350            <td>
351              <code>&lt;video&gt;</code>: MP4, H.264, MP3
352            </td>
353            <td>
354              <p>
355                {{ CompatVersionUnknown() }} (Not in Chromium)
356              </p>
357            </td>
358            <td>
359              Partial (see below)
360            </td>
361            <td>
362              9.0
363            </td>
364            <td>
365              {{ CompatNo() }}
366            </td>
367            <td>
368              3.1
369            </td>
370          </tr>
371          <tr>
372            <td>
373              <code>&lt;video&gt;</code>: MP4, H.264, AAC397              <code>&lt;video&gt;</code>: H.264 and AAC in MP4
n421              Feature<strong>†</strong>n445              Feature
n479              <code>&lt;audio&gt;</code>: WAVE, PCMn503              <code>&lt;audio&gt;</code>: PCM in WAVE
n508              <code>&lt;audio&gt;</code>: WebM, Vorbisn532              <code>&lt;audio&gt;</code>: Vorbis in WebM
n537              <code>&lt;audio&gt;</code>: Ogg, Vorbisn561              <code>&lt;audio&gt;</code>: Vorbis in Ogg
n566              <code>&lt;audio&gt;</code>: MP4, MP3n590              <code>&lt;audio&gt;</code>: MP3
n595              <code>&lt;audio&gt;</code>: MP4, AACn619              <code>&lt;audio&gt;</code>: MP3 in MP4
620            </td>
621            <td>
622              {{ CompatUnknown() }}
623            </td>
624            <td>
625              {{ CompatUnknown() }}
626            </td>
627            <td>
628              {{ CompatUnknown() }}
629            </td>
630            <td>
631              {{ CompatUnknown() }}
632            </td>
633            <td>
634              {{ CompatUnknown() }}
635            </td>
636            <td>
637              {{ CompatUnknown() }}
638            </td>
639            <td>
640              {{ CompatUnknown() }}
641            </td>
642            <td>
643              {{ CompatUnknown() }}
644            </td>
645          </tr>
646          <tr>
647            <td>
648              <code>&lt;audio&gt;</code>: AAC in MP4
n616              3.2n669              {{ CompatUnknown() }}
617            </td>
618            <td>670            </td>
619              {{ CompatUnknown() }}
620            </td>671            <td>
621          </tr>672              {{ CompatUnknown() }}
622          <tr>
623            <td>673            </td>
674          </tr>
675          <tr>
676            <td>
624              <code>&lt;audio&gt;</code>: Ogg, Opus677              <code>&lt;audio&gt;</code>: Opus in Ogg
n653              <code>&lt;video&gt;</code>: WebM, VP8, Vorbisn706              <code>&lt;video&gt;</code>:&nbsp; VP8 and Vorbis in
 > WebM
n682              <code>&lt;video&gt;</code>: Ogg, Theora, Vorbisn735              <code>&lt;video&gt;</code>: Theora and Vorbis in Og
 >g
n711              <code>&lt;video&gt;</code>: MP4, H.264, MP3n764              <code>&lt;video&gt;</code>:&nbsp; H.264 and MP3 in 
 >MP4
n732              3.2n785              {{ CompatUnknown() }}
n740              <code>&lt;video&gt;</code>: MP4, H.264, AACn793              <code>&lt;video&gt;</code>: H.264 and AAC in MP4
t799    <p>t
800      <strong>†</strong> In this column, after the media element 
>(<code>&lt;audio&gt;</code> or <code>&lt;video&gt;</code>) is lis 
>ted what follows is the container type, then the video format and 
> audio format inside the container (or just the audio format in t 
>he case of <code>&lt;audio&gt;</code>.) 
801    </p>

Back to History