We're using QTKit in our Cocoa project and we need to save various
QuickTime export settings into files to be reused later in batch
exports without any GUI. QTMovie class has the following method:
-(BOOL)writeToFile:(NSString *)fileName withAttributes:
(NSDictionary *)attributes
QTMovieExportSettings key can be passed to this method in
attributes dict with QTAtomContainer (as NSData) as value.
My question is: is there any way to serialize & deserialize export
settings (basically QTAtomContainer) as XML / plist in QTKit on Mac
OS X? I'm aware of the possibility to get settings from Quicktime
with MovieExportGetSettingsAsAtomContainer() function and then to
dump the binary data into file, but I'm interested in human-
readable settings format and not the binary dump.
I've found some example code from TN2120 ( http://
developer.apple.com/ technotes/tn2006/tn2120.html ) where export
settings are saved as XML, but the code is for Windows ActiveX
component. Can this functionality really be Windows-only (perhaps
as functionality of ActiveX support libraries), or is there
equivalent methods on OS X as well? At least QTKit documentation
doesn't mention it.
Assuming I understand your question correctly, I believe that the
answer is No. We are considering a more human-readable form of
specifying the exporter settings but have nothing to announce at this
time. For the moment, you will need to serialize and deserialize an
atom container if you want to save exporter settings out to disk and
then read them back in.
Tim Monroe
QuickTIme Engineering
_______________________________________________
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