I wanted to know if anyone had any insight or sample code of creating
an AVI file from a directory of JPEG images. I have read the thread
that that speaks about creating a MOV file from JPEG images but I need
to create a AVI file. I also am aware of the sample code provided by
sun in the following link that shows how to create a MOV file from
JPEG images (http://java.sun.com/products/java-me...sToMovie.html).
I have used the sample code given and tweaked it to my needs and
created a MOV file without a problem. The problem lies when I changed
it to create an AVI file. What happens is my resulting AVI only lasts
for 1 second when it should be 7 seconds (14 images with 2 fps) and
the video display is completely skewwed.
The only change I made from the code to convert to MOV and the
code to convert to AVI is the following:
//p is the Processor object
//From my convert to MOV code which works
p.setContentDes criptor(new
ContentDescript or(FileTypeDesc riptor.QUICKTIM E));
//Changed in my convert to AVI code which doesnt work
p.setContentDes criptor(new
ContentDescript or(FileTypeDesc riptor.MSVIDEO ));
I am using JDK_1.4.1 and Media Framework 2.1.1e running under Sun ONE
Studio 4 Update 1 on a WinXP system.
Thanks in advance
Derek Gallagher
an AVI file from a directory of JPEG images. I have read the thread
that that speaks about creating a MOV file from JPEG images but I need
to create a AVI file. I also am aware of the sample code provided by
sun in the following link that shows how to create a MOV file from
JPEG images (http://java.sun.com/products/java-me...sToMovie.html).
I have used the sample code given and tweaked it to my needs and
created a MOV file without a problem. The problem lies when I changed
it to create an AVI file. What happens is my resulting AVI only lasts
for 1 second when it should be 7 seconds (14 images with 2 fps) and
the video display is completely skewwed.
The only change I made from the code to convert to MOV and the
code to convert to AVI is the following:
//p is the Processor object
//From my convert to MOV code which works
p.setContentDes criptor(new
ContentDescript or(FileTypeDesc riptor.QUICKTIM E));
//Changed in my convert to AVI code which doesnt work
p.setContentDes criptor(new
ContentDescript or(FileTypeDesc riptor.MSVIDEO ));
I am using JDK_1.4.1 and Media Framework 2.1.1e running under Sun ONE
Studio 4 Update 1 on a WinXP system.
Thanks in advance
Derek Gallagher
Comment