JMF Solutions

Generating a Movie File from a List of (JPEG) Images
[Custom DataSource]

Starting from a list of compressed JPEG image files, we'll generate a video-only QuickTime movie of the still images.

A custom PullBufferDataSource is designed to read compressed JPEG data from a list of JPEG still image files. For each file read, a Buffer object is created and the compressed data is set on the Buffer object.

The custom PullBufferDataSource is then used to create a Processor. The Processor's output is set to generate QuickTime data. The output DataSource of the Processor is then hooked up to a file DataSink to save the bits to a movie file.
Platform: JDK 1.1.6 or later
JMF API: 2.0 or later
Implementation: AJ, WPP, SPP *

* AJ = All Java, WPP = Windows Performance Pack, SPP = Solaris Performance Pack
Related Classes
How to run this sample
java JpegImagesToMovie -w <width> -h <height> -f <frame rate per sec.> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...

java JpegImagesToMovie -w 320 -h240 -f 1 file:/c:/temp/foo1.jpg file:/c:/temp/foo2.jpg
Source Code
Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve