Recording video of a realtime application at a decent resolution doesn't really work with Processing.
The best alternative is to use a program like Fraps (or similar).
The best alternative is to use a program like Fraps (or similar).