Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
asking again... how to apply one movie export setting to multiple movies?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

asking again... how to apply one movie export setting to multiple movies?



I am trying to export a bunch of different movies into a directory, only
prompting the user once for settings (or hard coding the settings if need
be).

I can now to prompt a user each time they export a movie (setting the
showUserSettingsDialog boolean to true), but this can get quite irritating
when exporting hundreds of little clips! Can someone clue me / direct me to
source code on how to request / set specific export settings (codecs,
filters, dimension) once and then apply these setting to multiple movies for
converting to files? Thanks so much -- sorry for posting twice.

Here is one of the attempts I have made in attempting to figure this out:

void exportMovieClips( )
{
String outputDir = getSaveDir().toString() +
System.getProperty("file.separator");

try
{
for (int i = 0; i < movieVector.size(); i++)
{
QTFile outFile = new QTFile( outputDir + "clip" + i + ".mov" );
outFile.createMovieFile( kMoviePlayer, createMovieFileDeleteCurFile );

Movie saveMovie = (Movie)movieVector.get( i );
saveMovie.setProgressProc( );

//this saves a file and doesn't prompt the user. but where does it get
its codec, filter, and size settings?
//how can I change these?
//also, it saves strange things to the outputDir: .mox and .mow files?
what the heck are these?
saveMovie.convertToFile( outFile, kQTFileTypeMovie, kMoviePlayer,
IOConstants.smSystemScript );
}
} catch (Exception ex)
{ System.out.println("oh no! " + ex );
ex.printStackTrace();
}

}




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.