Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MovieExportFromProceduresToDataRef query




On 23-mei-06, at 1:27, John Cromie wrote:

MovieExportFromProceduresToDataRef is *almost* exactly what I need to
generate movies from raw sample data.

BUT...

I need this functionality in a situation where the export process is
driven by the availability of data samples. Unfortunately the
opposite is the case with MovieExportFromProceduresToDataRef where
the assumption is that sample data is immediately available for the
video and audio data source callbacks.

So...

a) Is there an alternative to using
MovieExportFromProceduresToDataRef (lower level APIs?) that achieves
the same function, but can be driven by data availability?

If you are creating a QuickTime movie you can use a compression sequence. If you need to export to another file format you need to use movie exporters.


b) Is it somehow possible to return a 'not ready yet, please call
back later' flag in the data source callbacks?

No.

c) Is it possible to buffer a set of audio and video samples, call
MovieExportFromProceduresToDataRef to do its thing and empty the
sample buffers, and then repeat this process appending to the same
DataRef (movie) each time?

Don't think so. If possible it might cause pops in the sound.

You need to call MovieExportFromProceduresToDataRef on a thread, but this limits you to thread safe components.
Ultimately you may need to launch a helper application which just calls MovieExportFromProceduresToDataRef. You send the frames from your main app and put them in a buffer queue. In your data proc you wait on this queue. Same method works for threads.


Jan E.

_______________________________________________
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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.