Hi,
I am new to openFrameworks and am trying to implement a fairly simple application to switch between 4 videos using keyboard keys (keyboard controller interpreting input from buttons).
I am stuck at the first hurdle however as I can’t get the video to play back smoothly. It is tearing and jittering.
Here is the basic code I am using (based on the moviePlayerExample):
void testApp::setup(){
ofBackground(0,0,0);
fingerMovie.loadMovie("movies/Modern Sorting FINAL_6500_2pass.mov");
fingerMovie.play();
ofSetFrameRate(25);
ofSetVerticalSync(true);
}
//--------------------------------------------------------------
void testApp::update(){
fingerMovie.idleMovie();
}
//--------------------------------------------------------------
void testApp::draw(){
fingerMovie.draw(0,0);
}
The addition of ofSetFrameRate and ofSetVerticalSync did improve the performance, but not enough unfortunately.
The videos are all 1080p, h264, 25fps Quicktime movies.
I have tested this on Windows (both vs2010 and CodeBlocks) and also in XCode.
Could anyone tell me if there is a way to improve the playback of these videos, or if this is just a limitation of openFrameworks?
Thanks very much,
Maryann