[whatwg] [mimesniff] Handling container formats like Ogg

Gordon P. Hemsley gphemsley at gmail.com
Mon Nov 26 14:59:17 PST 2012


Container formats like Ogg can be used to store many different audio
and video formats, all of which can be identified generically as
"application/ogg". Determining which individual format to use (which
can be identified interchangeably as the slightly-less-generic
"audio/ogg" or "video/ogg", or using a 'codecs' parameter, or using a
dedicated media type) is much more complex, because they all use the
same "OggS" signature. It would requiring actually attempting to parse
the Ogg container to determine which audio or video format it is using
(perhaps not unsimilar to what is done for MP4 video and what might
have to be done with MP3 files without ID3 tags).

Would this be something UAs would prefer to handle in their Ogg
library, or should I spec it as part of sniffing?

-- 
Gordon P. Hemsley
me at gphemsley.org
http://gphemsley.org/http://gphemsley.org/blog/


More information about the whatwg mailing list