Can't get PTZ controls to work using Axis 215 w/ Axis API v2
Posted: Thu Dec 01, 2011 7:38 pm
[SOLVED, see bottom post] PTZ functions for my Axis 215 will not work on ZM. I've tried on both CentOS 5.6 x86 and x64. Same problem on both. The camera feed is coming through just fine, but when I try to adjust any of the PTZ control settings, I get the following in the error log...
I've done a basic ZM setup with only 1 camera to try to narrow the problem down. I enabled the PTZ under Options -> System -> OPT_CONTROL. My settings for the camera include:
Source:
HTTP
Simple
user:pass@ipaddr
port 80
host path: /axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=7
24bit / 640 / 480
Control Tab:
Controllable, Axis API v2
Control Device: axis-cgi/com/ptz.cgi
Control Address: ipaddr:80
0, uncheck, 0, none, 0
Side note, even though the controls are not working within the ZM, I can browse to the following address and actually move the camera...
http://ipaddr/axis-cgi/com/ptz.cgi?camera=1&move=left
So I know the camera is accepting remote PTZ controls. So I think it must be something on the server not sending the right string to the URL. I'm not sure what the "Can't stat axis-cgi/com/ptz.cgi: No such file or directory" error is meaning. Does it think that the cgi file is on the local server? I found a reference to installing a perl module called libmodule-load-perl on another writeup for Axis cameras, but I cannot find that module for CentOS. Not sure if that might be causing the problem.
Also, firewall and SELinux is disabled.
Code: Select all
2011-12-01 13:09:42.267420 zmcontrol 3056 INF Control server 1/AxisV2 starting at 11/12/01 13:09:42 zmcontrol.pl
2011-12-01 13:09:42.219420 zmcontrol 3052 INF Starting control server 1/AxisV2 zmcontrol.pl
2011-12-01 13:09:42.219420 zmfix 2713 ERR Can't stat axis-cgi/com/ptz.cgi: No such file or directory zmfix.cpp 86
Source:
HTTP
Simple
user:pass@ipaddr
port 80
host path: /axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=7
24bit / 640 / 480
Control Tab:
Controllable, Axis API v2
Control Device: axis-cgi/com/ptz.cgi
Control Address: ipaddr:80
0, uncheck, 0, none, 0
Side note, even though the controls are not working within the ZM, I can browse to the following address and actually move the camera...
http://ipaddr/axis-cgi/com/ptz.cgi?camera=1&move=left
So I know the camera is accepting remote PTZ controls. So I think it must be something on the server not sending the right string to the URL. I'm not sure what the "Can't stat axis-cgi/com/ptz.cgi: No such file or directory" error is meaning. Does it think that the cgi file is on the local server? I found a reference to installing a perl module called libmodule-load-perl on another writeup for Axis cameras, but I cannot find that module for CentOS. Not sure if that might be causing the problem.
Also, firewall and SELinux is disabled.