-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2000) failed. Not Connected #3
Comments
You indicates the dedicated onvif port is 8999. Update the ptzcontroller.conf option from 2000 to 8999. |
Ouch long day for me! I'm not sure how I missed that, but sadly I am closer but still hung up. I am getting a bit more success, I tried all four cameras on 80,443 and 8999 and got something positive on two cameras followed by a disconnect. When I run program, for all the cameras I get of course the cameras are not connected 2024-12-13 20:26:45 - INFO :: MainThread : PTZController Initialization Complete 2024-12-13 20:28:30 - DEBUG :: CP Server Thread-7 : Control Request: stop ['camera=2'] Additional suggestions are very much appreciated! |
The 80 after your device ip address indicates you are specifying port 80. Is that the dedicate onvif port? |
Are the cameras on the same network as the computer you are running this program on? |
These two are cameras fully PTZ capable. I madea little program that queries the onvif cameras and it produces this; 2024-12-13 20:26:46 - INFO :: CameraInit-tally : Initialization for Camera tally at ('192.168.1.229', 80) failed. Not Connected Device Information: { |
Appologizes that copy paste got away on me. Long story short yes I believe this should be all good, as I mentioned, I am currently using these onvif cameras with couple video management systems via the onvif classification. One is HikVision, the other a very generic chinese rushed type ip camera. |
In the Network Protocols section, it lists the HTTP and the RTSP ports, but not onvif. I don't know if onvif has to be enabled in the camera configuration. But take a look to make sure onvif is enabled and note what the port us. |
I found a little more information about Hikvision cameras. Seems you are correct in using port 80. |
One last idea. |
Thanks for helping me out tonight. I've check the cameras over again and tried some others cameras and all of them are actively running with QNAP Survellance system setup in ONVIF mode. Somehow or another all running Onvif mode - part of me is getting crazy saying well maybe I'm causing a collision because the QNAP archiver is running at the same time? lol I know its not that but getting crazy (; I'm curious what cameras you are using and tested against, all of mine are low end cameras, with HIKVision being the best. Here is the config I have for the 4 cameras at the moment [DEFAULT] [General] [Webserver] [camera1] [hut2] [Camera2] [post] |
Is the computer you are running my code on on the same 192.168.1.x network? |
I guess I need to add more diagnostics to my code to try to identify what caused the connection failure. |
Currently on different subnets but fully routable, no firewall between them and proxy_arp enabled. So basically yup, same networks. |
Can you try this? Edit camera.py This might tell us where it is failing. |
I’ve been trying to write a Python ONVIF program to control a couple of neighborhood cameras and ended up writing a wayyy less cool version of the program you have here! More to the point, my version doesn’t work with any of my cameras—no matter what I tried, I couldn’t get anywhere with ONVIF beyond basic queries. Looking forward to exporing CherryPy, never heard of it but your code looks clean.
That said, I’m running into the same error on four different cameras, same ones I've been trying to write my program using. Do I have bunk onvif? These cameras work with several VMS systems, both corp and consumer level without complaining at all.
Below is what I am getting from your system. The cameras are online and reachable, they listen on 80, 443 and one 8999 too which is supposed to be the dedicated onvif port but 443 works too.
Any thoughts, suggestions or help would be much appreciated, as I'm really hoping you can help so I can just use your program! (:
2024-12-13 19:33:54 - INFO :: CameraInit-PTZCam2 : Initialization for Camera PTZCam2 at ('192.168.1.220', 2000) failed. Not Connected
2024-12-13 19:33:54 - INFO :: CameraInit-hut2 : Initialization for Camera hut2 at ('192.168.1.83', 2000) failed. Not Connected
2024-12-13 19:33:54 - INFO :: CameraInit-tally : Initialization for Camera tally at ('192.168.1.229', 2000) failed. Not Connected
2024-12-13 19:33:55 - DEBUG :: CameraInit-camera1 : Camera camera1: Getting video source configurations
2024-12-13 19:33:55 - INFO :: CameraInit-camera1 : Initialization for Camera camera1 at ('192.168.1.81', 80) failed. Not Connected
The text was updated successfully, but these errors were encountered: