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 IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "Video type parameters"

From WHATWG Wiki
Jump to: navigation, search
m (RFC for ogg)
(Data from Dave Singer)
Line 1: Line 1:
 
The <code><nowiki><video></nowiki></code> element allows UA capability-based fallback with multiple alternative video resources designated by multiple <code><nowiki><source></nowiki></code> elements. The UA is expected to pick the alternative it tries to play by comparing the information given in the <code><nowiki>type</nowiki></code> attribute against its knowledge about its own playback capabilities.
 
The <code><nowiki><video></nowiki></code> element allows UA capability-based fallback with multiple alternative video resources designated by multiple <code><nowiki><source></nowiki></code> elements. The UA is expected to pick the alternative it tries to play by comparing the information given in the <code><nowiki>type</nowiki></code> 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. [http://www.ietf.org/rfc/rfc4281.txt RFC 4281] defines a <code>codecs</code> 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 <code>video/3gpp; codecs="mp4v.20.8,samr"</code>.
+
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. [http://www.ietf.org/rfc/rfc4281.txt RFC 4281] defines a <code>codecs</code> 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 <code>video/3gpp; codecs="mp4v.20.9,samr"</code>.
  
 
The following list is organized by container.
 
The following list is organized by container.
Line 12: Line 12:
 
=== Video Codecs ===
 
=== Video Codecs ===
  
Theora: ''unknown''
+
* Theora: ''unknown''
 
+
* Dirac: ''unknown''
Dirac: ''unknown''
 
  
 
=== Audio Codecs ===
 
=== Audio Codecs ===
  
Vorbis: ''unknown''
+
* Vorbis: ''unknown''
  
 
== Matroska ==
 
== Matroska ==
Line 27: Line 26:
 
=== Video Codecs ===
 
=== Video Codecs ===
  
Theora: ''unknown''
+
* Theora: ''unknown''
 +
* Dirac: ''unknown''
 +
 
 +
=== Audio Codecs ===
 +
 
 +
* Vorbis: ''unknown''
 +
 
 +
== MP4 ==
 +
Main MIME type: <code>video/mp4</code> ([http://www.rfc-editor.org/rfc/rfc4337.txt RFC 4337])
 +
 
 +
Filename extension: <code>.mp4</code>
 +
 
 +
=== Video Codecs ===
  
Dirac: ''unknown''
+
* H.264 Baseline: <code>avc1.42E0<var>xx</var></code>, where <var>xx</var> is the AVC level
 +
* H.264 Main: <code>avc1.4D40<var>xx</var></code>, where <var>xx</var> is the AVC level
 +
* H.264 High: <code>avc1.6400<var>xx</var></code>, where <var>xx</var> is the AVC level
 +
* MPEG-4 Visual Simple Profile Level 0: <code>mp4v.20.9</code>
 +
* MPEG-4 Visual Advanced Simple Profile Level 0: <code>mp4v.20.240</code>
  
 
=== Audio Codecs ===
 
=== Audio Codecs ===
  
Vorbis: ''unknown''
+
* Low-Complexity AAC: <code>mp4a.40.2</code>

Revision as of 20:10, 9 April 2007

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

Main MIME type: application/ogg (RFC 3534)

Filename extension: .ogg

Video Codecs

* Theora: unknown
* Dirac: unknown

Audio Codecs

* Vorbis: unknown

Matroska

Main MIME type: video/x-matroska

Filename extension: .mkv

Video Codecs

* Theora: unknown
* Dirac: unknown

Audio Codecs

* Vorbis: unknown

MP4

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