This overlapping part to write their own movie, but I do not know what went wrong, strange
import processing.opengl. *;
import codeanticode.glgraphics. *;
import codeanticode.gsvideo. *;
GSMovie mov, yomov;
GLTexture tex;
int fcount, lastm;
float frate;
int fint = 3;
void setup () {
size (500, 500, GLConstants.GLGRAPHICS, P2D);
frameRate (90);
mov = new GSMovie (this, "01_black_2.mov");
yomov = new GSMovie (this, "02_color_2.mov");
tex = new GLTexture (this);
mov.setPixelDest (tex);
yomov.setPixelDest (tex);
tex.setPixelBufferSize (50);
tex.delPixelsWhenBufferFull (false);
mov.loop ();
yomov.loop ();
background (0);
noStroke ();
}
void draw () {
if (mov.available ()) {
mov.read ();
yomov.read ();
if (tex.putPixelsIntoTexture ()) {
float h = width * tex.height / tex.width;
float b = 0.5 * (height - h);
image (tex, 0, b, width, h);
fcount + = 1;
int m = millis ();
if (m - lastm> 1000 * fint) {
frate = float (fcount) / fint;
fcount = 0;
lastm = m;
}
}
}
}
The Rewind part want to use inducements to move the mouse around to control the execution of the beginning, has been play
, When the the left of the mouse, the video will jump forward one second and then began to pour broadcast (example: 10 becomes 9 then start 8.7.6.5.4 .... seconds)
When the mouse is shifted to the right, the movie will jump back one second and then began being broadcast (for example: 10 becomes 11 and then began 12.13.14.15 ... seconds)
It is at this stage, I do not know what went wrong the modification or the added Which syntax ...