Forgive me if there is already an easier way to do this, but I didn't find one.
Thanks to amnon.owed in a forum post a year ago (
https://forum.processing.org/topic/best-way-to-export-video) I was able to get a start.
1. T
o implement in any sketch, just add the following line at the end of draw()...
saveFrame("/output/seq-####.tga");
This will create a series of .tga files in a directory called "output" within the same directory your sketch is.
2. If you don't have After Effects or any other paid version of a video editor, I suggest using
VirtualDub (
http://www.virtualdub.org/) to turn the .tga files into an .avi, or any other format vdub offers.
3. Once you've processed the .tga files into a video, I will suggest another video editor (not free) called AVS (
http://www.avs4you.com/AVS-Video-Editor.aspx) which will allow you to take your new .avi file or files and create a nice video with fades, etc., which can be saved to whatever video format you'd like or simply burn straight to dvd which can be read by any DVD player.
This wasn't an in-depth tutorial, so if you have any questions, post them here and I'll answer the best I can.
- James