1. A video/audio track - using the sequence grabber. (the filename
for this is stored in 'movieFileName')
2. A sprite track, the same size as that in (1). As far as I know, I
don't set the background color of the track. It appears black, but I
can see the mouse cursor (which is what I'm capturing) moving about
on the .mov if I play it in quicktime. (the filename for this is
stored in [spriteTrack movieFileName])
Both tracks are of the same length (roughly), and use the same
timescale.
I'm attempting to merge these together using the code helpfully
provided by Tim Monroe.
The problem I'm seeing is that the merge results in a movie that
contains just the sprite track (even though the properties suggest
that sound and the H264 video are present). It's as though there
really is a background in the sprite track, and it's covering the
video track.
The sprite track is created using:
track = NewMovieTrack(theMovie, width, height, kNoVolume);
media = NewTrackMedia(track, SpriteMediaType, kVideoTimeScale, NULL,
0);
and I don't set any properties on the QTAtomContainers that relate to
background colour.
If I remove the code that creates the second track (NewMovieTrack,
NewTrackMedia etc), then the resulting movie contains the correct
video/audio.
I've also just noticed that the resulting movie actually just points
to the temporary movie files movieFileName and spriteTrack
movieFileName]... but I won't complicate the question by asking how I
actually manage to shift the data into a single movie file ;-)
I've tried various versions on the theme below - such as creating the
original movie using a reference to the captured video/audio movie,
and then adding a single segment for the sprite track - or using the
NewMovieTrack/NewTrackMedia (which is the method being used below) to
insert a new track. Both produce the same result.
_______________________________________________
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