We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Different ways for rendering movies (Read 1005 times)
Different ways for rendering movies
May 17th, 2010, 1:59pm
 
Hi there guys Smiley
Inspired by processing's exhibition section I decided to create something similar to Ryan Alexander's Mycelium.
The working applet is here:
http://student.agh.edu.pl/~majta/Fungus.zip
The sources:
http://student.agh.edu.pl/~majta/zrodla.zip
And the demo video:
http://student.agh.edu.pl/~majta/out.avi

Feel free to use it in any way you want. Comments apprecieated.
The instructions are in Polish, so basically:
-replace src.jpg with anything you want use as source image
-don't delete or move the src.jpg or the font file

Well... lets get to the point.
I've spent the whole evening trying to find the best way to render the movie, and I'm still searching Wink I want to share the alternate way of rendering videos that might be useful for someone. My basic problem was that i didn't want to render the applet's window, but the PGrapgics object. Didnt figure out any way to do it with MakeMovie ;(

I worked it around. I used the save method of the PGraphics object to save each frame as tga file. Then i've created a raw AVI file using bmp2avi. You can get it here:
http://www.divx-digest.com/software/bmp2avi.html
That's pretty old stuff Wink
At the point I hat 200MB of tga files and a 800MB raw AVI file. Then i used the avi to mov converter (which can also do the avi to avi thing Wink:

http://download.cnet.com/Free-Convert-DIVX-AVI-to-MOV-MPEG-WMV-Converter/3000-2194_4-10907618.html

and i got a 6MB file with a satysfying quality.

pros:
-can render objects other than PApplet
-pretty good quality
-in the end i got smaller files than with MakeMovie

cons:
-one minute equals circa 300MB of images and about 1GB of raw AVI thats fine if you want to render a five minute short, but not if you want to do something bigger.
-the avi to mov converter works with fixed resolutions (ie. 720x480, 640x480) and if you use a custom resolution it will resize your movie.
-well, all that things take some time to do Wink

Its my first experience with rendering anything with processing, so if you're willing to share some tips with me id be grateful.

lolek09
Page Index Toggle Pages: 1