Further to this question (sorry to post so much, but trying to learn
better ways to do stuff :-) ...
I can see how writing the data to some other contains and then using
AddSampleTableToMedia might improve write performance, but I cannot
find an example anywhere on the use of
QTSampleTableAddSampleDescription. There's no mention of this on the
Quicktime-API list, nor in any bit of example code that I have.
AddSampleTableToMedia is mentioned, but not with regard to creating
one from scratch.
What I don't understand is the SampleDescription(Handle) that must be
provided. From the CACIPBMovie example, it looks like a
SampleDescription can be either an ImageDescription or a
SoundDescriptionHandle.
I believe I can get an ImageDescriptionHandle from the existing
channel using:
ImageDescriptionHandle imageDesc = (ImageDescriptionHandle)NewHandle
(0);
OSStatus err = SGGetChannelSampleDescription(mChan, (Handle)imageDesc);
if(err) {
[NSException raise:@"NoDesc" format:@"Unable to get image
description, error %d", err];
}
return imageDesc;
but that description structure doesn't contain timing information
(which I assume is needed when adding sample to a sample table?)
So I'm wondering if Im barking up the wrong tree....
Neil
On 28/09/2006, at 7:26 AM, Neil Clayton wrote:
Im reading the comment 'better chunking can be achieved by
flattening the movie after it is finished, or by grouping samples,
writing them in groups to the data reference manually, and using
AddSampleTableToMedia." contained in CaptureAndCompressIPBMovie.
and I'm wondering, does that mean that I should be writing the
movie data (say, a hundred frames at a time) myself, using a
standard 'open the move file append data to it' call, or does that
comment imply the use of some other QuickTime call to write the
movie data?
Regards,
Neil Clayton
_______________________________________________
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/neil%
40cloudnine.net.nz
This email sent to email@hidden
_______________________________________________
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