adding audio to a movie file
adding audio to a movie file
- Subject: adding audio to a movie file
- From: Jeffers <email@hidden>
- Date: Tue, 11 Jul 2006 15:28:16 +0100
Hi,
I'm trying to capture audio, by using the sequence grabber from
existing code from the Whacked TV example, and add that to a video
track, video captured from the iSight camera based on existing code in
the QuartzComposerTV example.
In the QuartzComposerTV it creates a movie by:
//Create movie file
theError = QTNewDataReferenceFromFullPathCFString((CFStringRef)path,
kQTNativeDefaultPathStyle, 0, &dataRef, &dataRefType);
theError = CreateMovieStorage(dataRef, dataRefType, 'TVOD',
smCurrentScript, createMovieFileDeleteCurFile, &_dataHandler,
&_movie);
//Add track
_track = NewMovieTrack(_movie, width << 16, height << 16, 0);
//Create track media
_media = NewTrackMedia(_track, VideoMediaType,
ICMCompressionSessionGetTimeScale(_compressionSession), 0, 0);
How can i create a track for the audio captured by the sequence
grabber in Whacked TV example?
Any help would be greatly appreciated.
Thanks,
Jeff
_______________________________________________
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