• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

BufferedImage frames to avi movie (via JMF)

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,

I'll check it out.
 
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I followed the JMF tutorial for creating a movie and it failed. Any other ideas?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic