Logitech Quickcam PTZ Motion Control
Posted: Wed Feb 17, 2016 4:40 am
I'm trying to get the pan/tilt feature of my old USB webcam to work with the ZoneMinder web interface. As far as I can tell, image and video capture work "out of the box" otherwise.
My first steps were to adapt these instructions:
https://wiki.zoneminder.com/Debian_8.1_ ... e_Easy_Way
viewtopic.php?t=9788
So I have ZoneMinder 1.28 from Jessie Backports installed on a headless Debian i386 system (an old Asus EEE PC Netbook). I set up the built-in webcam and the Logitech USB Quickcam in monitor mode without issue.
The only change I made to the control script was to remove the inclusion of ZoneMinder::debug. I'm not completely sure it uses the the same chipset as the Orbit/Sphere cameras discussed in the second post, though.
lsusb shows:
lsusb -s 022 -v | grep id
idVendor 0x046d Logitech, Inc.
idProduct 0x08c2 QuickCam PTZ
As far as errors, the only hints I have are:
- this file doesn't exist:
/sys/class/video4linux/videoX/pan_tilt
So I've also tried /dev/mediaX (with the correct digit in place of X) and any other files I came across as possibilities for the control device setting.
- the camera works fine on a different computer using guvcview (motion control and all). My target system does not have an OS GUI.
- the tool uvcdynctrl indicates the camera supports pan and tilt but using get and set with the tool gives errors.
- tried to run motion commands from CLI with no useful feedback (sudo /usr/bin/zmcontrol.pl --id 4 --command=moveRelLeft --panspeed=1 --panstep=200) and I've run the script itself (sudo perl Pwc.pm) without error.
My first steps were to adapt these instructions:
https://wiki.zoneminder.com/Debian_8.1_ ... e_Easy_Way
viewtopic.php?t=9788
So I have ZoneMinder 1.28 from Jessie Backports installed on a headless Debian i386 system (an old Asus EEE PC Netbook). I set up the built-in webcam and the Logitech USB Quickcam in monitor mode without issue.
The only change I made to the control script was to remove the inclusion of ZoneMinder::debug. I'm not completely sure it uses the the same chipset as the Orbit/Sphere cameras discussed in the second post, though.
lsusb shows:
lsusb -s 022 -v | grep id
idVendor 0x046d Logitech, Inc.
idProduct 0x08c2 QuickCam PTZ
As far as errors, the only hints I have are:
- this file doesn't exist:
/sys/class/video4linux/videoX/pan_tilt
So I've also tried /dev/mediaX (with the correct digit in place of X) and any other files I came across as possibilities for the control device setting.
- the camera works fine on a different computer using guvcview (motion control and all). My target system does not have an OS GUI.
- the tool uvcdynctrl indicates the camera supports pan and tilt but using get and set with the tool gives errors.
- tried to run motion commands from CLI with no useful feedback (sudo /usr/bin/zmcontrol.pl --id 4 --command=moveRelLeft --panspeed=1 --panstep=200) and I've run the script itself (sudo perl Pwc.pm) without error.