Mailing Lists: Apple Mailing Lists

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

Re: Creating a movie from scratch with QTKit




On Jun 1, 2006, at 12:04 PM, Derrick Bass wrote:

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.


Yep, that's weird. GetMovieStickyError is not likely to be terribly useful when used in conjunction with QTKit method calls.

What am I doing wrong?


updateMovieFile looks at certain instance variables of the QTMovie to determine whether it can successfully update the movie file, and those ivars are not being set appropriately by your code. I think you need to follow the pattern of QTKitCreateMovie until QTKit provides a method call that will do exactly what you want. Sorry. Is there some technical reason you cannot follow that pattern?


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

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.