12

Is there a utility that is able to run from the command line to capture a single frame of the iSight inbuilt (and external?) camera? This would save to an image file. I have searched on Google and found utilities that link to websites that don't exist anymore.

Other options are:

  • An Open Source GUI application I can hack into a command-line application?
  • A GUI application being run for a small period of time, that can be configured via the command-line, temporary config files, AppleScript, etc?

This would be quite handy for creating apps for timelapses, security, fun etc.

15

"ImageSnap is a Public Domain command-line tool that lets you capture still images from an iSight or other video source. You might remember Axel Bauer's original isightcapture tool (that is no longer supported but still works on most systems). With ImageSnap I hope we'll be able to move forward and add features, adapt to the ever-changing Apple architectures, etc."

http://iharder.sourceforge.net/current/macosx/imagesnap/

  • +1 ImageSnap works fine and the code is provided (with a public domain license). – ChristopheD Feb 20 '10 at 13:37
  • 1
    ImageSnap is also installable thru homebrew: brew install imagesnap – Linus Unnebäck Nov 7 '13 at 13:02
5

wacaw looks interesting, andcommand line: http://webcam-tools.sourceforge.net/

  • wacaw doesn't seem to work on Yosemite or El Capitan. – bonh Nov 13 '15 at 21:05
1

As I mentioned in a related question, it seems that imagesnap no longer works on OSX10.11/El Capitan so another alternative is to install ffmpeg (MacPorts: port install ffmpeg or brew install ffmpeg) and run:

ffmpeg -f avfoundation -video_size 1280x720 -framerate 30 -i "0" -vframes 1 out.jpg
  • ffmpeg 4.1 on 10.12 gives and error due to unsupported framerate. Removing the -framerate parameter altogether fixes the problem. – oarfish Apr 25 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.