A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.
To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).
Video type parameters
The <video>
element allows UA capability-based fallback with multiple alternative video resources designated by multiple <source>
elements. The UA is expected to pick the alternative it tries to play by comparing the information given in the type
attribute against its knowledge about its own playback capabilities.
The main media type designates the container format. In general, it does not say anything about codecs needed to decode the streams packaged in the container. RFC 4281 defines a codecs
MIME parameter for indicating which codecs are used within the container. The parameter takes a double-quoted comma-separated list of codec identifiers. For example, the MIME type for MPEG-4 Simple Profile Level 0 video and AMR audio in a 3GPP container (.3gp) is video/3gpp; codecs="mp4v.20.9,samr"
.
The following list is organized by container.
Ogg
MIME types: application/ogg
(RFC 3534), audio/ogg
, video/ogg
(RFC 5334)
Filename extension: .ogg
, .oga
, .ogv
This is not the complete set of codecs from RFC 5334. See also http://wiki.xiph.org/index.php/MIMETypesCodecs
Video Codecs
- Theora:
theora
- Dirac:
dirac
Audio Codecs
- Vorbis:
vorbis
- Speex:
speex
- FLAC:
flac
Matroska
Main MIME type: video/x-matroska
Filename extension: .mkv
Video Codecs
- Theora: unknown
- Dirac: unknown
Audio Codecs
- Vorbis: unknown
MPEG
MIME types: audio/mpeg
(RFC 3003), video/mpeg
(RFC 2046)
Filename extension: .mp1
, .mp2
, .mp3
, .mpg
, .mpeg
There are no registered codecs parameters.
MPEG-4
Main MIME type: video/mp4
(RFC 4337)
Filename extension: .mp4
Video Codecs
- H.264 Baseline:
avc1.42E0xx
, where xx is the AVC level - H.264 Main:
avc1.4D40xx
, where xx is the AVC level - H.264 High:
avc1.6400xx
, where xx is the AVC level - MPEG-4 Visual Simple Profile Level 0:
mp4v.20.9
- MPEG-4 Visual Advanced Simple Profile Level 0:
mp4v.20.240
Audio Codecs
- Low-Complexity AAC:
mp4a.40.2
3GPP
Main MIME type: video/3gpp
(RFC 3839)
Filename extension: .3gp
Video Codecs
- MPEG-4 Visual Simple Profile Level 0:
mp4v.20.9
Audio Codecs
- Low-Complexity AAC:
mp4a.40.2
- AMR:
samr
ASF
Main MIME type: video/x-ms-wmv
Filename extension: .wmv
Video Codecs
- Windows Media Video 8 (4CC: WMV2): unknown
- Windows Media Video 9 / VC-1 Main (4CC: WMV3): unknown
- Windows Media Video 9 Advanced / VC-1 Advanced (4CC: WVC1): unknown
Audio Codecs
- Windows Media Audio 2: unknown
- Windows Media Audio 10 Professional: unknown
Real Media
Main MIME type: application/vnd.rn-realmedia
Filename extension: .rm
Is this single-vendor format even relevant here?
WAVE
MIME types: audio/wave
, audio/wav
, audio/x-wav
Filename extension: .wav
Audio Codecs
RFC 2361 lists parameters to be used on the form audio/vnd.wave;codec=x
. These are also used for the codecs
parameter.
Browser Support
The table below lists the results of canPlayType(type)
for different browsers. It does not necessary relate to what the browsers actually can play.
MIME | Opera 11 | Firefox 4 | Chromium 9 | Safari 5 | IE 9 |
---|---|---|---|---|---|
application/ogg
|
"maybe" | "maybe" | "maybe" | "" | "" |
application/ogg; codecs=bogus
|
"" | "" | "maybe" | "" | "" |
application/mp4
|
"" | "" | "" | "" | "" |
application/mp4; codecs=bogus
|
"" | "" | "" | "" | "" |
application/octet-stream
|
"maybe" | "" | "" | "" | "maybe" |
application/octet-stream; codecs=bogus
|
"" | "" | "" | "" | "" |
audio/3gpp
|
"" | "" | "" | "" | "" |
audio/3gpp2
|
"" | "" | "" | "" | "" |
audio/aac
|
"" | "" | "" | "maybe" | "" |
audio/x-aac
|
"" | "" | "" | "maybe" | "" |
audio/aiff
|
"" | "" | "" | "maybe" | "" |
audio/x-aiff
|
"" | "" | "" | "maybe" | "" |
audio/ac3
|
"" | "" | "" | "maybe" | "" |
audio/x-ac3
|
"" | "" | "" | "maybe" | "" |
audio/basic
|
"" | "" | "" | "maybe" | "" |
audio/flac
|
"" | "" | "" | "" | "" |
audio/x-flac
|
"" | "" | "" | "" | "" |
audio/mid
|
"" | "" | "" | "maybe" | "" |
audio/midi
|
"" | "" | "" | "maybe" | "" |
audio/x-midi
|
"" | "" | "" | "maybe" | "" |
audio/mpeg
|
"" | "" | "" | "maybe" | "maybe" |
audio/x-mpeg
|
"" | "" | "" | "maybe" | "" |
audio/mpegurl
|
"" | "" | "" | "maybe" | "" |
audio/x-mpegurl
|
"" | "" | "" | "maybe" | "" |
audio/mp4
|
"" | "" | "" | "maybe" | "maybe" |
audio/mp4; codecs=bogus
|
"" | "" | "" | "probably" | "" |
audio/ogg
|
"maybe" | "maybe" | "maybe" | "" | "" |
audio/ogg; codecs=bogus
|
"" | "" | "maybe" | "" | "" |
audio/wav
|
"maybe" | "maybe" | "maybe" | "maybe" | "" |
audio/wav; codecs=0
|
"" | "" | "" | "probably" | "" |
audio/wav; codecs=1
|
"probably" | "probably" | "probably" | "probably" | "" |
audio/wav; codecs=2
|
"probably" | "" | "" | "probably" | "" |
audio/wave
|
"maybe" | "maybe" | "" | "" | "" |
audio/wave; codecs=0
|
"" | "" | "" | "" | "" |
audio/wave; codecs=1
|
"probably" | "probably" | "" | "" | "" |
audio/wave; codecs=2
|
"probably" | "" | "" | "" | "" |
audio/x-wav
|
"maybe" | "maybe" | "maybe" | "maybe" | "" |
audio/x-wav; codecs=0
|
"" | "" | "maybe" | "probably" | "" |
audio/x-wav; codecs=1
|
"probably" | "probably" | "probably" | "probably" | "" |
audio/x-wav; codecs=2
|
"probably" | "" | "maybe" | "probably" | "" |
audio/x-pn-wav
|
"" | "maybe" | "" | "" | "" |
audio/x-pn-wav; codecs=0
|
"" | "" | "" | "" | "" |
audio/x-pn-wav; codecs=1
|
"" | "probably" | "" | "" | "" |
audio/x-pn-wav; codecs=2
|
"" | "" | "" | "" | "" |
video/3gpp
|
"" | "" | "" | "maybe" | "" |
video/3gpp2
|
"" | "" | "" | "maybe" | "" |
video/avi
|
"" | "" | "" | "maybe" | "" |
video/mpeg
|
"" | "" | "" | "maybe" | "" |
video/x-mpeg
|
"" | "" | "" | "maybe" | "" |
video/mp4
|
"" | "" | "" | "maybe" | "maybe" |
video/mp4; codecs=bogus
|
"" | "" | "" | "probably" | "" |
video/msvideo
|
"" | "" | "" | "maybe" | "" |
video/x-msvideo
|
"" | "" | "" | "maybe" | "" |
video/quicktime
|
"" | "" | "" | "maybe" | "" |
video/ogg
|
"maybe" | "maybe" | "maybe" | "" | "" |
video/ogg; codecs=bogus
|
"" | "" | "maybe" | "" | "" |
video/mp4; codecs="avc1.42E01E, mp4a.40.2"
|
"" | "" | "" | "probably" | "probably" |
video/mp4; codecs="avc1.58A01E, mp4a.40.2"
|
"" | "" | "" | "probably" | "probably" |
video/mp4; codecs="avc1.4D401E, mp4a.40.2"
|
"" | "" | "" | "probably" | "probably" |
video/mp4; codecs="avc1.64001E, mp4a.40.2"
|
"" | "" | "" | "probably" | "probably" |
video/mp4; codecs="mp4v.20.8, mp4a.40.2"
|
"" | "" | "" | "probably" | "" |
video/mp4; codecs="mp4v.20.240, mp4a.40.2"
|
"" | "" | "" | "probably" | "" |
video/3gpp; codecs="mp4v.20.8, samr"
|
"" | "" | "" | "probably" | "" |
video/ogg; codecs="theora, vorbis"
|
"probably" | "probably" | "probably" | "" | "" |
video/ogg; codecs="theora, speex"
|
"probably" | "" | "maybe" | "" | "" |
audio/ogg; codecs=vorbis
|
"probably" | "probably" | "probably" | "" | "" |
audio/ogg; codecs=speex
|
"probably" | "" | "maybe" | "" | "" |
audio/ogg; codecs=flac
|
"probably" | "" | "maybe" | "" | "" |
video/ogg; codecs="dirac, vorbis"
|
"probably" | "" | "maybe" | "" | "" |
video/x-matroska; codecs="theora, vorbis"
|
"" | "" | "" | "" | "" |
audio/webm
|
"maybe" | "probably" | "maybe" | "" | "" |
audio/webm; codecs=vorbis
|
"probably" | "probably" | "probably" | "" | "" |
video/webm
|
"maybe" | "probably" | "maybe" | "" | "" |
video/webm; codecs=vorbis
|
"probably" | "probably" | "probably" | "" | "" |
video/webm; codecs=vp8
|
"probably" | "probably" | "probably" | "" | "" |
video/webm; codecs=vp8.0
|
"probably" | "probably" | "probably" | "" | "" |
video/webm; codecs="vp8, vorbis"
|
"probably" | "probably" | "probably" | "" | "" |
MIME types used in the wild (in type="")
- http://simon.html5.org/dump/type-audio-video-philip-dotbot.xml (from 425k pages; thanks, Philip`!)
- http://simon.html5.org/dump/type-audio-video-google-code-search.txt
MIME type defaults in Web servers
- mime.types in Apache (trunk)
- MIME types in IIS (is there a newer one?)