Advanced Scene Switcher

Advanced Scene Switcher 1.28.1

BeoMulf

New Member
Hm, I am a bit surprised by that.
The plugin should not really affect the video output of the media source in any way, so I am not sure why the black screen is happening only when using the advanced scene switcher.
What is displayed instead of the black screen when not using the plugin?
What exactly have you configured in the advanced scene switcher in regards to that media source?
Odd, I went to go check it so I could provide screenshots and now I'm getting the black screen 100% of the time, so I guess this is the expected response of VLC Media sources, which is frustrating.
 

Bygrilinho

New Member
I see what you mean.
A build where switching to the already active scene is enabled (while studio mode is active) can be found here in a few minutes:
Let me know if everything works as expected.

Just in case you are not aware and it might be useful for your setup:
A separate action exists to allow you to swap the preview and progam scene.
View attachment 80688
Works perfectly, thank you!
I am aware of the swap scene action, but using it means I have to set the preview scene first. I was doing that until now, but this simplifies the process.
That's not how transitions work. They go from A > B.

So is what you're saying that you want to hide your screen while you enable or disable a text?

In that case, could you not just put something on your screen (like the transition) in a Media Source file, drag it to the top of the scene (in sources) and enable that? Then it would play, and you could do whatever you want with text files.
When I show/hide something in a scene while in studio mode, the item doesn't immediately get hidden, you first have to run a transition to go to the changed state
So yes, a transition can go from A > A in this case

If it's still confusing check this:
 

Paul E.

New Member
What a great plugin! Here's my situation:

I have a long sequence of scenes--in the neighborhood of 70. When in Studio mode, for each scene that becomes active in the Program window, I'd like the following scene to come up in the Preview window. That way, I can just keep pressing the Transition button to go from scene to scene, while still previewing each. I know I can use this plugin to create macros for each scene to accomplish this, but is there some way I can do it without having to manually create 70 macros?

Thanks,
Paul
 

Warmuptill

Active Member
What a great plugin! Here's my situation:

I have a long sequence of scenes--in the neighborhood of 70. When in Studio mode, for each scene that becomes active in the Program window, I'd like the following scene to come up in the Preview window. That way, I can just keep pressing the Transition button to go from scene to scene, while still previewing each. I know I can use this plugin to create macros for each scene to accomplish this, but is there some way I can do it without having to manually create 70 macros?

Thanks,
Paul
Hm, that's an interesting scenario.
I think it might make sense to use the "Scene Group" tab here:

As the name suggests a Scene Group is a collection of multiple scenes.
Scene Groups can be used as a target for scene switch actions just like a regular scene can be.
However each time a Scene Group is selected as a target for a scene switch action of course only one actual scene can be finally chosen.
The scene which is chosen to be switched to depends on the logic set up for each particular Scene Group.

For your example you will need a Scene Group similar to the following:
SceneGroup.png

The above example obviously only contains three example scenes - test1, test2, and test3 - but you get the idea.
The important settings are "Type: Count" and "Advance to next scene after 1 matches", which will make sure to advance to the next scene in the list of scenes each time "Example Scene Group" is being chosen as the target of a scene switch action.

Finally you will have to create a macro which will change the currently active preview scene to the "Example Scene Group".
In the following example a hotkey named "Advance to next scene" is used to trigger this preview scene change.
MacroSceneGroup.png


Unfortunately I had disabled selecting Scene Groups as the target for the "Switch preview scene" action as I couldn't think of a use case where this would be useful.
So with the currently released version you will not be able to select your Scene Group.
A build where this functionality is enabled can be found here in a few minutes:
Note that you have to be logged into GitHub to be able to download this build.
Please let me know if that should be an issue for you and I can try to share it via other means.

Hope that helped!
Let me know if you have any issues or questions!
 
Last edited:

Paul E.

New Member
Thank you very much! That was almost what I was looking for. Every time I press the hotkey, it does advance the Preview window as desired, but, it doesn't affect the Program window. Ideally, I'd like to press one button and have what's in the Preview window transition into the Program window as well as have the Preview window advance to the next scene. So here's what I did. I set the OBS "Transition" hotkey to the same hotkey that activates the macro. Does that sound reasonable?
 

dbsoundman

New Member
I'm on day two of OBS, learned a lot today and I'm really happy with advanced scene switcher, but I'm having trouble with one particular function.

What I want to do is automatically switch to a different scene (a photo slide show) when a video ("media source") ends.

I've tried both of the methods shown in the attached screenshot, and neither works. When the video gets to the end, it just shows a black screen and the scene never switches. The other functions in Advanced Scene Switcher seem to work, so it's just this one that's troubling me and I'm not sure why.

The only unique thing I can think of about my setup is I am not streaming to any web service (e.g. youtube); I installed the RTSP server plugin, so that's my only streaming output, and as such, OBS doesn't technically think I'm streaming.

I'm hoping I'm missing something obvious here!
 

Attachments

  • Screenshot_20220223_172827.png
    Screenshot_20220223_172827.png
    34.2 KB · Views: 24

AaronD

Active Member
I'm on day two of OBS, learned a lot today and I'm really happy with advanced scene switcher, but I'm having trouble with one particular function.

What I want to do is automatically switch to a different scene (a photo slide show) when a video ("media source") ends.

I've tried both of the methods shown in the attached screenshot, and neither works. When the video gets to the end, it just shows a black screen and the scene never switches. The other functions in Advanced Scene Switcher seem to work, so it's just this one that's troubling me and I'm not sure why.

The only unique thing I can think of about my setup is I am not streaming to any web service (e.g. youtube); I installed the RTSP server plugin, so that's my only streaming output, and as such, OBS doesn't technically think I'm streaming.

I'm hoping I'm missing something obvious here!

Do you have a "Played to End" option? I don't know what the difference is, but that one works for me.
 

Warmuptill

Active Member
Thank you very much! That was almost what I was looking for. Every time I press the hotkey, it does advance the Preview window as desired, but, it doesn't affect the Program window. Ideally, I'd like to press one button and have what's in the Preview window transition into the Program window as well as have the Preview window advance to the next scene. So here's what I did. I set the OBS "Transition" hotkey to the same hotkey that activates the macro. Does that sound reasonable?
Sure, that sounds reasonable.

Alternatively if you just want to move all those actions into the macro you could also add a "Swap scene" action followed by a "Wait" action before the "Switch preview scene".
MacroSceneGroup2.png

(The wait will be necessary as the "swap scene" action will itself trigger a change in preview scene.)

I'm on day two of OBS, learned a lot today and I'm really happy with advanced scene switcher, but I'm having trouble with one particular function.

What I want to do is automatically switch to a different scene (a photo slide show) when a video ("media source") ends.

I've tried both of the methods shown in the attached screenshot, and neither works. When the video gets to the end, it just shows a black screen and the scene never switches. The other functions in Advanced Scene Switcher seem to work, so it's just this one that's troubling me and I'm not sure why.

The only unique thing I can think of about my setup is I am not streaming to any web service (e.g. youtube); I installed the RTSP server plugin, so that's my only streaming output, and as such, OBS doesn't technically think I'm streaming.

I'm hoping I'm missing something obvious here!
Unfortunately it is very difficult to help without having the information what else you have configured in the scene switcher.
The reason for that is that other switching methods with a higher priority could "block" the media tab from executing its scene switch.

For that reason I would recommend transitioning to the Macro tab.
This would be an example of what you would have to configure:
MediaExample.PNG

If you prefer to use the media tab instead and want to investigate this issue further please export your current settings to a file (General tab) and also provide a log of the issue with verbose logging enabled (General tab).
 

dbsoundman

New Member
Unfortunately it is very difficult to help without having the information what else you have configured in the scene switcher.
The reason for that is that other switching methods with a higher priority could "block" the media tab from executing its scene switch.

For that reason I would recommend transitioning to the Macro tab.
This would be an example of what you would have to configure:
View attachment 80890
If you prefer to use the media tab instead and want to investigate this issue further please export your current settings to a file (General tab) and also provide a log of the issue with verbose logging enabled (General tab).

I did find my issue, I didn't notice that the Media tab had a horizontal scrollbar, so I neglected to select the Transition method. Once I set that up, it started working great!

That being said, I will look into the Macro tab more, as I think it might provide more flexibility. I'd like to do things like start a short video at a certain time, then follow with a longer video, and doing this with a combination of the Time and Media tabs can get really confusing.
 

Warmuptill

Active Member
Dear @Warmuptill:

First of all, fantastic plugin, thank you! I have functionality question, or perhaps a feature request if the functionality doesn't already exist.

Is it possible to setup Macros whose conditions are based on OBS Stats. For example, If average-frame-time is greater than 15000 ms, disable filter XYZ on source ABC

Thanks again for a great plugin, and thanks in advance for your response.

Regards,
Alex
I now got around to implement this functionality:
StatsCondition.PNG

Besides average frame time a few other stats are also supported. (E.g. dropped frames, current fps, cpu usage, etc.)

A build with this change will (hopefully) be available here in a few minutes:
Note that you have to be logged into GitHub to be able to download this build.
Let me know if everything works as expected! :)
 

Paul E.

New Member
Sure, that sounds reasonable.

Alternatively if you just want to move all those actions into the macro you could also add a "Swap scene" action followed by a "Wait" action before the "Switch preview scene".
View attachment 80889
(The wait will be necessary as the "swap scene" action will itself trigger a change in preview scene.)

Ah! That's a better solution in my opinion. Thank you, again!
 

Tormy

Member
Damn, I've updated and I lost ALL the settings I have made with the previous version.

Moreover each time I start it, it appears the window "this seems to be the first time..."

EDIT: fortunately I had a document where I wrote what I did, and I recovered quickly
 
Last edited:

Warmuptill

Active Member
Damn, I've updated and I lost ALL the settings I have made with the previous version.

Moreover each time I start it, it appears the window "this seems to be the first time..."
I cannot replicate this behaviour and explicitly test for that before making a new release.
Are you sure that you are not accidentally using a different scene collection than you normally do / start up OBS in portable mode while you usually don't?
When the message "this seems to be the first time..." always pops up that would mean that no settings can be saved at all.
Maybe you changed something in regards to file permissions?

I still have a few more questions:
  • Which OS are you using?
  • Which version of OBS are you using?
  • What was the previously installed version of the plugin?
  • Where you propmpted to back up your current plugin settings?
 

Tormy

Member
I cannot replicate this behaviour and explicitly test for that before making a new release.
Are you sure that you are not accidentally using a different scene collection than you normally do / start up OBS in portable mode while you usually don't?
When the message "this seems to be the first time..." always pops up that would mean that no settings can be saved at all.
Maybe you changed something in regards to file permissions?

Hi Warmuptill

Thank you for your reply.

Last time I used it, it was yesterday at around midnight, and I saved the scene settings (as I usually do) in a JSON file.
It was working excellently since your script is a great help to automate many things.

I just came across the update right now, and I did it. BUt ti returned the issue I highlighted.
I quickly recovered since I also saved all the "scene to scene" on a file (normally is OneNote tab where I put all these notations).

Once I recovered everything, also the message "it seems it is the first time..." stopped to appear.

Hence, I didn't change anything rather than update this plugin.

While I'm writing here, I still working to OBS (I need for an articulated conference, next week).

I'm trying also to figure out how to turn off the virtual cam, after 5 seconds a scene was selected
 

Warmuptill

Active Member
Very strange - Please do let me know if you can somehow narrow down what caused this to happen as this would be a very critical issue.

I'm trying also to figure out how to turn off the virtual cam, after 5 seconds a scene was selected
Maybe something like this will do the trick?
VCOff.PNG
 

Tormy

Member
Very strange - Please do let me know if you can somehow narrow down what caused this to happen as this would be a very critical issue.


Maybe something like this will do the trick?
View attachment 81044

First of all, thank you for your hint. It worked fantastically

About the issue: I have not clue what caused it.. I rolled back and forward and it didn't pop up.
I have not clue what caused it.

I always updated your script without any issue at all. Just all updates worked out.
This is the only one for which I got strange behavior.

Later I will try also on another machine (I can't do much experiments on this machine, because I need OBS ready for a client service within this week, and I'm working on it to get it ready)
 

ad1562

New Member
I now got around to implement this functionality:
View attachment 80901
Besides average frame time a few other stats are also supported. (E.g. dropped frames, current fps, cpu usage, etc.)

A build with this change will (hopefully) be available here in a few minutes:
Note that you have to be logged into GitHub to be able to download this build.
Let me know if everything works as expected! :)

You're a legend! I have yet to check out the functionality, but will do so soon and report back. Thanks!
 

Bygrilinho

New Member
I think he wants to show/hide sources in a scene while the scene is live. When he tries that, it works in Preview, but Program (and the audience) stays as it is. In order to make that change visible to the audience, he has to change scenes ("transition"), even if it's the same scene. (select and fire scene A, while scene A is already live)

Mine does that too, by the way. I have the same text overlay on at least 3 different scenes, and hotkeys to show/hide it. If I show one of those scenes to the audience (Program), cue up the same scene again in Preview, and use that hotkey; the Preview changes, but not the Program/audience. If I then fire ("transition to") the Previewed scene, which is technically the same scene as Program, *then* the overlay shows/hides to the audience.

It seems like this is not really a problem with Adv-SS, but rather a (sometimes useful) quirk in OBS itself. (a "be careful of what the audience sees, and allow for a final check and correction before committing," sort of mentality) There might be some API tricks to get around it though, that Adv-SS can use; or maybe a function that just does this and is only accessible from the API and not the UI.
I kinda forgot about this, but you can actually disable this behavior in OBS, right next to the transition button, there's a setting called "Duplicate scenes", perhaps this is disabled for @lindenkron so that's why this didn't make sense. I do find it useful though, and I like to keep it enabled :)
 

loudroom

New Member
What if you had two scenes for the front camera? One of them stays there forever, and the other has the 45-second timer to go to the side camera. The side cam, of course, also has a 45-second timer to go to the timed front cam. Your switching then, is to go to the timed front cam or the forever front cam. Depending on the transition, the audience won't know the difference.
Ooooh now that might work!! I'm going to give this a shot for sure, thank you so much :)
 
Top