Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Determine Codec for Media?




Le 2 juin 06 à 19:30, Ando Sonenblick a écrit :

I'm trying to find out if for a given media of a given track in a given
movie QuickTime has a suitable codec for it.


I can iterate the tracks, get media, get media handlers and even media
data handlers, but I cannot figure out exactly how to find out if there
is a codec installed that will decode a given media.

IIRC, you can read a media sample from the track then read the compressor (type and vendor) in the sample.


Once you have this info, you can look for a codec using this compression format (the "type" in the sample description) as the subtype.

Maybe it will not be an universal solution, depending of the media, but it should work pretty well for video and sound.

Hope this helps,

Olivier _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.