Mailing Lists: Apple Mailing Lists

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

How to determine movie type ?



Hello,

In my application, I need to display information about files handled by QuickTime. For still images, I use GraphicsImporter and ImageDescription and this works fine.

For video and sound files, I know that a file can contain several tracks. So I use GetMovieIndTrackType with VideoMediaType, MPEGMediaType, FlashMediaType, SoundMediaType, etc... and this allows me to know if a file contains video or/and sound data but I don't know how to make the difference between, for instance, a MP3 and an AIFF file or a MOV and an AVI file.

I try to get the codec (with GetMediaSampleDescription) but this is not clear : for instance, I get a CinePack codec for an AVI file but this does not mean this is an AVI, I suppose. For MP3 files, I get an unknown codec type (0x6D730055 in hexa), for Wave file, I get a 'raw ' codec... This is a bit messy to me.

Can I rely on the codec information ? Is it unique (I mean, does an MP3 always has the same codec) ? More generally, is there a recommended way to determine more precisely the type of a file that QuickTime can handle ?

Thanks for your help.


Eric Arlotti
email@hidden
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.




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.