Prevent obs playing a mediasource

godis3mpty

New Member
Today I made a lurkcommand with a video file, created my own scene and inserted it nested into my live scene. Now this file is always activated when OBS starts and also when the scene changes. I created a trigger for this in streamerbot, and it works perfectly. However, it would be great if these files were not started by obs, but only by the trigger. another problem, as soon as I stop the endless mode, a video file is not started, which means that the video in the stream works, but not from the beginning, but from somewhere in the middle. Are there settings in obs that I have to apply so that obs doesn't start any media sources automatically and they are always started by trigger? Maybe this is also a setting thing for streamerbot, but I couldn't really find anything helpful in this regard. Best regards godis3mpty
 

Suslik V

Active Member
It is possible with plugins and scripts.
For example, Advanced Scene Switcher plugin has condition "Media Source Ended" and action "Hotkey", the hotkey can be assigned to hide the media source. Thus, if you switch away from the scene - the source will be hidden. Now you only need to show media source by another hotkey. No loops.
 

godis3mpty

New Member
Do I understand correctly that I have to use hotkeys for this, or can I also assign these hotkeys via Streamerbot? I'm currently interested in automating as much as possible; hotkeys would be a step backwards in this regard. I'm also not really into obs and streamerbot yet, I've been using obs for 2 years now but I've only now delved deeper since I started using streamerbot. But thanks for the quick answer, I'll take a look at this script this evening.
 

godis3mpty

New Member
Hello, I have now installed it and started the sound via hotkey, so far so good, but that wasn't my concern.
When it comes to sound, for example, I meant that I start the audio file directly with OBS, which is a bit annoying.
Turning off monitoring isn't possible either, otherwise I won't notice the raids.

So is there a setting that starts OBS without starting any media?
I have now found that I can basically make the same settings using appropriate filters and triggering in streambot.

Sorry that it may have been a bit complicated to explain.
 

Lawrence_SoCal

Active Member
So is there a setting that starts OBS without starting any media?
Uh... start with a Scene that doesn't have any enabled (turned on/showing) Media?
By default OBS Studio will 'play' any Media that is enabled (on/show) in a Scene when you go to that Scene

The Sources Guide on this site calls it Hiding/Showing Sources
To hide a Source temporarily, you can click the eye icon to hide the associated Source with it; the eye will become greyed out.
To show the Source again, click the eye another time; the eye will become white.
cnmeq1a-1.png
Figure 2.1: Visible Source
ofefwok-1.png
Figure 2.2: Hidden Source
 

godis3mpty

New Member
Thats not what im searching for, because thats manual, i build a autoshoutout for raids, so clicking the eyes isnt that what i am looking for. Is there maybe any plugin that obs dont start any media file by itself, maybe a thing for a next update, that you can decide if you want that or not.
 

Suslik V

Active Member
Why not to read the "Set Source Visibility State" from the bot's docs and try to use it? Here, "Advanced Scene Switcher" plugin just hides the source automatically when media playback ends (not makes it transparent but really hides, i.e. eye icon changes its state).

On startup OBS doesn't playback sources that are hidden, unless the Restart playback when source becomes active option is unchecked. This behavior of OBS was mentioned in:
it surely was the same in v21.1.2 of OBS and maybe in earlier versions. I think, it is very unlikely that it will be changed.

Anyway, here is the page where you can say what you want to see in OBS:
 

godis3mpty

New Member
ok, I've now researched this a little, I used a tutorial to create an animation in obs, for this I needed a filter set which, among other things, also contains move source. With this filter I can make a lot of settings on the source, too sources de and activate, basically the same as with the macros suggested here.

Now this works quite well, the animation starts and the sound is played and also ends at the end of the animation. The video is now also started and stopped like this. Now I have packed my own animations for lurk, raid, follow, sub and primesub into their own scene and nested all of these scenes in my main scene for clarity.

I also deactivated all sources when changing the scene, that works too, thanks for the tip.

Now the individual scenes are triggered and executed via the streamerbot, so it works. The problem that still exists is that as soon as I start obs, I get all these audios played at once, which isn't really great. and this cannot be stopped with any of the filters mentioned, as it is a basic setting of obs.

Hiding the sources manually is the exact opposite of what I just did; I would like the individual sources to automatically run through one after the other as an animation.

What's also interesting here is that images and text sources are not displayed automatically and this is only the case with media such as audio and video and I don't understand the reason. Activate yes, that's ok, but don't play it.

I hope I have now been able to explain my problem as much as possible and thanks to the help here I have already made some progress, even if I managed this with a different plugin.

kindly regards
 
Top