I would like to run my app headless, but I am using ofQTKitPlayer to read the number of frames in various files. However as soon as I make the app headless by changing main.cpp to:
#include "ofMain.h"
#include "testApp.h"
//========================================================================
int main( ){
testApp * app = new testApp();
app->setup();
while (1){
app->update();
}
}
I get the errors:
2013-11-07 10:20:18.231 theAppName[2086:303] error -50 creating QTOpenGLTextureContextCreate
[ error ] ofQTKitPlayer: loadMovie(): couldn’t load “/Users/me/1/1.mov”
I don’t need to draw the video or anything like that, just use the method getTotalNumFrames(). Or is there another way I could accomplish this?