-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Custom option for PTZ controls #160
Comments
Could you point a spec document describing the protocol such as the XML schema for the PUT request? Or, do you think it is a good idea to implement this plugin to call a power-shell script every time changing the PTZ control? |
I could not find a protocol document at that time, I reverse engineered via developer tools. http://username:[email protected]/ISAPI/PTZCtrl/channels/1/continuous The following XML starts turning camera left with speed of 1: <?xml version: "1.0" encoding="UTF-8"?><PTZData><pan>-1</pan><tilt>0</tilt><zoom>0</zoom></PTZData> The following XML starts tilting the camera down with speed of 3: <?xml version: "1.0" encoding="UTF-8"?><PTZData><pan>0</pan><tilt>-3</tilt><zoom>0</zoom></PTZData> The following XML starts moving the camera up and right with speed of 2: <?xml version: "1.0" encoding="UTF-8"?><PTZData><pan>2</pan><tilt>2</tilt><zoom>0</zoom></PTZData> Zoom is very basic, it has 3 speeds, and the speed of 1 is already pretty fast. Nevertheless, the following XML starts zooming the camera in: <?xml version: "1.0" encoding="UTF-8"?><PTZData><pan>0</pan><tilt>0</tilt><zoom>1</zoom></PTZData> The following XML stops camera movement: <?xml version: "1.0" encoding="UTF-8"?><PTZData><pan>0</pan><tilt>0</tilt><zoom>0</zoom></PTZData> |
Probably, this is working. You can find packages at the bottom of this page. It would be helpful if you can test it with your hardare. The camera model I tested the XML data is sent as a PUT method using an HTTP server on Python on Linux. However, I have not tested the basic authentication. |
Thanks for dealing with this request! In a first test I cannot select the Camera Model under Windows 10 (latest OBS x64), it is like the list is empty. |
I'm sorry I missed a file. This one should work. |
Thanks and sorry for the late reply, I managed to test it today. Unfortunately it does not work. While it can see me, it draws the rectangles, it does not move the camera. I provided the IP address, without port number, username, password, it does not work. Maybe I am doing something wrong. Is there a debug log generated somewhere, that I can look at or provide to you? |
Thank you for testing. The debug log should be generated on the OBS's log.
From the menu, click `Help` -> `Log Files` and you can find current, previous, and other log files.
|
Thanks. Found the logfile. Maybe it is not set to high enough level, the only relevant line I see now is
after I put the IP address and login data. Relevant lines from logfile.
I will check next time if I can raise the log level to get more info into the logfiles. |
I started obs with --verbose, and there is only one extra line I see:
So not sure what is wrong here. |
Thank you for the information. I will look into this later in this week. I was busy recent weeks.
Probably, this is the reason but I need to debug further. |
Could you try this binary? I've implemented the data-rewind as the log message suggested so that one issue should be cleared. |
Hi, again, sorry for the late reply, we had to test twice, and still not 100% sure about the findings. BUT in the meantime we found a camera setting, that will revolutionize manual camera movement: the camera can do pan and tilt speed proportional to the zoom, so if zoomed in, then the angle speed is slower. Now, with this setting turned on, the plugin moves the camera way too slow, and will often loose the face. Maybe the plugin should have more courage to move the camera faster 😄. I checked, and the camera accepts all speeds, but there is no noticeable change above 100 or below -100. I will record some footage tomorrow, hope it helps. |
Source/filter types
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
We are using low budget HikVision PTZ cameras. They accept HTTP PUT commands for PTZ controls. Example (in PowerShell):
$pan
,$tilt
is the camera speed -100..+100 (we us speeds up to 15).$zoom
is -3..+3 (we basically use -1, +1). 0 is stop.Describe alternatives you've considered
There are no alternatives at this moment, other than buying tracking capable camera.
Additional context
Authentication is required:
The text was updated successfully, but these errors were encountered: