Axis P5534 PTZ compatability with Zoneminder 1.25?

Forum for questions and support relating to the 1.25.x releases only.
Locked
stonith
Posts: 9
Joined: Thu Mar 29, 2012 9:43 pm

Axis P5534 PTZ compatability with Zoneminder 1.25?

Post by stonith »

Hello Zoneminder Forums. This is my 1st post. :lol: I'm an avid user of Zoneminder since the v1.23 days with a Trendnet IP400W cameras and liked the functionality of the program.

I've recently moved and acquired (1) Axis P5534 and (2) Axis P3301 IP cameras that I've mounted throughout the house. I was able to score each camera for $250 bucks :D (Mounting hardware obviously excluded from price). Currently running Zoneminder v1.25, running FFMPEG/RTSP streams against all 3 cameras, everything is in relative working order. I even have 3 RTSP streams through OpenVPN (from work connecting back to home) using Quicktime (no Auth, bug in Quicktime RTSP auth) and they stream beautifully (RTSP TCP link listed below, found it through another Zoneminder post).

Anyway, moving on... would like PTZ functionality with my Axis P5534. Seems like Zoneminder has presets for Axis APIv2, unfortunately this model that I have does not support that functionality. Anyway, would like some advice, or someone else's google-fu, if there has already been a script that has been contributed for functionality? I've looked/searched, but didn't come across anything. Hoping to have some assistance. If not I guess I would script something.


<p5534 ip address>/axis-cgi/com/ptz.cgi?info=1&camera=1

My post looks too spamy for a new user, please remove off-site URLS. :( Removing the "http", hopefully it works.

--- START ---
PTZ Commands:
Available commands
:
{camera=[n]}
whoami=yes
center=[x],[y]
imagewidth=[n]
imageheight=[n]
move={ home | up | down | left | right | upleft | upright | downleft | downright | stop }
pan=[abspos]
tilt=[abspos]
zoom=[n]
iris=[n]
rpan=[offset]
rtilt=[offset]
rzoom=[offset]
rfocus=[offset]
riris=[offset]
areazoom=[x],[y],[z]
imagewidth=[n]
imageheight=[n]
autofocus={ on | off }
autoiris={ on | off }
ircutfilter={ on | off | auto }
backlight={ on | off }
continuouspantiltmove=[x-speed],[y-speed]
continuouszoommove=[speed]
continuousfocusmove=[speed]
auxiliary=[function]
setserverpresetname=[name]
setserverpresetno=[n]
removeserverpresetname=[name]
gotoserverpresetname=[name]
gotoserverpresetno=[n]
barcoord=[x],[y]
panbar=[length],{ horizontal | vertical }
tiltbar=[length],{ horizontal | vertical }
zoombar=[length],{ horizontal | vertical }
focusbar=[length],{ horizontal | vertical }
irisbar=[length],{ horizontal | vertical }
speed=[n]
query={ speed | position | presetposcam | presetposall }

--- END ---

"Parameter List" of PTZ from the P5534 Web Interface:

--- START ---
[PTZ]
NbrOfSerPorts = "1"
NbrOfCameras = "1"
CameraDefault = "1"
Warning = ""
BoaProtPTZOperator = "anonymous"


[PTZ.CamPorts]
Cam1Port = "1"


[PTZ.Limit.L1]
MinPan = "-180"
MaxPan = "180"
MinTilt = "-180"
MaxTilt = "0"
MinZoom = "1"
MaxZoom = "19999"
MinFocus = "3000"
MaxFocus = "9999"
MinIris = "1"
MaxIris = "9999"
MinFieldAngle = "32"
MaxFieldAngle = "552"


[PTZ.Preset.P0]
Name = ""
ImageSource = "0"
HomePosition = "1"


[PTZ.Preset.P0.Position.P1]
Name = "Default"
Data = "pan=-127.31489:tilt=-23.686457:autofocus=on:autoiris=on"


[PTZ.Preset.P0.Position.P2]
Name = "Front Door"
Data = "pan=-99.714653:tilt=-15.466125:autofocus=on:autoiris=on"


[PTZ.Preset.P0.Position.P3]
Name = "Street"
Data = "pan=-146.78341:tilt=-7.273780:autofocus=on:autoiris=on"


[PTZ.Preset.P0.Position.P4]
Name = "Gate2"
Data = "pan=67.846985:tilt=-59.843109:autofocus=on:autoiris=on"


[PTZ.PTZDriverFirmwares]
Driver1Major = "glibc_1-libptz_1-crisv32-linux"
Driver1Minor = "glibc_0-libptz_5-0"


[PTZ.PTZDrivers]
Driver1 = ""
DriverNone = "none"


[PTZ.PTZDriverVersions]
Driver1Version = "0.01"


[PTZ.SerDrivers]
Ser1Driver = ""
SerNoneDriver = "none"


[PTZ.SerDriverStatuses]
Ser1Status = "3"


[PTZ.SerDriverVersions]
Ser1Version = "0.01"


[PTZ.Support.S1]
AbsolutePan = "true"
RelativePan = "true"
AbsoluteTilt = "true"
RelativeTilt = "true"
AbsoluteZoom = "true"
RelativeZoom = "true"
DigitalZoom = "true"
AbsoluteFocus = "false"
RelativeFocus = "true"
AutoFocus = "true"
AbsoluteIris = "true"
RelativeIris = "true"
AutoIris = "true"
ContinuousPan = "true"
ContinuousTilt = "true"
ContinuousZoom = "true"
ContinuousFocus = "true"
ContinuousIris = "false"
Auxiliary = "true"
ServerPreset = "true"
DevicePreset = "false"
SpeedCtl = "true"
JoyStickEmulation = "true"
IrCutFilter = "true"
AutoIrCutFilter = "true"
BackLight = "true"
ActionNotification = "true"
ProportionalSpeed = "true"
GenericHTTP = "false"
LensOffset = "false"
AreaZoom = "true"


[PTZ.TargetFirmwares]
Driver1Major = "glibc_1-libptz_1-crisv32-linux"
Driver1Minor = "glibc_0-libptz_5-0"
--- END ---

For the people that are interested. This is my Zoneminder Configuration for the P5534 using FFMPEG/RTSP that is relevant:
General
Name: Front
Source Type: Ffmpeg
Function: Modect
Enabled: yes
Linked Monitors: N/A
Maximum FPS: 8.00
Alarm Maximum FPS: 15.00
Reference Image Blend %ge: 7
Triggers: None

Source
Source Path: rtsp://<p5534 ip address>/axis-media/media.amp?tcp
Source Colours: 24 bit colour
Capture Width (pixels): 1280
Capture Height (pixels): 720
Preserve Aspect Ratio: no
Orientation: Normal

Tested the Presets and they worked:
<p5534 ip address>/com/ptz.cgi?query=presetposcam&camera=1
<p5534 ip address>/com/ptz.cgi?gotoserverpresetno=1&camera=1


If there is any more information I can provide, please let me know. Just wondering if I have to script this myself, or if someone can point me into the right direction. Thanks.

Stonith
Locked