The all in one, interactive version is iJpegImagesToMovie.jar
On a Mac or Windows double click on the icon for the file and it will run the interactive program.
On Linux, run from the command line:
java -jar iJpegImagesToMovie.jar
Specify an input folder that contains the jpeg images.
Specify an output .mov file for the movie.
Click on Start to create a QuickTime movie file.
***
The self contained program is jpegtomovie.jar
Run it with Java 1.6
module load java/v1.6
java -jar jpegtomovie.jar -f 10 -o mymovie.mov -d imagesDir
This will create a QuickTime file named mymovie.mov.
The movie will contain all the image files in the directory named imagesDir.
The playback rate will be 10 frames per second.
Options for the file name extension and format are:
.jpeg
.JPG
.JPEG
.png
.PNG
.bmp
.BMP
.gif
.GIF
JpegImagesToMovie - if you have to recompile it
This program takes a directory of image files and creates a QuickTime movie.
It is based on Sun's Java media package in jmf.jar. It compiles with Java 1.5 or 1.6.
To compile the program:
javac -classpath .:jmf.jar JpegImagesToMovie.java
Compiling produces 3 class files:
JpegImagesToMovie.class
JpegImagesToMovie$ImageDataSource.class
JpegImagesToMovie$ImageSourceStream.class
To run the program:
java -classpath .:jmf.jar JpegImagesToMovie -f -o -d
The command line inputs are:
-f For example, 24 is a good rate for animation.
-o For example, sim.mov
-d The directory containing the image files.
The program recognizes the formats listed above.
note: On Windows, the syntax for setting the classpath is:
.;.\jmf.jar (assuming jmf.jar is in your current directory along with the
java file to compile)
On Windows specify a full directory path for a jar file and
use a semicolon as the path separator.