mictlanix / onvif

A lightweight ONVIF Client library.
MIT License
46 stars 25 forks source link

PTZ Location returns '0' values #1

Closed mistal-distal closed 4 years ago

mistal-distal commented 6 years ago

I just wanted to post this here in case I forgot. So all of the tests passed without any issues except for the presets. It's successfully returning the preset names but not the p/t/z values. I'll do a better write up tonight with more info. I'm testing against dahua, canon, and amcrest cameras.

Great work, this looks awesome

ezavaleta commented 6 years ago

I think your cameras don't fully support onvif presets, I have the same results for a Chinese cam (VStarcam C7824WIP) but presets works great for another cam (Siqura HSD626).

Presets count: 1 Preset: PresetToken_1 Name: P1 Pan: 0.9983335 Tilt: -0.8181818 Zoom: -2.941139E-05

mistal-distal commented 6 years ago

It's possible, There's also a few different specs of Onvif I've noticed.

However, if you try this I can get info on ptz presets from all those camera brand I found.

https://sourceforge.net/projects/onvifdm/

I'm gonna look through the code and see what was different on the implementation.