Page 3 of 3

Re: PTZ with onvif

Posted: Tue Apr 21, 2020 5:06 pm
by jedi
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

Re: PTZ with onvif

Posted: Tue Apr 21, 2020 9:42 pm
by jeremyenos
> After changing, a zoneminder reboot is required
^^^^^^

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

Re: PTZ with onvif

Posted: Tue Apr 21, 2020 9:46 pm
by jeremyenos
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.

Re: PTZ with onvif

Posted: Wed Apr 22, 2020 7:09 pm
by ronw
Jeremy, How did you implement the 0,0 command? I have the same issue and am struggling with it.

Re: PTZ with onvif

Posted: Mon Jul 13, 2020 1:42 pm
by kysdaddy
Hello,
Did you ever get this figured out? I am having identical issues

Re: PTZ with onvif

Posted: Mon Aug 03, 2020 11:51 pm
by thefuzz4
Did anyone figure out getting presets to work?

Re: PTZ with onvif

Posted: Thu Jan 14, 2021 6:59 am
by jeremyenos
Much apologies to neglected questions- somehow I missed any notification of them.
I've re-installed since, and I'm now using version 1.34.22 (I forgot the previous version, but it was older). Anyway, I set an auto stop timeout = 1, put the control address in as before, and this time it worked. At least w/ my newer S3VC camera. (my older ones were fried by lightning)

I'll repost the following question in the appropriate version branch, but since it's related, figured I'd mention here as well.
I'm now experimenting and failing with a different Chinese brand camera that seems crazy obscure... Tyvance? It looks just like YoLuke, but it's a little better featured, the firmware is slightly better, and app is slightly different. But I have had zero success getting PTZ to work at all with Zoneminder.

btw- I run dlandon's Zoneminder docker image, if it matters. But with the previous Zoneminder version and this one, I have never had the "Probe ONVIF" function detect any cameras. I have no idea why, but I feel like that is where I should be focusing my efforts. I have already tried putting in the URL that I discovered with ONVIF DM and a wireshark sniffer. No luck there either.

ONVIF Device Manager, Tinycam, etc... all seem to detect these cameras effortlessly and PTZ works w/o issue. I wish Zoneminder worked as well. I can't seem to find a starting point to even debug it. The command line tool returns nothing either.
So here I am in the forum again.

Re: PTZ with onvif

Posted: Wed Mar 17, 2021 9:33 am
by LeoTLT
Greetings to all! Guys, help start a PTZ on such a camera. I can't do it.

UPD:

Immediately I apologize for my English - this is all google translator.)) (You have the latest version of ZoneMinder installed, v1.34.23) - my server. Cameras in the production of automatic doors. There are almost 100 of them in the installation.
I managed to get this PTZ camera in the following steps. Hope it comes in handy for someone here!
I only fixed this parameter in the original Netcat.pm file:

I had - my $ cmd = 'onvif / PTZ';
Fixed on - my $ cmd = 'onvif / ptz_service';

And control settings as in the screenshot that I attached.
Thanks to all! Because I took all the ideas from this topic.
Everything works in both ZM and ZMninjapro.

Re: PTZ with onvif

Posted: Mon Apr 19, 2021 11:48 pm
by L4UR3NS
Hi all.

I was having some trouble getting PTZ to work but since I managed to pull it off I thought I'd share my findings.

The camera's I have a 25 EUR chinese cams (see attachment).

Using the default Netcat.pm file with the following settings:

Control Type: Netcat ONVIF
Control Device: Profile_1
Control Address: admin:12345@IPADDRESS:80/onvif/ptz_service
Auto Stop Timeout: 0,10

Hope this will help someone.

Re: PTZ with onvif

Posted: Thu May 06, 2021 11:11 am
by hornetster
Yes!
Thanks to all the genii here.
I have an el cheapo SriCam SP012, and have been battling with this for a while, but have just succeeded!
Settings are:
Control Type: Netcat ONVIF
Control Device: Profile_1
Control Address: admin:12345@IPADDRESS:5000/onvif/ptz_service
Auto Stop Timeout: 0,10

Brilliant!

Re: PTZ with onvif

Posted: Fri May 28, 2021 2:30 am
by dougmccrary
In v1.36 on a sp005 this works for me, albeit with errors:

Control Type Netcat ONVIF
Control Device
Control Address admin:12345@192.168.1.207:5000
Auto Stop Timeout (empty, only takes a single numeric.)

Reboot/restart don't seem to be required with this version, either.

Re: PTZ with onvif

Posted: Sun Jan 09, 2022 12:21 am
by GoDie
Got one chinese working with:
Control device: 000
Control address 192.168.1.109:8899

Re: PTZ with onvif

Posted: Tue Jan 11, 2022 10:39 pm
by thefuzz4
JLerch Tampa wrote: Mon Jun 03, 2019 6:47 pm Just a quick 1st Post to say Thank You! This thread helped me figure out how to get PTZ working in ZM with my new el-cheapo POE Camera.

Image

Image

I've been using a Reolink NVR (RLN8-410) with 6 of their RLC-410 IP Cameras, and for the most part it was ok. However it refuses to support any 3rd party cameras so it was time to build my own NVR. I went with ZoneMinder as I couldn't stomach the thought of running iSpy on Windows. :)

Still have a bunch of learning to do, but just wanted to say thank you!

Kind Regards,
James in Tampa,FL,USA,Earth
James thank you so much for posting this, I also bought one of these PTZ cameras and your screenshots have allowed me to find my sanity once again. Thank you.

Re: PTZ with onvif

Posted: Mon Jan 31, 2022 6:32 pm
by wodkalime
For those of you, who were not successfull (like me)..

Here is an updated onvif.pm and the settings I used... Took me 2 days of sniffing :(

MainStream has to be written with a big S!!! :roll:

Best luck for you guys...

Main changes in onvif I did - fixed the datetime function slightly and added/changed URI /onvif/ptz_service

replace your onvif.pm in /usr/share/perl5/ZoneMinder/Control/ with this one, and it should work....