Screen recorder command line


i am working on a project and I needed to whip up a way to record video from the app quickly – this osx command line tool is really powerful and simple to use from OF:

one thing to note is that it uses 0,0 at the bottom left corner, so you need to do some math to figure out how it relates to your window position – I found command-shift-4 which gives you pixel positions for taking a screenshot helpful. you can do some math with ofGetScreenHeight() ofGetWindowPositionY() to flip the coordinate around for that problem.


ps - I know there are great addons like – I just wanted something really fast to hook up.