The CamCap command-line tool is installed as /usr/bin/camcap.
This tool uses libcamcap to manage webcams and take pictures. An example of how to capture an image to a JPEG file:
$ camcap size 800 600 jpg output.jpg
- setting format to 800 x 600
- taking JPEG image: output.jpg
The help command will display the full list of available commands:
$ camcap help
Usage:
camcap <cmd1> <cmd2> ...
Where commands are interpreted from left-to-right.
Valid commands are:
help Show this help text.
initialize Initialize the camera (autodetect).
...
To see what the camera and libcamcap supports, run the describe command after the camera has been initialized:
$ camcap initialize describe
- initializing camera: /dev/video0
CamCap v0.0.1-2150
Filename: "/dev/video0"
Initialized: true
Driver name: uvcvideo v4.4.40
Device name: USB 2.0 Camera
Location: usb-0000:00:0b.0-1
Flags: 0x85200001
The device supports the single-planar API through the Video Capture interface.
The device supports the struct v4l2_pix_format extended fields.
The device supports the read() and/or write() I/O methods.
The device supports the streaming I/O method.
The driver fills the device_caps field.
Device input #0:
name: Camera 1
type: V4L2_INPUT_TYPE_CAMERA
...