Here is a sample code related to export:
http://developer.apple.com/samplecode/ImportExport/listing1.html
This shows how you can open one native QuickTime Movie for reading, and then pass the MovieExporter component to create a new QuickTime Movie from it.
For the code to import the file as a source for writing, see
void importMedia()
To export source code to a QuickTime movie, see
void run()
It should be possible to open the image file using the same approach, though if the file format of the input file is supported by QuickTime (e.g. BMP).
You can also write a sequence of image files using most of this code. The only thing you need to explore is the method you have to call to add additional frames to an existing movie. It may work using the same API, but most likely you will need to use a different call.
If you need to dig for another method, you can find it in the QT Java Reference Documentation located here:
http://developer.apple.com/Java/Reference/1.4/Java14API_QTJ/
This is a hack and most likely poor performance, but it can work.
And ... I have never tried this (I'm a QuickTime Windows guy by profession), therefore: sorry, no warranty =).
Change If you are looking for a way to write frames to a QT Movie using an existing input buffer instead of reading data from a file using the QT API, there must be an API for this as well. Just check the help documentation.
Change 2 . Actually, it might be worth looking at the C / C ++ API documentation here, since the naming of components and calls seems to be roughly in line with the same naming conventions (i.e. this can help dig for the Java API calls you need ), and the C / C ++ docs seem to be more detailed in terms of providing guides and How To as a starting point. C / C ++ docs can be found here:
http://developer.apple.com/referencelibrary/QuickTime/index.html
The most interesting sections should be
- Import and export
- Compression and decompression
Good luck