-
-
Notifications
You must be signed in to change notification settings - Fork 3
Show Media
Shows media
Shows media, using FFPlay
Show-Media -InputPath $home\Music\ASong.mp3Show-Media -InputPath $home\Videos\AMovie.mp4 -Fullscreen$cameraName = "NexiGo N60 FHD Webcam" # Replace with your own camera, use Get-FFMpeg -ListCaptureDevice
$ShowSplat = [Ordered]@{
DirectShow = $true
VideoDevice = $CameraName
Mirror = $true
TimeMix = 5
EdgeDetect = $true
DrawText = $true
DrawTextFontSize = 24
DrawTextFontColor = 'white'
DrawTextShadowColor = 'black'
DrawTextBorderWidth = 2
DrawTextBorderColor = 'black'
DrawTextCenter = $true
}
$showText = @(foreach ($kv in $showSplat.GetEnumerator()) {
if ($kv.Value -is [bool]) {
"-$($kv.Key)"
} else {
"-$($kv.Key) '$($kv.Value)'"
}
}) -join [Environment]::Newline
$showSplat.DrawTextText = $showText
Show-Media @showSplat -Fullscreen -VerboseThe input path.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
true | 1 | true (ByPropertyName) |
If set, will run as a background job.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
The resolution of the media player. This can be passed down to extensions that generate video.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | false |
The display mode. When input is audio, defaults to 'Waves'
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
The volume.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Int32] |
false | named | true (ByPropertyName) |
If set, will run fullscreen
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will keep the player open after the media finishes.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will not automatically rotate video.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
Set the x position for the left of the window
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Int32] |
false | named | true (ByPropertyName) |
Set the y position for the top of the window
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Int32] |
false | named | true (ByPropertyName) |
If set, will force the displayed width.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Int32] |
false | named | true (ByPropertyName) |
If set, will force the displayed height.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Int32] |
false | named | true (ByPropertyName) |
If set, will not display anything.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will run in a borderless window.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will run in a window that is always on top.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, this will loop the input source.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, this will loop the input source any number of times.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[Int32] |
false | named | true (ByPropertyName) |
The path to FFPlay. If not provided, this will be automatically detected.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | false |
System.Nullable
System.Management.Automation.Job
Show-Media [-InputPath] <String> [-AsJob] [-Resolution <String>] [-ShowMode <String>] [-Volume <Int32>] [-Fullscreen] [-KeepOpen] [-DoNotAutoRotate] [-Left <Int32>] [-Top <Int32>] [-Width <Int32>] [-Height <Int32>] [-NoDisplay] [-NoBorder] [-AlwaysOnTop] [-Loop] [-LoopCount <Int32>] [-FFPlayPath <String>] [<CommonParameters>]