aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes BufferedImage frames to avi movie (via JMF) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "BufferedImage frames to avi movie (via JMF)" Watch "BufferedImage frames to avi movie (via JMF)" New topic
Author

BufferedImage frames to avi movie (via JMF)

Tomas Anderson
Greenhorn

Joined: Feb 26, 2006
Posts: 16
Hello,


I was wondering if anyone could give me some code that would convert a bunch of BufferedImages (JPEG or PNG) into an .avi file. I already have a bit of code that converts them into a .mov file; let me know if that would help.

Thanks,

Tomas
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Not a direct answer, but ImageJ -an open source Java image processor- can write AVIs. The code that performs AVI writing is also available as a plugin here. You should be able to adapt it to your needs.


Ping & DNS - updated with new look and Ping home screen widget
Tomas Anderson
Greenhorn

Joined: Feb 26, 2006
Posts: 16
Thanks,

I'll check it out.
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Any progress on this ? I have the same need, but IMAGEJ seems to be an image analysis / editor tool. I need to merge jpegs into a movie. I Tried to use JMF's JPegToMovie example, but I wound up getting a bunk mov file with only one highly distorted frame.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
ImageJ is and does many things. It can most certainly open JPEGs (and plenty of other image formats) and save them to an AVI. It helps if all images are the same size, and have a predictable naming scheme like pic001.jpg, pic002.jpg etc.
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
I followed the JMF tutorial for creating a movie and it failed. Any other ideas?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Originally posted by jay vas:
I followed the JMF tutorial for creating a movie and it failed. Any other ideas?


What exactly did you do, and what did or did not work? Any errors messages?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BufferedImage frames to avi movie (via JMF)
 
Similar Threads
Good book on Swing
ImageJ Animator
To play video in android application
Is it possible for JSF to include an .avi file?
.3gp file on sun j2me emulator