This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BufferedImage frames to avi movie (via JMF)

 
Tomas Anderson
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tomas Anderson
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

I'll check it out.
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I followed the JMF tutorial for creating a movie and it failed. Any other ideas?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic