Hi @Warmuptill
, I would like to know if there is a macro that allows me to detect if a webcam is sending video (is it on or off). I want to create a macro that, if the camera is off or does not send video, changes the scene. Is there such a possibility in advance scene switcher? thank you
To explain that *sightly* better, there's no actual indication that a source has been lost. OBS simply keeps the last frame until the next update, and if it doesn't get updates anymore, it just keeps that frame forever. That's pretty much all you have to go on.What happens if the camera is "off"?
Which source type are you using?
Does it show a black image / does the image freeze?
If so you might be able to use the pattern matching functionality of the video condition to detect that state.
So if there's motion that suddenly stops, that could be useful. Or if the camera driver substitutes something that is clearly not a valid image, that can work too. But if it's something like a security cam staring at an empty alley, that simply keeps the last frame, good luck!
In the last case, maybe you can have a clock in the corner of the camera shot? (like, a physical clock in the camera's optical field of view, not an overlay in OBS) So when the clock stops moving/changing, you know it's dead?