Skip to content

Instantly share code, notes, and snippets.

@nocarryr
Last active June 21, 2018 17:24
Show Gist options
  • Save nocarryr/2eb60bf036a0a8149c6a4194b6900b89 to your computer and use it in GitHub Desktop.
Save nocarryr/2eb60bf036a0a8149c6a4194b6900b89 to your computer and use it in GitHub Desktop.
Processing test for realtime video scale
import processing.video.*;
Movie movie;
void setup()
{
size(1280, 720, P3D);
movie = new Movie(this, "/mnt/resource/renderfiles/seriouslytoomanymonkeys/0001-0227_crf18.mov");
movie.frameRate(24);
movie.loop();
}
void movieEvent(Movie m)
{
m.read();
}
void draw(){
image(movie, 0, 0, width, height);
textSize(32);
textAlign(LEFT, TOP);
text(str(frameRate), 10, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment