Re: QTTrack is awfully limiting
Re: QTTrack is awfully limiting
- Subject: Re: QTTrack is awfully limiting
- From: "douglas a. welton" <email@hidden>
- Date: Fri, 28 Dec 2007 16:43:07 -0500
Hi Nathaniel,
If you want to create/initialize a QTTrack with a new track that is of
a Movie Media Type, do the following:
1) Create a new track using the QuickTime function NewMovietrack()
2) Fill the track with Movie Media. See the QtMovieTrack sample code
<http://developer.apple.com/samplecode/qtmovietrack/index.html> for an
example of how to do this.
3) Create or initialize your new QTTrack object using the new track
created in step 1 using either +trackWithQuickTimeTrack:error: or -
initWithQuickTimeTrack:error:
Alternately, if all you want to do is insert a segment of an existing
movie into another existing movie, then I would suggest that you use
QTMovie's editing methods -
insertSegmentOfMovie:fromRange:scaledToRange: or -
insertSegmentOfMovie:timeRange:atTime: or the QuickTime function
InsertMovieSegment()
Note, this advice is given without really knowing what you are trying
to accomplish, with additional details I may be able to supply a more
appropriate answer.
regards,
douglas
On Dec 28, 2007, at 3:57 PM, Nathaniel Gottlieb-Graham wrote:
I may be daft, but there doesn't seem to be any way to create a
QTTrack with a movie in it. The only real way that I can see to add
anything to a QTTrack is the addImage:forDuration:withAttributes:
method, which takes NSImages, and can't be fed QTMovies or anything
like that. Am I just missing something obvious, or will I have to
resort to some ugly hack like adding a new track for every image of
a movie I want to overlay?
Nathaniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden