View Single Post
Old 9th October 2018
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

For the archives:

I just repeated gpatrick's example above with fswebcam. And it even works on my crappy old macbook.

usbdevs -v
Code:
port 4 addr 2: high speed, power 100 mA, config 1, Built-in iSight(0x8501), Micron(0x05ac), rev 1.84
ls -la /dev/video*
Code:
lrwxr-xr-x  1 root  wheel         6 Apr  9  2018 /dev/video -> video0
crw-------  1 root  wheel   44,   0 Apr  9  2018 /dev/video0
crw-------  1 root  wheel   44,   1 Apr  9  2018 /dev/video1
doas fswebcam --loop 1 --jpeg 95 --save cam.jpeg
Code:
>>> Next image due: 2018-10-09 22:22:17 (CEST)
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 352x288.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Setting output format to JPEG, quality 95
Writing JPEG image to 'cam.jpeg'.
Reply With Quote