-
-
Notifications
You must be signed in to change notification settings - Fork 3
New Media
James Brundage edited this page Apr 22, 2022
·
2 revisions
Creates media files
Creates audio and video files using ffmpeg
New-Media -OutputPath ".\RGBTestSource.mp4" -TestSource "RGBTestSrc"The output path
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
true | 1 | true (ByPropertyName) |
The duration. By default, one second.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[TimeSpan] |
false | 2 | false |
The resolution. This can be independently handled by an extension.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | 3 | false |
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 | 4 | true (ByPropertyName) |
If set, will create the media in a background job.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
System.IO.FileInfo
System.Management.Automation.Job
New-Media [-OutputPath] <String> [[-Duration] <TimeSpan>] [[-Resolution] <String>] [[-PixelFormat] <String>] [-AsJob] [<CommonParameters>]