Changes

Jump to: navigation, search

MIMETypesCodecs

254 bytes added, 16:12, 17 November 2015
MIME Types: Add Opus to the audio/ogg table
== Specification of MIME types and respective codecs parameter ==
 
Also includes a specification of the recommended file extensions to use with Ogg.
=== MIME Types ===
The following MIME types are now officially registered with IANA and specified with the IETF as [ftphttp://ftpwww.rfc-editorietf.org/in-notes/authorsrfc/rfc5334.txt RFC 5334] (well, almost,see [https://datatracker.ietf.org/idtracker/draft-goncalves-rfc3534bis/]):
* {| class="wikitable" style="text-align: center;"|-! MIME Type! Use! [[Ogg Skeleton|Skeleton]]<br />logical stream?! File<br />Extension(s)! Macintosh File<br />Type Code|-| video/ogg| video (possibly with audio)<br />encapsulated in Ogg| recommended| .ogv| OggV|-| audio/ogg| audio<br />encapsulated in Ogg| recommended| .oga<br />.ogg ([[Vorbis]] I)<br />.opus ([[Opus]])<br />.spx ([[Speex]])| OggA|-| application/ogg - for | complex, /multitrack, /multiplexed files <br />encapsulated in Ogg** requires a Skeleton logical bitstream| required** | .ogx file extension** Macintosh File Type Code: | OggX|}
* video/ogg - for video encapsulated [[MIME_Types_and_File_Extensions|Other MIME types]] are still in Ogg** recommends a Skeleton logical bitstrem** the registration process.ogv file extension** Macintosh File Type Code: OggV
* audio/ogg - for audio encapsulated in Ogg** recommends a Skeleton logical bitstrem** .oga file extension, .ogg for Vorbis I, .spx for Speex** Macintosh File Type Code: OggA  [[MIME_Types_and_File_Extensions|Other MIME types]] are still in the process.=== Codecs Parameter ===
=== Codecs Parameter ===[http://www.rfc-editor.org/rfc/rfc4281.txt Typically], MIME types of media encapsulation formats use the optional "codecs" parameter to specify which codecs are being used in a particular file.
[http://www.rfc-editor.org/rfc/rfc4281.txt Typically], MIME types Codecs encapsulated in Ogg require a text identifier at the beginning of media encapsulation formats use the optional "first header page to identify the encapsulated codecs" parameter to specify which codes are being used in a particular file.
Codecs encapsulated in Ogg require a text identifier at the beginning of the first header page to identify the encapsulated codecs. The following table contains the identifiers for existing Xiph codecs and the codecs codec parameter names used for */ogg MIME types (in alphabetical order):
{| class="codecstablewikitable" border="1"
|-
! Codecs Parameter Name
(decimal, hex, octal)
! Version Field (if available)
|-
| [http://wiki.xiph.org/index.php/OggDirac dirac]
| video
| char[0,5]: <tt>'BBCD\0'</tt>
hex: <tt>'0x42 0x42 0x43 0x44 00'</tt>
 
oct: <tt>'0102 0102 0103 0104 0000'</tt>
| ??
|-
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h celt]
| char[8,2]: major version number,
char[10,2]: minor version number
|-
| [[OggDirac|dirac]]
| video
| char[0,5]: <tt>'BBCD\0'</tt>
hex: <tt>'0x42 0x42 0x43 0x44 0x00'</tt>
 
oct: <tt>'0102 0102 0103 0104 0000'</tt>
| ??
|-
| [http://flac.sourceforge.net/ogg_mapping.html flac]
oct: <tt>'0212 0115 0116 0107 0015 0012 0032 0012'</tt>
| ??
|-
| [[OggOpus|opus]]
| audio
| char[0,8]: <tt>'OpusHead'</tt>
hex: <tt>'0x4f 0x70 0x75 0x73 0x48 0x65 0x61 0x64'</tt>
 
oct: <tt>'0117 0160 0165 0163 0110 0150 0141 0145 1044'</tt>
| char[8,1]: version field
|-
| [[OggPCM|pcm]]
| audio
| char[0,8]: <tt>'PCM\ \ \ \ \ '</tt>
hex: <tt>'0x53 0x70 0x65 0x65 0x78 0x50 0x43 0x4d 0x20 0x20 0x20 0x20 0x20'</tt>
oct: <tt>'0123 0160 0145 0145 0170 0120 0103 0115 0040 0040 0040 0040 0040'</tt>
| char[8,2]: version major field,
char[10,2]: version minor field
| char[7,4]: version field
|-
| [[OggYUV4MPEG| yuv4mpeg]]
| video
| char[0,8]: <tt>'YUV4MPEG'</tt>
hex: <tt>'0x59 0x55 0x56 0x34 0x4d 0x50 0x45 0x47 0x32'</tt>
oct: <tt>'0131 0125 0126 0064 0115 0120 0105 0107 0062'</tt>| ?? char[8,1] = '2' (0x32) for yuv4mpeg format version 2
|}

Navigation menu