mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-28 04:22:16 -05:00
Created Video condition (markdown)
84
Video-condition.md
Normal file
84
Video-condition.md
Normal file
@@ -0,0 +1,84 @@
|
||||
The "Video" macro condition allows you to trigger actions when a video source ...
|
||||
* is similar to a provided pattern or exactly matches it
|
||||
* contains certain objects
|
||||
* has changed
|
||||
* has no output
|
||||
|
||||
These different options will be described in more detail below.
|
||||
|
||||
### Important note
|
||||
If a video source is currently not being rendered by OBS (e.g. if every instance the source is hidden) some check types might not work as you would expect.
|
||||
You can work around this limitation by opening a "Windowed Projector" of the source by right-clicking on the particular source and choosing the "Windowed Projector (Source)" entry in the context menu.
|
||||
|
||||

|
||||
|
||||
|
||||
## General settings
|
||||
|
||||
This section will cover the general settings which are available regardless of which video condition type is chosen.
|
||||
|
||||
### Video source selection
|
||||
|
||||
All video condition types require you to select which video source you want to analyze.
|
||||
You can select the source by clicking on the desired entry in the combobox.
|
||||
|
||||

|
||||
|
||||
### Condition type selection
|
||||
|
||||
You can select which type of check you want to perform in the highlighted combobox.
|
||||
|
||||

|
||||
|
||||
### Image selection
|
||||
|
||||
Most condition types require specifying a reference image or pattern the video source's output has to be compared to.
|
||||
The path can be entered in the highlighted text input field (2) or you can press the "Browse" button to select the file in OS' file explorer.
|
||||
In some cases you also have the option to create a screenshot of the current output of the video source when pressing the "Browse" button.
|
||||
|
||||

|
||||
|
||||
### Area selection
|
||||
|
||||
Most check types of the video condition support only matching a specified area of the video output source.
|
||||
This can be useful if you want to ignore certain areas of the video source.
|
||||
Another reason to use this option is if you try to apply the video condition checks to a very high resolution source and want to reduce the performance impact of running this condition's checks. (Especially the object detection and pattern matching can become very resource intensive)
|
||||
|
||||

|
||||
|
||||
To select enable this functionality first tick the corresponding checkbox. (1)
|
||||
Next either manually enter the area you want to focus on by typing in the desired X coordinate, Y coordinate, width and height. (2)
|
||||
Alternatively press the "Select area" button to open a preview window of the source and mark the area by drawing a rectangle over it. (3)
|
||||
|
||||
|
||||
## Condition types
|
||||
|
||||
### Exactly matches
|
||||
|
||||
When selecting this type of check the video source or the sub-area that was selected to be checked needs to match for every single pixel.
|
||||
That means if resolution of the video source / selected area and the provided input image do not match the condition will always be false.
|
||||
|
||||
### Does not match
|
||||
|
||||
This condition type is the inverse to "exactly matches".
|
||||
Meaning, if only a single pixel does not match or the resolution of the checked source / area differs to the provided image this condition will be true.
|
||||
|
||||
### Has changed
|
||||
|
||||
This condition type is true if the video source or the selected area has changed.
|
||||
As the name would suggest, it is most useful if you do not really care about the exact content of a video source but want to trigger actions if something changed.
|
||||
|
||||

|
||||
|
||||
If you want to ignore minor changes in the image you can enable "pattern matching". (1)
|
||||
|
||||
### Has not changed
|
||||
|
||||
This condition type is the inverse of the "has changed" condition type.
|
||||
|
||||
### Has no output
|
||||
|
||||
This condition is true if the video source has no output at all.
|
||||
This is *not* the same as the video source having a black image as video output.
|
||||
|
||||
An example of a video source having no output would be if all instances of the source are currently hidden. (Eye icon next to source)
|
||||
Reference in New Issue
Block a user