Last active
June 21, 2018 17:24
-
-
Save nocarryr/2eb60bf036a0a8149c6a4194b6900b89 to your computer and use it in GitHub Desktop.
Processing test for realtime video scale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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