New features for the script plugin: support for PTZOptics and Hotkey actions.
- PTZOptics support: The script settings have two new configuration items: the port and protocol mode. The port defaults to 52381 and can be changed when needed (e.g. to 1259 for a PTZOptics camera). The protocol needs to be set to 'PTZOptics' to make the script talk the Visca dialect of PTZOptics.
- Pan, Tilt & Zoom actions can now be performed using a hotkey (for camera's that support pan, tilt or zoom). The...
I just purchased a SMTAV 30x PTZ camera that is supposed to be pretty much identical to its PTZOptics counterpart.
Yes, I used Wireshark and I saw that the port was invalid. I changed the port to 52380 , which was valid, and at some point the camera would actually move. However, when I restarted OBS and the camera, it wouldn't work at first, then changing ports (or whatever else I did), it would suddenly work again. Unfortunately, I could't really reliably reproduce that behavior or make any sense of it. So, I eventually gave up and wrote my own script using curl and cgi commands. That seems to work well now.I actually don't know whether the low-level socket library works on MacOS. When the script does not show errors, it should work. The script uses a different connection method than cgi-calls, so these can't be directly compared. A quick look at the documentation seems to indicate that the camera supports Visca-over-IP using the exact protocol this script implements.
Are you familiar with using Wireshark? Could you create a capture of traffic between your machine and the camera while using the script?
Hi tmimlitch, thanks, my pleasure :)
The reaction of the camera seems weird to me. To provide some help, a few more details would be of added value:
- which camera (brand, type) has issues?
- does it officially support Visca over IP?
- which mode are you using it in; Generic or PTZOptics?
- which version of the script are you using - latest I presume?
Yes, if you are running you own local DNS or similar name resolution serviceBut I do have another question, is it possible to access these NDI cameras by name instead of IP address, as the IP sometimes changes with DHCP.