OBS and PTZOptics NDI PTZ Camera

AllenKnapp

New Member
I am trying to set up OBS Studio to use a PTZOptics NDI PTZ camera for my church. I have six presets set up in the camera. I am using the HTTP URL's that PTZOptics provides and putting them into each scene for each of the presets. For example, for preset number 1 (my wideshot), I have a "PTZ Wideshot" scene that has three sources:
1. An NDI entry for the camera video.
2. An audio capture source for the mix coming from my soundboard via Blackmagic WebPresenter.
3. A browser source named "wideshot" that contains the URL that PTZOptics provided:
http://xx.xx.xx.xx/cgi-bin/ptzctrl.cgi?ptzcmd&poscall&1
The xx.xx.xx.xx is the IP address of the NDI camera and the last character ("1" here) is the preset number.
Then I have 5 more scenes configured similarly but with different browser sources (with unique names and with the last character different for each preset).

When I call up a scene the first time after starting up OBS, it works okay. But when I try to select a PTZ Optics camera scene (e.g. "PTZ Closeup"), the camera never moves to the new preset.

If I paste the URL's into Chrome, they all move the camera.

If I use the PTZOptics Camera Control app, the presets all select the proper preset.

Is there something basic I am missing here???

Thanks!
 

Attachments

  • 2020-06-18 14-51-28.txt
    9.2 KB · Views: 159

rorem

New Member
Allen- were you able to get this working? I saw info on the Elgato Stream Deck:
that mentioned:
Don’t forget to click the “Refresh Browser when the scene becomes active” button
to make sure OBS sends the PTZOptics camera a preset command every time you
switch to this input.

I'm new to OBS but am looking to do something very similar to what you're
doing for a few churches (likely a very common use case in this age of COVID19)
 

mball2301

New Member
I had the same issue, but I wanted to be able to execute the camera preset in the active scene only when I switched scenes that had the same camera, otherwise I wanted to switch the camera in the preview (studio mode). I have a lua script that I can assign a hotkey to. This way if I want the camera to move to the preset in the preview, I press F1 (assigned hotkey to script). Otherwise I use a Stinger fade (1.5 sec) to switch the camera to active when it is the same camera. I have the script working, but I am still trying to track down a memory leak.
 

AllenKnapp

New Member
So I came up with a solution that works fairly well, and then our church closed down due to COVID at the last minute. So I have not put this out live yet to see how it looks. I'm hoping it will look better than seeing the camera movement.

I used Elgato Streamdeck and its multi-action capabiity. I created a "script" that does this:
  1. Load a black (no image) scene to preview.
  2. Transition (I used a hotkey SHIFT-CTRL-T set up in OBS, called by Streamdeck)
  3. Load a "move to left" http URL to preview (again, no image, just the http url)
  4. Transition (this initiates the camera movement but the screen remains black)
  5. Delay for camera movement
  6. Load scene with camera active
  7. Transition
So I set up several multi-action buttons to accomplish several different camera angles. The only issue I have is the zoom into the baptismal close-up takes a long time.

All of the scenes still have my audio input from my soundboard so I never lose sound through the process.

image.png
 

dqm

Member
I am trying to set up OBS Studio to use a PTZOptics NDI PTZ camera for my church. I have six presets set up in the camera. I am using the HTTP URL's that PTZOptics provides and putting them into each scene for each of the presets. For example, for preset number 1 (my wideshot), I have a "PTZ Wideshot" scene that has three sources:
1. An NDI entry for the camera video.
2. An audio capture source for the mix coming from my soundboard via Blackmagic WebPresenter.
3. A browser source named "wideshot" that contains the URL that PTZOptics provided:
http://xx.xx.xx.xx/cgi-bin/ptzctrl.cgi?ptzcmd&poscall&1
The xx.xx.xx.xx is the IP address of the NDI camera and the last character ("1" here) is the preset number.
Then I have 5 more scenes configured similarly but with different browser sources (with unique names and with the last character different for each preset).

When I call up a scene the first time after starting up OBS, it works okay. But when I try to select a PTZ Optics camera scene (e.g. "PTZ Closeup"), the camera never moves to the new preset.

If I paste the URL's into Chrome, they all move the camera.

If I use the PTZOptics Camera Control app, the presets all select the proper preset.

Is there something basic I am missing here???

Thanks!
In case you've not resolved this, may be that you need to be sure and check the "Refresh Browser..." option in the source properties. Otherwise, the browser will resolve the http request from it's cache, rather than issuing a new request to the camera.
 
Top