Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Video trigger seems to be broken #1275

Open
KopiasCsaba opened this issue Dec 8, 2024 · 2 comments
Open

The Video trigger seems to be broken #1275

KopiasCsaba opened this issue Dec 8, 2024 · 2 comments

Comments

@KopiasCsaba
Copy link

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

31.0.0

Advanced Scene Switcher Version

1.28.1

Plugin settings

{"sceneGroups":[],"macros":[{"name":"test","group":false,"pauseSaveBehavior":0,"pause":false,"parallel":true,"onChange":true,"skipExecOnStart":false,"stopActionsIfNotDone":false,"useShortCircuitEvaluation":false,"useCustomConditionCheckInterval":false,"customConditionCheckInterval":{"value":{"value":0.29999999999999999,"type":0},"unit":0,"version":1},"dockSettings":{"register":false,"hasRunButton":true,"hasPauseButton":true,"hasStatusLabel":false,"highlightIfConditionsTrue":false,"runButtonText":"Run","pauseButtonText":"Pause","unpauseButtonText":"Unpause","conditionsTrueStatusText":"Conditions are true.","conditionsFalseStatusText":"Conditions are false.","dockId":"advss-macro-dock-3be81c66-10e8-4837-9048-d1ab2e398e06","version":1},"macroActionConditionSplitterPosition":[],"macroElseActionSplitterPosition":[],"registerHotkeys":true,"pauseHotkey":[],"unpauseHotkey":[],"togglePauseHotkey":[],"conditions":[{"segmentSettings":{"collapsed":false,"useCustomLabel":false,"customLabel":"My label"},"id":"video","logic":0,"durationModifier":{"time_constraint":0,"seconds":{"value":{"value":0.0,"type":0},"unit":0,"version":1}},"videoInputData":{"type":1,"source":{"type":0,"name":"Video Capture Device"},"sceneSelection":{"type":0,"name":""}},"condition":3,"filePath":"--enter path--","blockUntilScreenshotDone":false,"brightnessThreshold":{"value":0.5,"type":0},"patternMatchData":{"useForChangedCheck":false,"threshold":{"value":0.23999999999999999,"type":0},"useAlphaAsMask":false,"matchMode":3,"version":1},"objectMatchData":{"modelPath":"../../data/obs-plugins/advanced-scene-switcher/res/cascadeClassifiers/haarcascade_frontalface_alt.xml","scaleFactor":{"value":1.1000000000000001,"type":0},"minNeighbors":3,"minSize":{"width":{"value":0,"type":0},"height":{"value":0,"type":0},"version":1},"maxSize":{"width":{"value":0,"type":0},"height":{"value":0,"type":0},"version":1},"version":1},"ocrData":{"pattern":"--enter text--","regexConfig":{"enable":false,"partial":true,"options":0},"language":"eng","textColor":{"red":0,"green":0,"blue":0},"colorThreshold":{"value":0.29999999999999999,"type":0},"pageSegMode":6,"version":1},"colorData":{"color":{"red":0,"green":0,"blue":0},"colorThreshold":{"value":0.10000000000000001,"type":0},"matchThreshold":{"value":0.80000000000000004,"type":0}},"throttleEnabled":false,"throttleCount":3,"areaData":{"enabled":false,"area":{"x":{"value":0,"type":0},"y":{"value":0,"type":0},"width":{"value":0,"type":0},"height":{"value":0,"type":0},"version":1}}}],"actions":[{"segmentSettings":{"collapsed":false,"useCustomLabel":false,"customLabel":"My label"},"id":"systray_notification","enabled":true,"message":"Jeah!","title":"Advanced Scene Switcher","icon":"","version":1}],"elseActions":[],"inputVariables":[]}],"macroSettings":{"highlightExecuted":true,"highlightConditions":true,"highlightActions":true,"newMacroRegisterHotkey":true,"newMacroUseShortCircuitEvaluation":false,"saveSettingsOnMacroChange":true},"variables":[],"switches":[],"ignoreWindows":[],"screenRegion":[],"pauseEntries":[],"sceneRoundTrip":[],"sceneTransitions":[],"defaultTransitions":[],"defTransitionDelay":300,"ignoreIdleWindows":[],"idleTargetType":0,"idleSceneName":"","idleTransitionName":"","idleEnable":false,"idleTime":60,"executableSwitches":[],"randomSwitches":[],"fileSwitches":[],"readEnabled":false,"readPath":"","writeEnabled":false,"writePath":"","mediaSwitches":[],"timeSwitches":[],"audioSwitches":[],"audioFallbackTargetType":0,"audioFallbackScene":"","audioFallbackTransition":"","audioFallbackEnable":false,"audioFallbackDuration":{"value":{"value":0.0,"type":0},"unit":0,"version":1},"videoSwitches":[],"interval":300,"non_matching_scene":"","switch_if_not_matching":0,"noMatchDelay":{"value":{"value":0.0,"type":0},"unit":0,"version":1},"cooldown":{"value":{"value":0.0,"type":0},"unit":0,"version":1},"enableCooldown":false,"active":true,"startup_behavior":0,"autoStartEvent":0,"logLevel":0,"logLevelVersion":1,"showSystemTrayNotifications":false,"disableHints":false,"disableFilterComboboxFilter":false,"warnPluginLoadFailure":true,"hideLegacyTabs":true,"priority0":10,"priority1":0,"priority2":2,"priority3":8,"priority4":6,"priority5":9,"priority6":7,"priority7":4,"priority8":1,"priority9":5,"priority10":3,"threadPriority":3,"transitionOverrideOverride":false,"adjustActiveTransitionType":true,"lastImportPath":"","startHotkey":[],"stopHotkey":[],"toggleHotkey":[],"upMacroSegmentHotkey":[],"downMacroSegmentHotkey":[],"removeMacroSegmentHotkey":[],"tabWidgetOrder":[{"generalTab":0},{"macroTab":1},{"windowTitleTab":2},{"executableTab":3},{"screenRegionTab":4},{"mediaTab":5},{"fileTab":6},{"randomTab":7},{"timeTab":8},{"idleTab":9},{"sceneSequenceTab":10},{"audioTab":11},{"videoTab":12},{"sceneGroupTab":13},{"transitionsTab":14},{"pauseTab":15},{"websocketConnectionTab":16},{"twitchConnectionTab":17},{"variableTab":18},{"actionQueueTab":19}],"saveWindowGeo":true,"windowPosX":0,"windowPosY":0,"windowWidth":-1,"windowHeight":-1,"macroListMacroEditSplitterPosition":[],"version":"db50822b0518ed224d17b9537aef029c00188e43","websocketConnections":[],"twitchConnections":[],"actionQueues":[]}

OBS Studio Log URL

No response

OBS Studio Crash Log URL

No response

Expected Behavior

Upon adding an "IF VIDEO SOURCE [Video Capture Source] HAS CHANGED" filter, I expect that if the video source changes it would execute.

Current Behavior

Sadly it isn't the case, and it seems other options in this trigger might be broken as well. The brightness thing worked for me, but the object detection didn't work either.

Steps to Reproduce

  1. Add the video fitler trigger for your webcam "has changed"
  2. Add some action and observe that it is not getting executed.

Anything else we should know?

Now, this might be important.

I use OBS in portable mode, and used the zip file for the ASS plugin, just simply copied over OBS's folder.

So I start obs with "obs64.exe -p", not sure if this has an effect on your plugin or not, but it might.

I have first found this on a PC, but now i have reproduced it under virtualbox as well. Download obs the zip version, download your tool, the zip version, extract/merge and it will happen.

I didn't see any errors in the logs of obs.

I also have made two videos about this:
https://youtu.be/lsnWBzeT6Ww (upon moving the slider to 100% it triggers once apparently)

This was on the other pc, i just tested the object detection with the eye, it is clearly visible it finds a lot of eyes, but the actions aren't executed.
https://youtu.be/DQ3GcXgyJ_U

Thanks!

@WarmUpTill
Copy link
Owner

You will have to untick the "Perform actions only on condition change" checkbox if you want the actions to be performed continuously while the condition is true.

Does that solve your problem?

@KopiasCsaba
Copy link
Author

Hmm, it seems to be, but i remember playing with it and it wasn't solved it. Anyhow closing now, will reopen if still persist. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants