An example of capture/save in separate threads for max performance:
http://forum.processing.org/topic/save-frames-per-second
http://forum.processing.org/topic/save-frames-per-second