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: Lunatic Senator <email@hidden>
- Date: Mon, 23 Jan 2006 21:25:42 -0800
Tim-
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.
TIA,
LS
-----
On 1/9/06, Tim Monroe <email@hidden> wrote:
>
> On Jan 7, 2006, at 3:16 AM, Lunatic Senator wrote:
>
> > The following line of code causes the last frame written to the
> > QTMovie to be blasted to the screen. The frame, curiously enough, is
> > blasted to the top left corner of the main monitor (QuickDraw 0,0)
> > despite the fact that the rest of the time I'm using an imaging model
> > that has 0.0, 0.0 at the lower left corner of the main monitor...
> >
> > The application uses QTKit to build a new movie from scratch, adding
> > piles of rendered frames, then going back and adding a chunk of audio
> > to cover the frames thus rendered, rinse, repeat until finished, then
> > finalizes (QTMovie writeToFile) and calls it a night.
> >
> > The code:
> >
> > [_movie insertSegmentOfMovie:audio
> > fromRange:audioRange
> > scaledToRange:destRange];
> >
> > "audio" is a QTMovie * that points to a movie which was created from
> > an audio file (MP3, or a AAC, or maybe a WAV or AIFF).
> >
>
> Can you clarify what you mean by "from scratch"? How is the movie
> file getting created?
>
>
> 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
>
_______________________________________________
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