Movie Class / Quicktime movie running slow
in
Core Library Questions
•
3 years ago
Hello,
I have implemented the movie class to try to display a quicktime movie file. Unfortunately the framerate is delayed, and after googling the problem, I got more confused.
Does anyone know why the framerate is delayed, and what can I do in order to solve the problem? Is Processing the right tool for this?
Here is the code, its pretty straightforward...
(i tried different MODE parameteres, Java2d, P2D, P3D etc, but there is absolutely no difference)
import processing.video.*;
import processing.core.*;
public class QTDisplay extends PApplet {
Movie myMovie;
public void setup() {
size(720,576, P2D);
frameRate(60);
background(0);
myMovie = new Movie(this, "vid1.mov");
myMovie.read();
myMovie.loop();
}
public void draw() {
image(myMovie,0,0, width, height);
//println(frameCount);
tint(255, 20);
}
// Called every time a new frame is available to read
void movieEvent(Movie myMovie) {
myMovie.read();
}
}
All development is done on:
Intel MackBook Pro, OS X 10.6.4. Processing 1.2.1
QuickTime 10.0 (114) & Eclipse 3.6.1.
Help is much appreciated!
2