We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have worked on this problem for quite awhile, and can't seam to find much about it on forums. I am trying to create a random slit scan process on a video signal using a one pixel line that scrubs across frame. I've tried using mask() techniques, and have had some success, but I can't get to look like I want it to. I want the line to show current time/frames and replace old frames that stay as stills, creating layered up layers of time.
import processing.video.*;
Movie myMovie;
PImage maskImage;
float randomX = 0.;
void setup() {
size(720, 480);
background(0);
myMovie = new Movie(this, "tennis.mov");
myMovie.loop();
maskImage = loadImage("mask.png");
//maskImage.mask(myMovie);
//myMovie.mask(maskImage);
smooth();
}
void draw() {
//background(0);
randomX = random(720);
maskImage.mask(myMovie);
//myMovie.mask(maskImage);
//image(myMovie, 0, 0);
image(maskImage, randomX, 0);
//fill(255);
//noStroke();
//rect(randomX, 0, 10, height);
}
void movieEvent(Movie m) {
m.read();
}
VideoLinkDownload: https://db.tt/2uPvghk1
Answers
Answer to my own question: