Questions about ONVIF metadata streaming #63
-
Hello, I'm looking at using ONVIF metadata streaming to get real time PTZ status from our new Axis Q6215-LE camera, and have a few questions. BackroundWe have been using the ONVIF GetStatus command to get the camera's current orientation and zoom level. However, ONVIF requests seem to be rate limited to one request per second per client. Anything more than that (including trying to send an AbsoluteMove command to pan/tilt/zoom the camera in the same second) will result in one of the requests getting an error saying we're not authorized -- but we can retry the AbsoluteMove command and it works fine, so it's not really an authorization issue. However, we need to show the camera's orientation in real time, and such a low polling rate makes our direction indicator look choppy, and having to retry the AbsoluteMove command can introduce lag for the user. In order to make it smoother and more responsive, we're looking into using ONVIF's metadata streaming capabilities. But I wanted to check before implementing it to make sure it was supported by the camera. QuestionsSo I thought I'd ask a few questions before spending time implementing it:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi, The "Not Authorized" error that you are getting leads me to believe that there is something else that is wrong. Are you using Username-Token Authentication by any chance? If that is the case the clocks between the client and the camera must be closely synchronized. If they are not well synchronized you could get the behavior you are describing where some requests are allowed and some not. Try to sync the clocks between the client and the camera and see if the "Not Authorized" goes away. Another way to fix this is to use HTTP Digest Authentication instead which is a good idea anyway since it's more secure and used in newer ONVIF Profiles like T and M. Now to your other questions
BR /Fredrik |
Beta Was this translation helpful? Give feedback.
-
Why do you think HTTP Digest authentication would solve the problem? Doesn't it contain the same information? Is it that HTTP authentication is handled by the camera's web server rather than its ONVIF/SOAP software? |
Beta Was this translation helpful? Give feedback.
-
HTTP Digest doesn't depend on the clocks being synchronized. |
Beta Was this translation helpful? Give feedback.
Hi,
We don't have any specific throttling of SOAP requests that I'm aware of. There is a limit on WS discovery requests to prevent using our cameras as a base for DDoS attacks but that should not affect normal SOAP request.
The "Not Authorized" error that you are getting leads me to believe that there is something else that is wrong. Are you using Username-Token Authentication by any chance? If that is the case the clocks between the client and the camera must be closely synchronized. If they are not well synchronized you could get the behavior you are describing where some requests are allowed and some not. Try to sync the clocks between the client and the camera and see if the "Not Auth…