PTZ with onvif

Forum for questions and support relating to the 1.30.x releases only.
jedi
Posts: 1
Joined: Tue Apr 21, 2020 4:27 pm

Re: PTZ with onvif

Post by jedi » Tue Apr 21, 2020 5:06 pm

I had problems setting up PTZ control onvif camera purchased on Ali. Onvif view was fine without problems, however ptz control did not work.
Camera: IPD-E3CY02-BS

And I want to share a solution so that it can be of help to others.
The solution turned out to be quite simple and it does not require to script changes:
Control type: Netcat ONVIF
Control device: SubStream <--or MainStream is worked too
Control address: admin:adminpass@192.168.1.111:8999/onvif/ptz_service
After changing, a zoneminder reboot is required

...:8999/onvif/ptz_service - I learned this address using the packet sniffer from "Onvif Device Manager"

Have а nice day

jeremyenos
Posts: 3
Joined: Sat Apr 04, 2020 2:01 am

Re: PTZ with onvif

Post by jeremyenos » Tue Apr 21, 2020 9:42 pm

> After changing, a zoneminder reboot is required
^^^^^^

A quite critical detail I burned a lot of time overlooking! thx.

jeremyenos
Posts: 3
Joined: Sat Apr 04, 2020 2:01 am

Re: PTZ with onvif

Post by jeremyenos » Tue Apr 21, 2020 9:46 pm

Ok- I found 2 issues and got it to work.
1) I wasn't restarting the docker instance- apparently that netcat.pm is read in only at start time! Doh.
2) I looked in the ONVIF documentation, and it mentioned that to do a stop, just send the same command for movement with a x and y both set to 0 instead of a number. That worked for the autostop and stop sequences as far as I can tell.

Now, if only I could get presets to work. (and be limited to just a few- displaying 64 preset options in ZMNinja gets a little obnoxious.

ronw
Posts: 3
Joined: Wed Apr 22, 2020 7:06 pm

Re: PTZ with onvif

Post by ronw » Wed Apr 22, 2020 7:09 pm

Jeremy, How did you implement the 0,0 command? I have the same issue and am struggling with it.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests