--- Processing3.0 Code---
import processing.video.*;
Movie movie;
void setup() {
size(640, 360);
movie = new Movie(this, "panorama.m4v");
movie.loop();
background(0);
frameRate(120);
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
int x = int(random(movie.width));
int y = int(random(movie.height));
image(movie, 0, 0, width, height);
color pix = movie.get(x, y);
tint(pix, 40);
saveFrame("line-######.png");
}