Resource icon

Control Visca-over-IP based cameras 2.6

vwout

Member
Thanks. I will investigate it. At first glance it looks like PTZOptics does not want the message header that the Visca protocol specifies.
 

vwout

Member
vwout updated Control Visca-over-IP based cameras with a new update entry:

Release 1.3

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...

Read the rest of this update entry...
 

tjfoth

New Member
Used this at our church services last two Sundays and it was simply brilliant. So much more reliable than using the whole URL approach. Thanks so much for adding this!
 

Baron Oz

New Member
I just purchased a SMTAV 30x PTZ camera that is supposed to be pretty much identical to its PTZOptics counterpart. I've installed the plugin and configured it, but I'm not getting any camera motion when I switch to the scene with the VISCA Camera Control Source. I have presets stored in the camera that I can switch to using the camera remote, I would assume that the digit in the script presets window corresponds to the preset number in the camera.
This looks like a great plugin, and is perfect for my needs. I hope I can get it to work. If anyone has any pointers on troubleshooting, I'd love to hear from you. I can supply whatever data you need to look at.
Thanks!
 

vwout

Member
Can you share some detail on how you configured it, both the script settings and the scene source settings?
What could also help is the output of the script log (send it via a private message if you don't want to share it publicly).

A few points of attention:
- Does the camera support Visca over IP? A quick look on the specs only mentioned Visca over a serial connection (RS232/422/485)
- Is there a PC-tool from that manufacturer that does work via the network?
- Did you specify the correct IP address and port for this camera?
- Did you try both 'Generic' and 'PTZOptics' mode?
 

Lawrence_SoCal

Active Member
I just purchased a SMTAV 30x PTZ camera that is supposed to be pretty much identical to its PTZOptics counterpart.

Between SMTAV which then disappeared from Amazon to AVKANS, which appear to be hardware clones of PTZOptics
However, online reviews indicate the software of the two mentioned (at least) is sub-par at best.
So my question - are these legit 'clones' or illegit? and for simple use cases the 1/2 price may be worth it. But if you want NDI, etc, then on-going firmware updates, and decently tested and operating s/w is important. And I haven't yet seen these knock-offs to be confirmed at that level. I'm streaming using a Panasonic 20x NDI camera. I'd love a 1/2 price option for some additional angles to cover a large room. But I'm waiting at the moment
Good Luck and I'll be watching to what king of vendor support you get, as well as getting interoperability with standards s/w
 

Baron Oz

New Member
Got it working! So cool!!!
Can't wait to use it next week for my 4 camera live stream, what a game changer!
Thanks for writing this from the bottom of my heart :)
 

Heino Falcke

New Member
Is that tool working with MacOS? I installed in on a Mac (M1) for OBS v26&27 and used a Sony SRG-X400, but the camera doesn't respond. The OBS script log files tell me that the commands are issued and AFAIK all setting in the camera should be ok (at least I can send cgi-calls via OBS to the camera, but that has other problems in OBS, which doesn't refresh them and a script I have found to work around this, does not work with multiview. So, I am a bit stuck right now ).
 

vwout

Member
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?
 

Heino Falcke

New Member
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?
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.
 

tmimlitch

New Member
Thank you soooo much VWOUT! This is just what I need. I am in the process of transferring our live stream process to OBS and this will help immensely.

i set up a few test scenes using two of my five Glow Stream cameras, One of the cameras is responding correctly but the second one has a spasm ... it points backwards and shuts itself off whenever the script touches it. I have to interrupt its ethernet (POE) connection for it to respond again.

Not asking for any help yet, as I need time to do some diagnostics, check myconfigurations and run other trials. I'll get back to you.
 

vwout

Member
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?
 

tmimlitch

New Member
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?

Sorry for the delay, but I finally found my own problem, in the configuration of the camera, everything is working beautifully now. Great software.

But 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.
 

Lawrence_SoCal

Active Member
But 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.
Yes, if you are running you own local DNS or similar name resolution service
But, realistically, if you are asking this question and having this issue, then most likely the solution will be more involved than simply setting the cameras to fixed (static) IPs, or the easiest may be to see if you can set up a DHCP reservation
 

markdj

New Member
Our church has just got a ptz camera, looks very similar to ptz optics. I cannot get the script to recall the presets from the camera so I cant select the presets in the scene. What is interesting, if I add a scene switch with the preset blank, the camera does move to preset 1 so it is obviously connecting and receiving in some way.
 

vwout

Member
Hi markdj,
two questions:
- which brand/model of PTZ camera are you using
- how did you configure the script and presets
It would be helpful when you could share the log.
 

markdj

New Member
The camera is this one.


I added the lua files to the obs program folder and opened obs. I opened scripts, added the single lua file as per instructions and set up IP address and port. At this point, I'm guessing the presets should be recalled?? I also tried adding presets to this area but when I'm in scene mode, the drop down (after selecting preset tab) is blank, whether I have a preset saved in the scripts area or not.

I won't be at church till next Sunday but can try to get a log file then.
 

vwout

Member
When there are no presets listed in the drop-down in the scene source, the syntax that you used in the script settings is probably not correct. The plugin is not capable of retrieving presets stored in your camera. You will have to list them manually in the script settings, using the format that is in the readme at https://github.com/vwout/obs-visca-control
 
Top