• 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
Re: QTKit problems - add audio to movie blits to screen!?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSAttributedString & alert panels?
  • Next by Date: Re: Newbie-setting object used as variable of another object
  • Previous by thread: Re: QTKit problems - add audio to movie blits to screen!?!
  • Next by thread: Re: Cocoa-dev Digest, Vol 3, Issue 30
  • Index(es):
    • Date
    • Thread