Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Frame-differencing on a Movie (file) instead of Capture

$
0
0
I rarely, if ever, use the video library, but I experimented a bit.
In addition to the changes you described (and pointing to a movie file on my computer), I made two changes:
- Set the size of the sketch to the one of the movie; and remove the P2D declaration, as it is OpenGL in 2.0, and you reported an error with it.
- Compute: numPixels = width * height; ie. using the real size of the movie. I hard-coded it, because apparently the size of the movie isn't available in setup().
Perhaps we can use a trick to get the size after reading the first frame, but it should get you going.

Viewing all articles
Browse latest Browse all 1768

Trending Articles