I’m using the ofQTKitPlayer in OF0.8.1 (XCode 5) and I’m trying to log individual video frames, I expect that something like this:
update(){
video.update();
if(video.isFrameNew()){
ofLog() << video.getCurrentFrame();
}
}
should output to console:
[notice ] 1
[notice ] 2
[notice ] 3
[notice ] 4 ...
Instead, the console outputs:
[notice ] 1
[notice ] 2
[notice ] 3
[notice ] 4
[notice ] 4
[notice ] 5
[notice ] 5 ...
When I replace the line video.update() with video.nextFrame(), the double counting goes away, but instead the playback frame rate is inconsistent - sometimes choppy and other times sped up.
Am I missing an obvious trick here? My goal is smooth Hi Res video playback and accurate frame counting.