Adds or sets a window capture source
Adds or sets a windows capture source in OBS. This captures the contents of a window.
Get-Process -id $PID | Set-OBSWindowCaptureSource -Name CurrentWindow
The monitor number.
This the number of the monitor you would like to capture.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 1 | true (ByPropertyName) | ItemValue ItemName WindowName MainWindowTitle |
The number of the capture method. By default, automatic (0).
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 2 | true (ByPropertyName) |
The capture priority.
Valid Values:
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 3 | true (ByPropertyName) |
If set, will capture the cursor.
This will be set by default.
If explicitly set to false, the cursor will not be captured.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will capture the client area.
This will be set by default.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will force SDR.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
The name of the scene.
If no scene name is provided, the current program scene will be used.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 4 | true (ByPropertyName) | SceneName |
The name of the input.
If no name is provided, “Display $($Monitor + 1)” will be the input source name.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 5 | true (ByPropertyName) | InputName |
If set, will check if the source exists in the scene before creating it and removing any existing sources found.
If not set, you will get an error if a source with the same name exists.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
Set-OBSWindowSource [[-WindowTitle] <String>] [[-CaptureMethod] <Int32>] [[-CapturePriority] <String>] [-CaptureCursor] [-ClientArea] [-ForceSDR] [[-Scene] <String>] [[-Name] <String>] [-Force] [<CommonParameters>]