Hey there, i’m using ofVideoPlayer to play gif files. however some gifs play back at an extremely high frame rate (which is fine… i get that quicktime isn’t designed to interpret all the gif info properly). i was wondering if there was a way to extract the frame rate so i could say “hey if your high than X, just make your fps 15”.
i don’t think there is a way to extract the frame rate of a video, but you can set the playback speed using setSpeed
, and update
is what grabs the next frame, depending on the speed. you could figure out the frame rate by counting the number of new frames in a time period, i.e.
video.update();
if (video.frameNew()) {
numFrames++;
}