Mailing Lists: Apple Mailing Lists

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

Creating raw AVI files with QuickTime



Hi all, 

I'm trying to use the Apple sample code at
http://developer.apple.com/qa/qa2001/qa1147.html.

I want to create a raw, uncompressed, AVI file using QuickTime from within
my app.

If I pass in kWindowsRawCodecType I get error -8961 (noCodecErr) back from
ConvertMovieToFile.

I did some experimentation and if I pass in kIndeo4CodecType (just like in
the sample code) I get the same error.

If, however, I pass in kCinepakCodecType, kJPEGCodecType or kBMPCodecType,
I'll get an AVI file (though the last two formats won't play in Windows
Media Player or Real Player on Windows--only with QuickTime Player).

I also went so far as to put together some code that calls
ConvertMovieToFile and brings up the export dialog so that I could manually
select AVI, None and Millions of colors and after the dialog is dismissed I
used QTGetAtomDataPtr to get the spatialSettings out of the codec in use and
confirmed that all of its fields are set to the same settings I am trying to
use.

I'd think that there is a bug in QT but QTPlayerPro can export an AVI just
like the one I'm trying to create programmatically. So the only thing I can
think of it there must be something else I need to do in the code to get
this to work.

In searching the QTTalk archives I see this issue came up a couple of years
ago but no one ever really posted a definitive answer (at least that I can
see).

Has anyone else been able to get this code to work or been able to create a
raw AVI file?

Thanks,
--ken 

_____________________________________________________________________
Ken Hornak                                 <http://www.medimage.com/>
Head of R&D                6276 Jackson Rd., Ann Arbor, MI 48103-9579
MedImage, Inc.                               voice: 734/665-5400 x122
                                               fax: 734/665-4115
_______________________________________________
quicktime-talk mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-talk
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.