Question / Help Motion Detection Scene Switching

SDub

New Member
Hi,

I use OBS to stream miniature painting. I have several stations that I use, one for painting, one for airbrushing, etc. Each station has some sort of camera. It would incredibly convenient if I could set up some kind of automatic scene switch that occurred whenever an active camera detected movement. Very similar to how Google Hangouts switch the main camera whenever it detects audio from a presenter, but instead of detecting audio, detecting movement of some kind.

Is this possible? I'm sure this has been asked before.

Thank you!
 

Peter Gavula

New Member
I too am interested in this as I have a "closeup" camera where it would be great if I could automatically switch to it when something is being shown there.
 

SumDim

Member
You don't need motion detection. You need to script your session before hand like a TV show and then move from station to station carrying a Wifi tablet that runs a websocket application to switch scenes. This makes it so you run the show without any additional people.

You setup a local area network with static IP stations using OBS running on all the boxes.
You need two OBS plugins:
- NDI - runs on all three boxes
- OBS websocket - runs on streaming/recording box

A HTML websocket app runs on a wifi tablet that you can carry around with you to switch scenes on an NDI source.

Pictorially, it would look like this:

scene-switch-ndi.jpg

Thats how basically I would do it.
 

Jaffey

New Member
Hi,

I use OBS to stream miniature painting. I have several stations that I use, one for painting, one for airbrushing, etc. Each station has some sort of camera. It would incredibly convenient if I could set up some kind of automatic scene switch that occurred whenever an active camera detected movement. Very similar to how Google Hangouts switch the main camera whenever it detects audio from a presenter, but instead of detecting audio, detecting movement of some kind.

Is this possible? I'm sure this has been asked before.

Thank you!
Curious if you ever found a good solution? I have the same need. Cheers
 

MingoSlade

New Member
I am using the "Advanced Scene Switcher " tool to transition cameras, based on the percentage of change that has taken place in the target scene using "pattern matching", current set at 99% (meaning only a 1% change needs to take place in order to trigger the camera (scene switch. I am currently trying to tweak the amount of change necessary in the scene needed for the transition to take place, ruling out the blowing of leaves across the yard, etc. I have included a file that shows the current settings. The only issue now is determining the during until it switches back to the original scene. Right now it is only staying on the target for 20 seconds or less, then it switches back.
 

MrGhost

Member
I am using the "Advanced Scene Switcher " tool to transition cameras, based on the percentage of change that has taken place in the target scene using "pattern matching", current set at 99% (meaning only a 1% change needs to take place in order to trigger the camera (scene switch. I am currently trying to tweak the amount of change necessary in the scene needed for the transition to take place, ruling out the blowing of leaves across the yard, etc. I have included a file that shows the current settings. The only issue now is determining the during until it switches back to the original scene. Right now it is only staying on the target for 20 seconds or less, then it switches back.

Thanks. I have downloaded the Advanced Scene Switcher and will try that. Looks like you da man here..as the Advanced Scene Switcher pages are extensive and hard to find this info of the "pattern matching" criterion. I am going to try it right away got about 5 or 6 cameras and it may be difficult as they are all pointed in one room where moving is done thru a small space similarly. Still though, it could be that a few cameras are directed more toward the side spaces or toward a focused object which is tweaked with a hand. This should be interesting. I'll let you know how it goes.
 

MrGhost

Member
Ok after some searching I found the start point for this "pattern-matching" to be under the Macro 'video'. Then in that you can select pattern matching. Somewhat easier to have a start point so I will add this. Within the video macro's 'pattern-matching', at least 2 other users seem to like the 'correlation coefficient' option as several objected at version 1 2.10 or so (April 3 2023) about it reverting to the default 'cross correlation' at OBS startup (quickly patched) on the Yosemite version. This is on page 131 of the main conversation thread for A.S.S. Haven't done anything yet. except find this info. Just procrastinating at this point. It's so damn sunny outside.
 
Last edited:

windowguy78

New Member
I am using the "Advanced Scene Switcher " tool to transition cameras, based on the percentage of change that has taken place in the target scene using "pattern matching", current set at 99% (meaning only a 1% change needs to take place in order to trigger the camera (scene switch. I am currently trying to tweak the amount of change necessary in the scene needed for the transition to take place, ruling out the blowing of leaves across the yard, etc. I have included a file that shows the current settings. The only issue now is determining the during until it switches back to the original scene. Right now it is only staying on the target for 20 seconds or less, then it switches back.
Ivan looking to have 2 static cameras at the centre of a hockey arena, and have the camera switch back and forth when the play comes into view. Any idea how I could accomplish this?
 
Top