Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Video Camera for Security Monitoring

Using a Logitech QuickCam Pro 9000 (WebCam), I wanted to experiment with security control. This video camera has an LED that lights up when it is being used. But we don't want the LED to give away that it is recording in a security situation. The following includes commands to set various states of the camera.

$ wajig install uvcdynctrl
$ sudo uvcdynctrl -i /usr/share/uvcdynctrl/data/046d/logitech.xml

# LED off
$ uvcdynctrl -s 'LED1 Mode' 0
# LED on
$ uvcdynctrl -s 'LED1 Mode' 1
# LED blinking
$ uvcdynctrl -s 'LED1 Mode' 2
# LED auto mode
$ uvcdynctrl -s 'LED1 Mode' 3

# Macro focus
$ uvcdynctrl -s 'Focus' 255
# Infinity focus
$ uvcdynctrl -s 'Focus' 0

# Pan/tilt reset
$ uvcdynctrl -s 'Pan/tilt Reset' 3
# Pan reset
$ uvcdynctrl -s 'Pan/tilt Reset' 1
# Tilt reset
$ uvcdynctrl -s 'Pan/tilt Reset' 2

We can then use motion to record still images when motio is detected. Simply install motion and run it from the command line. It will just work, saving images as seaparate files int he current folder. Load an image into eog and hold the PAgeDown button to see the video.

Copyright © 1995-2019 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.