frameRate() for slow-motion video?
in
Core Library Questions
•
11 months ago
Hi everyone,
I am working on a project using high framerate videos and I would like to slow them down (as in display them in slow motion) in Processing. I don't want it to simply drop some frames out of the 60 frames per second, but rather conform the original 60 frames per second video to a specified framerate, e.g. 24fps (aka "over cranking"). Is this possible? I've been using the code below, but the video is still being displayed at 60fps I believe. Am I doing something wrong or is what I want to achieve not possible?
-
import processing.opengl.*;import processing.video.*;Movie myMovie;
void setup() {size(1000, 600, OPENGL);frameRate(60);myMovie = new Movie(this, "60fps.mov");myMovie.frameRate(24);myMovie.loop();}
void draw() {if (myMovie.available()) {myMovie.read();}image(myMovie, 0, 0);}
1