Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Making movie from images

 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I've made a mandelbrot set explorer applet...
Mandelbrot set

I've just worked out how to save BufferedImages as jpgs,gifs etc.etc,
on the hard-drive (won't work on applet, though since its not signed, but should be fine on an application).

So... what I would like to do is make a movie by slowly zooming into the set, and saving the BufferedImage created each time.

Then, if I can somehow string the images together, I can make a cool zooming in affect.

So... I could either just output each pic to screen with a Thread.sleep(100) inbetween each pic, or perhaps (if possible) make an MP4 file from all the pics, and would be nice to play this from inside the application.

Any ideas on this?
Thanks
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either The Java Media Framework or Quicktime for Java would let you create movies form single images. They support various file formats, but I'm not sure about mp4. Links to both are here.
 
This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic