Question / Help Switch to new scene at end of media playback

congoblue

New Member
Hi, is it possible to configure OBS to switch to another scene when media playback gets to the end of the video?

We use OBS to livestream church services. We play in a small intro video using an OBS scene, it would be really nice if we could automatically switch back to the live camera scene at the end of the video in case the operator has gone to sleep and leaves it set on the wrong scene.

I have seen a suggestion to use the scene switching timer, which would work though need changing when we use a different video. But is there a way to detect end of playback and switch at that point?
 

Matt Franklin

New Member
Off the top of my head, your best bet is to make use of the "Advanced Scene Switcher" plugin (yes, it's a third party solution, and occasional bugs happen, but I make heavy use of it). The section labeled "Scene Sequence" is what you need.

Once it's installed, go to Tools -> Advanced Scene Switcher, and look for the Scene Sequence tab. All you need to do from there is plug in four bits of info:

1) The scene of your media file
2) The destination scene you want to transition to when the file ends
3) The duration of the timer that triggers the transition
4) Which transition you want to use

The tricky bit is step three, since you have to write your video's play time in seconds, and OBS doesn't offer a tool for calculating this.

I will say it tends to fail if the video is more than a few minutes long, but you can program multiple transitions in if you have multiple video scenes. The only limitation there is one timer+transition per active scene. In other words, if you have three scenes, A, B, and C, scene A can ONLY be Sequenced to B or C. On the other hand, both A and B can target C as their destination.

Unless OBS plans to integrate something similar, or a more recent version of the tool has been released elsewhere, you can find it here:
https://obsproject.com/forum/resources/advanced-scene-switcher.395/
 
Top