isight in command line mac os x
I have a shiny Macbook Pro running os x leopard with an isight camera built into the display casing. The downside to owning this sexy collection of over-priced circuitry is that it commands a lot of attention from my housemates (especially when alcohol is involved) and that often leads to not-so-pleasant pornography set as my homepage. What I want to do is catch my wonderful friends in the act by systematically dumping a video snapshot into a folder of my choice. Furthermore, I'd like to be able to do this in the command line to run essentially "silently." From what I understand, the isight status LED is hard-wired into the camera mechanism such that when the camera receives power, so does the LED. However, I merely need the program to run silently (they most likely won't know for what the LED is used).
Used to be back in good ol' linux, I could write a shell script to automatically process a YUV output from a webcam at the /dev level and dump a snapshot into any folder of my choice -- piece of cake. I want to do the same thing with mac os x, and I could use all the help I can get. I realize Mac OS X is about as related to the original UNIX environment as I am to Jesus, but perhaps someone out there has the expertise to point me in the right direction.
Thanks!
|