MIMETypesCodecs

From XiphWiki

(Difference between revisions)
Jump to: navigation, search
(added some more formats)
(slowly getting there...)
Line 21: Line 21:
=== 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 codes are being used in a particular file.
+
[http://www.rfc-editor.org/rfc/rfc4281.txt Typically], MIME types of media encapsulation formats use the optional "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 parameter names used for */ogg MIME types (in alphabetical order):
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 parameter names used for */ogg MIME types (in alphabetical order):
Line 33: Line 33:
! Version Field (if available)
! Version Field (if available)
|-
|-
-
| [http://lists.xiph.org/pipermail/ogg-dev/2008-February/000891.html | dirac]
+
| [http://lists.xiph.org/pipermail/ogg-dev/2008-February/000891.html dirac]
| char[0,5]: 'BBCD\0'
| char[0,5]: 'BBCD\0'
| '0x42 0x42 0x43 0x44 00'
| '0x42 0x42 0x43 0x44 00'
Line 39: Line 39:
| ??
| ??
|-
|-
-
| [http://flac.sourceforge.net/ogg_mapping.html | flac]
+
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h cmml]
 +
| char[0,8]: 'CMML\0\0\0\0'
 +
| '0x43 0x4d 0x4d 0x4c 0x00 0x00 0x00 0x00'
 +
| '0103 0115 0115 0114 0000 0000 0000 0000'
 +
| char[8,2]: major version number,
 +
char[10,2]: minor version number
 +
|-
 +
| [http://flac.sourceforge.net/ogg_mapping.html flac]
| char[0,5]: '\177FLAC'
| char[0,5]: '\177FLAC'
| '0x7F 0x46 0x4C 0x41 0x43'  
| '0x7F 0x46 0x4C 0x41 0x43'  
Line 46: Line 53:
char[6,1]: binary minor version number of mapping
char[6,1]: binary minor version number of mapping
|-
|-
-
| [http://lists.xiph.org/pipermail/vorbis-dev/2001-August/004501.html | midi]
+
| [http://wiki.xiph.org/index.php/OggMNG jng]
-
| char[8]: 'OggMIDI\0'
+
| char[0,8]: '\213JNG\r\n\032\n'
-
|  
+
| '0x8b 0x4a 0x4e 0x47 0x0D 0x0A 0x1A 0x0A'
 +
| '0213 0112 0116 0107 0015 0012 0032 0012'
 +
| ??
 +
|-
 +
| [http://lists.xiph.org/pipermail/vorbis-dev/2001-August/004501.html midi]
 +
| char[0,8]: 'OggMIDI\0'
 +
| '0x4f 0x67 0x67 0x4d 0x49 0x44 0x49 0x00'
 +
| '0117 0147 0147 0115 0111 0104 0111 0000'
 +
| char[8,1]: version field
 +
|-
 +
| [http://wiki.xiph.org/index.php/OggMNG mng]
 +
| char[0,8]: '\212MNG\r\n\032\n'
 +
| '0x8a 0x4d 0x4e 0x47 0x0D 0x0A 0x1A 0x0A'
 +
| '0212 0115 0116 0107 0015 0012 0032 0012'
 +
| ??
 +
|-
 +
| [http://wiki.xiph.org/index.php/OggMNG png]
 +
| char[0,8]: '\211PNG\r\n\032\n'
 +
| '0x89 0x50 0x4e 0x47 0x0D 0x0A 0x1A 0x0A'
 +
| '0211 0120 0116 0107 0015 0012 0032 0012'
 +
| ??
|-
|-
-
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h | speex]
+
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h speex]
| char[0,8]: 'Speex  '
| char[0,8]: 'Speex  '
| '0x53 0x70 0x65 0x65 0x78 0x20 0x20 0x20'
| '0x53 0x70 0x65 0x65 0x78 0x20 0x20 0x20'
Line 57: Line 84:
char[24,4]: version id
char[24,4]: version id
|-
|-
-
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h | theora]
+
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h theora]
| char[0,7]: '\x80theora'
| char[0,7]: '\x80theora'
| '0x80 0x74 0x68 0x65 0x6f 0x72 0x61'
| '0x80 0x74 0x68 0x65 0x6f 0x72 0x61'
Line 65: Line 92:
char[9,1]: version revision number
char[9,1]: version revision number
|-
|-
-
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h | vorbis]
+
| [http://svn.annodex.net/liboggz/trunk/src/liboggz/oggz_auto.h vorbis]
| char[0,7]: '\x01vorbis'
| char[0,7]: '\x01vorbis'
| '0x01 0x76 0x6f 0x72 0x62 0x69 0x73'
| '0x01 0x76 0x6f 0x72 0x62 0x69 0x73'
Line 75: Line 102:
         Codec Identifier            | Codecs Parameter
         Codec Identifier            | Codecs Parameter
       -----------------------------------------------------------
       -----------------------------------------------------------
-
        char[8]: 'OggMIDI\0'        | midi
 
-
        char[8]: 'CMML\0\0\0\0'      | cmml
 
-
        char[8]: '\211PNG\r\n\032\n' | png
 
-
        char[8]: '\212MNG\r\n\032\n' | mng
 
-
        char[8]: '\213JNG\r\n\032\n' | jng
 
         char[8]: 'CELT    '          | celt
         char[8]: 'CELT    '          | celt
         char[8]: 'PCM    '          | pcm
         char[8]: 'PCM    '          | pcm
         char[9]: '\x80kate\0\0\0\0'  | kate
         char[9]: '\x80kate\0\0\0\0'  | kate
         char[9]: 'YUV4MPEG2'        | yuv4mpeg
         char[9]: 'YUV4MPEG2'        | yuv4mpeg

Revision as of 05:23, 6 June 2008

Specification of MIME Types and of codecs parameters

MIME Types

The following MIME types are now officially registered with IANA (well, almost, see [[1]]):

  • application/ogg - for complex, multitrack, multiplexed files encapsulated in Ogg
    • requires a Skeleton logical bitstream
  • video/ogg - for video encapsulated in Ogg
    • recommends a Skeleton logical bitstrem
  • audio/ogg - for audio encapsulated in Ogg
    • recommends a Skeleton logical bitstrem


Other MIME types are still in the process.


Codecs Parameter

Typically, MIME types of media encapsulation formats use the optional "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 parameter names used for */ogg MIME types (in alphabetical order):

Codecs Parameter Name Codec Identifier (decimal) Codec Identifier (hex) Codec Identifier (octal) Version Field (if available)
dirac char[0,5]: 'BBCD\0' '0x42 0x42 0x43 0x44 00' '0102 0102 0103 0104 0000'  ??
cmml char[0,8]: 'CMML\0\0\0\0' '0x43 0x4d 0x4d 0x4c 0x00 0x00 0x00 0x00' '0103 0115 0115 0114 0000 0000 0000 0000' char[8,2]: major version number,

char[10,2]: minor version number

flac char[0,5]: '\177FLAC' '0x7F 0x46 0x4C 0x41 0x43' '0177 0106 0114 0101 0103' char[5,1]: binary major version number,

char[6,1]: binary minor version number of mapping

jng char[0,8]: '\213JNG\r\n\032\n' '0x8b 0x4a 0x4e 0x47 0x0D 0x0A 0x1A 0x0A' '0213 0112 0116 0107 0015 0012 0032 0012'  ??
midi char[0,8]: 'OggMIDI\0' '0x4f 0x67 0x67 0x4d 0x49 0x44 0x49 0x00' '0117 0147 0147 0115 0111 0104 0111 0000' char[8,1]: version field
mng char[0,8]: '\212MNG\r\n\032\n' '0x8a 0x4d 0x4e 0x47 0x0D 0x0A 0x1A 0x0A' '0212 0115 0116 0107 0015 0012 0032 0012'  ??
png char[0,8]: '\211PNG\r\n\032\n' '0x89 0x50 0x4e 0x47 0x0D 0x0A 0x1A 0x0A' '0211 0120 0116 0107 0015 0012 0032 0012'  ??
speex char[0,8]: 'Speex ' '0x53 0x70 0x65 0x65 0x78 0x20 0x20 0x20' '0123 0160 0145 0145 0170 0040 0040 0040' char[8,24]: version field,

char[24,4]: version id

theora char[0,7]: '\x80theora' '0x80 0x74 0x68 0x65 0x6f 0x72 0x61' '0180 0164 0150 0145 0157 0162 0141' char[7,1]: major version number,

char[8,1]: minor version number, char[9,1]: version revision number

vorbis char[0,7]: '\x01vorbis' '0x01 0x76 0x6f 0x72 0x62 0x69 0x73' '0001 0166 0157 0162 0142 0151 0163' char[7,4]: version field
       Codec Identifier             | Codecs Parameter
      -----------------------------------------------------------
       char[8]: 'CELT    '          | celt
       char[8]: 'PCM     '          | pcm
       char[9]: '\x80kate\0\0\0\0'  | kate
       char[9]: 'YUV4MPEG2'         | yuv4mpeg
Personal tools


Main Page

Xiph.Org Projects

Audio—

Video—

Text—

Container—

Streaming—