-
-
Notifications
You must be signed in to change notification settings - Fork 3
Receive Media
Receives Media from an Input
Receives media from inputs.
Receive-Media -DirectShow -VideoDevice "OBS Virtual Camera" -OutputPath .\Desktop.mpgReceive-Media -DirectShow -VideoDevice "OBS Virtual Camera" -OutputPath .\Desktop.mkv -AsJobThe input device type.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
The input device identifier. This will be specific to a given input type.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
If provided, will use a specific pixel format for video and image output. This maps to the -pix_fmt parameter in ffmpeg.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
The frame rate of the outputted video
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
The number of frames to output.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
The duration to record. If not provided, will record indefinitely.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[TimeSpan] |
false | named | true (ByPropertyName) |
A list of additional arguments to FFMpeg.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String[]] |
false | named | false |
If set, will save output to a file
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
If set, will run as a background job.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
The path to FFMpeg.exe. By default, checks in the path.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | false |
Receive-Media [-InputType <String>] [-InputDevice <String>] [-PixelFormat <String>] [-FrameRate <String>] [-FrameCount <String>] [-Duration <TimeSpan>] [-ArgumentList <String[]>] [-OutputPath <String>] [-AsJob] [-FFMpegPath <String>] [<CommonParameters>]Stopping a script that is receiving media with CTRL+C may prevent certain filetypes from being finalized.
For best results, use a filetype designed for streaming, such as .wav for audio or .mpg for video.
Alternatively, if you run Receive-Media -AsJob, stopping the job will normally allow FFMpeg to finalize.