We have an animation in a GLJPanel and we want to know if there is a way to create a ‘avi file’ from taking many BufferedImage’s.
Also, if not any suggestions?
We have an animation in a GLJPanel and we want to know if there is a way to create a ‘avi file’ from taking many BufferedImage’s.
Also, if not any suggestions?
Simplest approach would be to use JMF.
Here’s a link that may be helpful:
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.html
I believe you can store motion JPEG in an AVI container, but you can certainly transcode to whichever format you wish using JMF.
EDIT: Looks like JMF supports MJPG into an AVI container.