Advanced Scene Switcher

Advanced Scene Switcher 1.31.0

Warmuptill

Active Member

New User, installed plugin per instructions, Mac Sequoia M1 Pro - Crash happens when opening OBS
Unfortunately there is no indication of the advanced scene switcher even being loaded in the log you shared.
Do you have a crash log as well?
On MacOS this should be contained in the dialog window popping up informing you that OBS crashed.

In case you did not use the installer and manually placed the files in the corresponding directories please ensure to "sign" the files afterwards as described here:
 

cdante100

New Member
I am at a bit off a loss.
The log does unfortunately not give any conclusive hints as to what the problem might be.

Can you please send me an export of your settings?
You can export them to a file on the General tab.
Please send them to me via DM and not here to make sure your Twitch token does not get leaked.

I apologise that it is such a chore to get it working for you for some reason.
Hi man, i've sended you some update about the bug
 

FOXENHEiM

New Member
Hi there,

After updating to 1.31.0 (from 1.27.0) some "if statements" are not working. Specifically the ones I use to control one of my sound sources. Everything else seem to work perfectly, but the macros controlling audio level does not work, even after creating new ones.

I used them in the following way:
I had 4 marcos with if statements running together to govern the "audio configured volume" of my sound source, by looking at the "audio output level". Each macro would do something like the following:

If [output volume] exceeds (x)
And [configured volume] is exactly (y)
Then adjust [configured volume] to (73%)(this value changes based depending on (y))

These macros don't do anything anymore. As a side note the version I used did not have any fractions available for volume percentages, and could only be configured as percentage. V 1.31.0 can now be configured in either percentage or db, and percentage now has fractions available. I did double, triple an quadtriple checked that the volume levels match to the fraction perfectly stil with no success, not sure if the fractions are somehow causing this.

When I remove the "And [configured volume] is exactly (y)" part of the trigger works, but if Advanced scene Switcher does not know the current configured volume, it will not know which one of the 4 macros to fire.

Is there any known workaround for this? Or should I downgrade?

Also thank you so very much for this amazing plugin, such a lifesaver. Thank you for all the hard work <3
 
Last edited:

Warmuptill

Active Member
Hi there,

After updating to 1.31.0 (from 1.27.0) some "if statements" are not working. Specifically the ones I use to control one of my sound sources. Everything else seem to work perfectly, but the macros controlling audio level does not work, even after creating new ones.

I used them in the following way:
I had 4 marcos with if statements running together to govern the "audio configured volume" of my sound source, by looking at the "audio output level". Each macro would do something like the following:

If [output volume] exceeds (x)
And [configured volume] is exactly (y)
Then adjust [configured volume] to (73%)(this value changes based depending on (y))

These macros don't do anything anymore. As a side note the version I used did not have any fractions available for volume percentages, and could only be configured as percentage. V 1.31.0 can now be configured in either percentage or db, and percentage now has fractions available. I did double, triple an quadtriple checked that the volume levels match to the fraction perfectly stil with no success, not sure if the fractions are somehow causing this.

When I remove the "And [configured volume] is exactly (y)" part of the trigger works, but if Advanced scene Switcher does not know the current configured volume, it will not know which one of the 4 macros to fire.

Is there any known workaround for this? Or should I downgrade?

Also thank you so very much for this amazing plugin, such a lifesaver. Thank you for all the hard work <3
I am not aware of any issues with the audio condition type.
But that of course doesn’t mean that there isn’t a potential issue. ;)
I will try to look into it later today.

In case you did not do so already you can enable visual indicators to help identify when a condition evaluate to true or false.
 

FOXENHEiM

New Member
I am not aware of any issues with the audio condition type.
But that of course doesn’t mean that there isn’t a potential issue. ;)
I will try to look into it later today.

In case you did not do so already you can enable visual indicators to help identify when a condition evaluate to true or false.
Thank you very much for getting back to me. I will use the visual indicators to do some more trouble shooting abd let you know what I find. Thanks again
 

FOXENHEiM

New Member
I am not aware of any issues with the audio condition type.
But that of course doesn’t mean that there isn’t a potential issue. ;)
I will try to look into it later today.

In case you did not do so already you can enable visual indicators to help identify when a condition evaluate to true or false.
I think I have an idea of what's happening: I don't think the problem has anything to do with ASS...or not really.

I updated OBS and with it all of my plugins. And that is when the volume macros stopped triggering. I used the visual indicaters like you sugested and I was able to determine that it is the [configured volume is EXACTLY] that does not trigger. This change in behaviour of my macros happens even if I dont update ASS after updating to OBS to 31.2.1

It's the OBS update that introduces the fractions(with volume percentage), even if I don't update ASS.

I used the MOVE plugin in conjunction with ASS to change the volume to certain db values. But it seems that when the MOVE plugin change the volume, it is not exact enoigh for the new OBS fractions or something like that, because the "match exactly" trigger doesn't work.

When I changed the macros to use the ASS internal AUDIO volume adjustments, it now triggers. Leading me to believe that the ASS volume change is exactly accurate. That, or maybe the ASS reads the volume differently from OBS.

Anyway, I found a way to get it to work again, but thought I should give the info.
Thanks again
 

ubuntourist

New Member
I recently tried to install Advanced Scene Switcher from a tarball, and upon running, got the non-critical errors:

[adv-ss] failed to load ".../advanced-scene-switcher-usb.so": \ Cannot load library .../advanced-scene-switcher-usb.so: \ libusb-1.0.so.0: cannot open shared object file: No such file or directory [adv-ss] failed to load ".../advanced-scene-switcher-opencv.so": \ Cannot load library .../advanced-scene-switcher-opencv.so: \ libtesseract.so.5: cannot open shared object file: No such file or directory [adv-ss] failed to load ".../advanced-scene-switcher-mqtt.so": \ Cannot load library .../advanced-scene-switcher-mqtt.so: \ libpaho-mqttpp3.so.1: cannot open shared object file: No such file or directory

Then I tried the Flatpak which fixed the OpenCV error, but shows no evidence of the USB or the MQTT stuff.

Mostly, I'm curious about the missing bits. Is it Flatpak sandboxing that's keeping the USB and MQTT out? Or is there a way to include those? And what conditions come with USB?
 

Warmuptill

Active Member
I recently tried to install Advanced Scene Switcher from a tarball, and upon running, got the non-critical errors:

[adv-ss] failed to load ".../advanced-scene-switcher-usb.so": \ Cannot load library .../advanced-scene-switcher-usb.so: \ libusb-1.0.so.0: cannot open shared object file: No such file or directory [adv-ss] failed to load ".../advanced-scene-switcher-opencv.so": \ Cannot load library .../advanced-scene-switcher-opencv.so: \ libtesseract.so.5: cannot open shared object file: No such file or directory [adv-ss] failed to load ".../advanced-scene-switcher-mqtt.so": \ Cannot load library .../advanced-scene-switcher-mqtt.so: \ libpaho-mqttpp3.so.1: cannot open shared object file: No such file or directory

Then I tried the Flatpak which fixed the OpenCV error, but shows no evidence of the USB or the MQTT stuff.

Mostly, I'm curious about the missing bits. Is it Flatpak sandboxing that's keeping the USB and MQTT out? Or is there a way to include those? And what conditions come with USB?
The flatpak build does not include the USB and MQTT libaries.
This probably happens because build time dependencies are missing.
I will try to look into it when I find the time to.

Thanks for pointing that out!
 

KaroHolmberg

New Member
I have had issues with Advanced Scene Switcher's hotkey-process for some time now. Some times it works, some times it doesnt, and I do not seem to find out what is the reason or trigger that makes it function or not function.

I use global hotkeys to a) select a camera, and b) select a preset (= a predetermined PTZ-position for the camera):
- Numpad1-4 = Select Camera 1-4
- Numpad7-9 = Activate Camera Specific PTZ-Preset 1-3

OBSbot Center has these Global Shortcuts assigned - and they work 100% when used from keyboard (as shown in video).

I have gathered a video of the issue, a small report.txt and also included a log of run actions.

This is also odd because some of my macros do work (camera angles change), but some don't. Some macros work some times and sometimes they dont.

OBS version: 31.1.2
ASS version: 1.31.0

 

Warmuptill

Active Member
I have had issues with Advanced Scene Switcher's hotkey-process for some time now. Some times it works, some times it doesnt, and I do not seem to find out what is the reason or trigger that makes it function or not function.

I use global hotkeys to a) select a camera, and b) select a preset (= a predetermined PTZ-position for the camera):
- Numpad1-4 = Select Camera 1-4
- Numpad7-9 = Activate Camera Specific PTZ-Preset 1-3

OBSbot Center has these Global Shortcuts assigned - and they work 100% when used from keyboard (as shown in video).

I have gathered a video of the issue, a small report.txt and also included a log of run actions.

This is also odd because some of my macros do work (camera angles change), but some don't. Some macros work some times and sometimes they dont.

OBS version: 31.1.2
ASS version: 1.31.0

I am sorry to hear that!

Just to narrow down the issue:
Does another application like e.g. notepad receive the keypresses sent by advanced scene switcher?

And to avoid a misunderstanding:
Your screenshot shows that you simulate a keypress of the "4" button, but your post mentions, that you have bound your hotkeys to "numpad 4".
While both keys result in the same number being typed, they are treated as separate individual keys.
So, an application might not react, if you are pressing "4", but it is expecting "numpad 4".

1758222207518.png
 
Top