Page 1 of 1

PTZ Control Problem

Posted: Wed May 07, 2008 9:02 pm
by jfunk
Having trouble getting PTZ controls to work with Axis 212 PTZ Network camera. Controls show up but do nothing when clicked on. I am able to control the camera from the camera's interface, but not from zoneminder. zmdc is running on the server.

Camera is set to controlable, and Control Type is set to Axis API v2. I am not sure what to set the Control Device and Control Address blanks to.

ZoneMinder Version 1.23.3


zmdc.log:

05/07/08 16:47:25.735591 zmdc[5423].INF ['zmc -m 6' starting at 08/05/07 16:47:25, pid = 4734]
05/07/08 16:47:25.955353 zmdc[5423].WAR [Can't find process with command of 'zmtrack.pl -m 6']
05/07/08 16:47:26.180991 zmdc[5423].WAR [Can't find process with command of 'zma -m 6']
05/07/08 16:47:26.482127 zmdc[5423].WAR [Can't find process with command of 'zmf -m 6']
05/07/08 16:49:57.037649 zmdc[5423].ERR ['zmc -m 6' exited abnormally, exit status 255]
05/07/08 16:49:57.037878 zmdc[5423].INF [Starting pending process, zmc -m 6]
05/07/08 16:49:57.040836 zmdc[5423].INF ['zmc -m 6' starting at 08/05/07 16:49:57, pid = 4840]

Posted: Mon May 12, 2008 1:40 pm
by zylantha
I am having the same problem, ZM 1.23.3.

Apache logs show that the commands are being sent to index.php, and using zmcontrol.pl I can issue the control commands on the server from the command line, but all the buttons on the web interface do nothing.

No solution yet, however one "gotcha" for me was that zmcontrol.pl needs the CPAN Module::Load which is not a dependency of zoneminder in the Gentoo ebuild. This issue showed up while attempting to use zmcontrol.pl from the command line on the server. Unfortunately even though I've now fixed this, it still doesn't work from the web interface :(

Posted: Wed May 14, 2008 12:53 pm
by zylantha
Some cunning diagnostics revealed that line 844 of zm_actions.php calls the function socket_create().

This function is only available if you compile PHP with --enable-sockets (in Gentoo set the use flag "sockets").

On my system this was failing, and sure enough, I had compiled PHP without this option enabled.

Re-emerge php with sockets enabled, restart apache, and control works as expected.

PTZ Trouble

Posted: Fri Jun 20, 2008 2:33 am
by whosbob
Just upgraded to 1.23.3 from 1.22.3 everything went fine till I tried a PTZ function. basically it no longer works....found error message in logs PHP Fatal error Call to undefined function socket_create()...Is there any other work around other than recompiling php?

pclinuxos 2007
apache-mod_php 5.1.6
php-cgi 5.1.6

Posted: Mon Jul 27, 2009 9:03 pm
by gleybsonfrm
zylantha,

Can you explain more detailed how you do this, because I have the same problem and did not understand that part of henable-PHP sockets
My version of ZM is: 1.24.2
my S.O. is: 9:04 UBUNTU SERVER

Excuse my English.