We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello :)
I am trying to create a glitchy video, and so far I am only getting sound. The video is long-ish(3minutes?), and maybe that is causing the problem.
Can you please help me? Thank you in advance.
import processing.video.*;
import ddf.minim.*;
import processing.opengl.*;
import glitchP5.*;
AudioPlayer player;
Movie myMovie;
GlitchP5 glitchP5;
void setup() {
size(200, 200);
stroke (255);
frameRate(30);
smooth();
glitchP5 = new GlitchP5(this);
myMovie = new Movie (this, "parade.mp4");
myMovie.play();
}
void draw () {
if(myMovie.available()) {
myMovie.read();
}
image (myMovie, width, height);
glitchP5.run();
glitchP5.glitch(600, height, 1000, 1000, 500, 5, 5, 1.0f, 20, 60);
}
void movieEvent(Movie m) {
m.read();
}
Answers
image (myMovie, 0,0);
I think chrisir is correct. Your line 29 displays the image just of the bottom right of the screen - the two arguments are position, not size.