Processing Forum
import processing.video.*;Capture myCapture;
void setup() {size(800, 600);myCapture = new Capture(this, width, height, 30);smooth();}
void draw() {if (myCapture.available()) {myCapture.read();println(frameCount);}image(myCapture, 0, 0);
if (frameCount == 125);{saveFrame("test-######.png");}}