Re(2): [vorbis-dev] Mime Type and Ogg

Ali Abdin aliabdin at aucegypt.edu
Sat Oct 14 09:23:18 PDT 2000



* Colin P. Davis (cpd2317 at it.rit.edu) wrote at 14:16 on 13/10/00:
> vorbis-dev at xiph.org writes:
> >This might be a problem. I want just to be able to detect the "audio"
> >mime-type part of Ogg (isn't Vorbis the name for the 'generic' project
> >and Ogg
> >the name for the audio part?)
> 
> It is exactly the opposite. <smiles>
> Ogg is the encapsulation, which would include Vorbis (audio Codec), Tarkin
> (Possible video Codec), and the Streamed MetaData.

Okay - this is a problem. You see, stating that "foo.ogg" is an
application/x-ogg is incorrect because it is not an application.

What Nautilus does is check the mime super-type and if it is 'audio' then it
will do some special music handling functions (i.e. Sound Preview, 'View as
Music', etc.) This is no problem with mp3 as it is audio/x-mp3 or audio/mpeg
or whatever.

Now in Nautilus we want to support audio files (i.e. it doesn't make sense to
try and play a video codec using 'ogg123'). Is this possible at all?

For the mime magic detection stuff we check for the "OggS" at the beginning,
and for the extension we check for '.ogg'

Is there anyway we can check for something else (audio/*)?

It is really a bitch to have one file extension and one "mime-magic" header
thing ("OggS")  for different types of data.

Is it possible to have for example .og3 or something for audio/x-ogg?

Regards,
Ali

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list