• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
adding audio to a movie file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: adding audio to a movie file
      • From: Robert Martin <email@hidden>
  • Prev by Date: RE: iTunes Programming
  • Next by Date: View disappears with NSViewAnimation
  • Previous by thread: Re: file ICONS
  • Next by thread: Re: adding audio to a movie file
  • Index(es):
    • Date
    • Thread