I am doing a java project to batch export some video files to
quicktime mov format. Is it possible to define the video and audio
compression settings in java program instead of using dialog?
Yes. Bring up the dialog on a development machine, do the settings
the way you want, then do getExportSettingsFromAtomContainer to get an
AtomContainer that you could then save to disk (just do getBytes()).
When running it for the user, read the bytes, build an AtomContainer
with them, and set the MovieExporter with
setExportSettingsFromAtomContainer(). This will pre-set the export to
the "canned" settings you saved, and you can either export with those
settings, or bring up the dialog and let the user tweak them.
And is it possible to use "AAC" codec in QTJ? It is because I cannot
find the AAC option in dialog the example "ImportExport.java".
If you're using the dialog, you should see AAC as an option when
exporting to a QuickTime movie or MPEG-4 (in the sound sub-dialog or
tab). If you needed to specify it programmatcally somewhere, perhaps
as an OSType/4CC, Apple pretty consistently uses "aac " (note the
trailing space) as a component identifier.