Re: QTKit problems - add audio to movie blits to screen!?!
Re: QTKit problems - add audio to movie blits to screen!?!
- Subject: Re: QTKit problems - add audio to movie blits to screen!?!
- From: Tim Monroe <email@hidden>
- Date: Tue, 24 Jan 2006 09:24:16 -0800
On Jan 23, 2006, at 10:41 PM, Lunatic Senator wrote:
The movie file is being created with code from the method
quicktimeMovieFromTempFile:error from the sample QTKitCreateMovie
(code on-line at
http://developer.apple.com/samplecode/QTKitCreateMovie/listing5.html).
Again, on the call QTMovie
insertSegmentOfMovie;fromRange:scaledToRange, the most recent video
frame written to the movie is blasted to origin 0,0 (in Quickdraw
terms). The call is being handed a QTMovie containing only an audio
track; the preceeding call to the QTMovie will have been to
addImage:forDuration:withAttributes.
I think that sample code needs a minor fix. After the call to
CreateMovieStorage, you need to call SetMovieGWorld on the new
QuickTime movie, perhaps like this:
GWorldPtr offscreenGWorld;
Rect rect = {0, 0, 1, 1};
NewGWorld(&offscreenGWorld, 32, &rect, NULL, NULL, 0);
SetMovieGWorld(qtMovie, offscreenGWorld, NULL);
This should stop the video frame from appearing in the wrong place.
Tim Monroe
QuickTime Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden