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 a movie from scratch with QTKit



I'm trying to create an on-disk movie from scratch with QTKit. QTKitCreateMovie has some sample code for how to do this, but it actually creates a temporary file and then later flattens the movie to a new file. I just want to specify the destination file at the outset, but when I try to update the movie atom, I get an error. I'm doing something like this:
QTNewDataReferenceFromFullPathCFString
CreateMovieStorage
m = [QTMovie movieWithQuickTimeMovie:disposeWhenDone:error:]
[m setAttribute:[NSNumber numberWithBool:YES] forKey:QTMovieEditableAttribute];
[m updateMovieFile];


That last call returns NO. GetMoviesStickyError() says -2026 (userDataItemNotFound) which seems really weird.

What am I doing wrong?

Derrick

_______________________________________________
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.