glikely / obs-ptz

OBS Pan Tilt Zoom camera control plugin
GNU General Public License v2.0
143 stars 41 forks source link

Support for ePTZ cameras to turn on/off autotracking #155

Open markusd1984 opened 1 year ago

markusd1984 commented 1 year ago

Thank you so much for sharing this plugin, makes it so much easier than logging into the web or using a custom dock in OBS! I just got a ePTZ Camera and it worked a treat via VISCA/TCP. (I got the one from RGB Link, same model as BZBGEAR Maestro)

One of the main benefits is auto tracking that these cameras do, eliminating the need for manual control, however there are circumstances that require to use fixed presets or manual control which can only be performed while auto tracking is turned off.

**Not sure if this command to turn it on/off is camera specific, if not could we add a button?

Alternatively and even as a general enhancement, is there any possibility to have an interface in settings to add custom commands?** i.e. enter a label and the command, which than become available as a custom button. This could also be very handy for any other custom commands...

Start teacher tracking 0x810x0A 0x08 0x01 0x020xFF Stop teacher tracking 0x81 0x0A 0x08 0x01 0x03 0xFF

If not, can you give any advise on where buttons are configured and their commands? I'm happy to have a look and see if I can help fork/develop custom button, my main skills though is more JS but perhaps I can help somehow.

You rock! Thanks for the hard work and help to make this plugin even better.

dleffler commented 1 year ago

The commands for turning Face Tracking On/Off via HTTP/CGI (for the Chameye) are:

The camera on/off is accessed via context menu off the camera name. The command has gotten smarter at figuring out whether the camera is on or off. However, it doesn't work with my Chameye PTZ camera, but worked with the Top0 one I tested.

markusd1984 commented 1 year ago

Chameye

btw. wow didn't realise this cam support streaming over ethernet? Most of these PTZ cameras in this price range 600-1K $/€ that I've seen I understood only use ethernet for power (PoE) and or to control the camera while streaming only over NDI / HDMI / USB. (I wonder if this would have been a better choice over a fixed ePTZ camera as mine doesn't seem to have great low light performance but auto tracking works somewhat reasonable, only horizontally though. How well is the auto tracking?)

Also would think this camera supports VISCA thus commands should be usable rather than HTTP/CGI url. (are you sure you can execute these via url without being logged in first into your camera admin interface?)

Regardless we would need some custom buttons to trigger within the OBS plugin, that would rock and eliminate still having to log into our camera interface to trigger these (or use a second tab for a custom dock... at least you could probably add it with a simple local html file with buttons linking to these destinations).

dleffler commented 1 year ago

FWIW, I've confirmed those AI mode controls do not require a login. I've created some duplicate scenes and added a browser control to each with a separate url to change AI modes.