run app from command line + output to movie file?

so, i’ve written an app that i want to be able to run as a script, i.e. run it from a command line with some arguments and have it output a movie file to the directory. i’ve read about using ofAppNoWindow.h, but if the app is doing some video analysis and rendering of video, can it still output the video? i want to use oF just because i’ve already written everything and i love the video libraries…any ideas on the command line & output w/o having the GLUT/opengl interface? thanks for any suggestions!