ADC Home > Reference Library > Technical Q&As > QuickTime > Import & Export >
|
Q: I'm trying to export a movie directly to a Raw AVI file, I've tried using the built-in exporter in QuickTime but I seem to only get a Cinepak compressed AVI. I can use MovieExportDoUserDialog to put up the export dialog and change the settings, but I don't want to do that. Can I change the settings programmatically? A: You can use QuickTime's built-in Movie to AVI File export component to export with several codecs. The default is Cinepak, but you can programmatically configure the component to use another compressor. Use MovieExportGetSettingsAsAtomContainer to retrieve the exporter settings as a QTAtomContainer, modify the spatial settings, then use MovieExportSetSettingsFromAtomContainer to configure the export component. Listing 1 demonstrates setting up the AVI export component to programmatically use the Indeo 4 codec (kIndeo4CodecType), but you could just as easily choose Windows Raw codec (kWindowsRawCodecType) etc.
References: Movie Data Exchange Documentation
|
|