The basic problem is I need to create a QTMovie instantly from the
camera which I hold in memory and can play back...
With the new QTKit api I can easily get the image and create a live
qtvideo...
- (CIImage *)view:(QTCaptureView *)view willDisplayImage:(CIImage
*)ciImage
{
...
[current_movie addImage:image forDuration:current_time withAttributes:
[NSDictionary dictionaryWithObjectsAndKeys:@"jpeg",
QTAddImageCodecType, [NSNumber
numberWithLong:codecMinQuality] ,QTAddImageCodecQuality ,nil]]; //
this is on the main thread.
}
You could also use the QTCaptureDecompressedVideoOutput delegates
The problem is how do I get the audio feed from the camera and add it
to the qtmovie (current_movie) I am creating....
QTCaptureAudioPreviewOutput does not seem to have any useful
information besides GUI type stuff
My only option seems to get it from the compressed recording file
delegate with something like this...
Which all seems rather complex and involved (with a lot of guess work)
as I am mixing old quicktime routines with the new API. I realise
there will be background thread issues which the above code. I am not
sure even that the new audio data will be playable instantly.
My question is what is the easiest/best way to add the audio to the
video frames I create with the QTMovie's addImage method I get from
the camera.
Thanks in advanced for any help
Simon
_______________________________________________
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