Draws Text on Video
Draws Text on Video, using the drawtext filter
New-Media -Color "Black" -Duration "00:00:05" -Resolution 1920x1080 -OutputPath .\BlackBackground.mp4 |
Edit-Media -DrawText -DrawTextText "Hello World" -DrawTextCenter -DrawTextFontSize 36
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
true | named | false |
set font file
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 1 | false |
set text
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 2 | false |
set text file
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 3 | false |
set foreground color (default “black”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 4 | false |
set foreground color expression (default “”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 5 | false |
set box color (default “white”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 6 | false |
set border color (default “black”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 7 | false |
set shadow color (default “black”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 8 | false |
set box (default false)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
set box border width (from INT_MIN to INT_MAX) (default 0)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 9 | false |
set line spacing in pixels (from INT_MIN to INT_MAX) (default 0)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 10 | false |
set font size
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 11 | false |
set x expression (default “0”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 12 | false |
set y expression (default “0”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 13 | false |
set shadow x offset (from INT_MIN to INT_MAX) (default 0)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 14 | false |
set shadow y offset (from INT_MIN to INT_MAX) (default 0)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 15 | false |
set border width (from INT_MIN to INT_MAX) (default 0)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 16 | false |
set tab size (from 0 to INT_MAX) (default 4)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 17 | false |
set base time (from I64_MIN to I64_MAX) (default I64_MIN)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int64] |
false | 18 | false |
Font name (default “Sans”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 19 | false |
set the expansion mode (from 0 to 2) (default normal)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 20 | false |
set initial timecode
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 21 | false |
set 24 hours max (timecode only) (default false)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Boolean] |
false | 22 | false |
set rate (timecode only) (from 0 to INT_MAX) (default 0/1)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Double] |
false | 23 | false |
set rate (timecode only) (from 0 to INT_MAX) (default 0/1)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Double] |
false | 24 | false |
reload text file for each frame (default false)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
apply alpha while rendering (default “1”)
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 25 | false |
check and fix text coords to avoid clipping (default false)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
start frame number for n/frame_num variable (from 0 to INT_MAX) (default 0)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 26 | false |
the source of text
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 27 | false |
attempt to shape text before drawing (default true)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
set font loading flags for libfreetype (default 0)
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 28 | false |
If set, will draw text in the center.
This will provide -DrawTextX ‘(w-text_w)/2’ and -DrawTextY ‘(h-text_h)/2’
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
Extension/DrawText.RoughDraft.Extension.ps1 -DrawText [[-DrawTextFontFile] <String>] [[-DrawTextText] <String>] [[-DrawTextTextFile] <String>] [[-DrawTextFontColor] <String>] [[-DrawTextFontColorExpression] <String>] [[-DrawTextBoxColor] <String>] [[-DrawTextBorderColor] <String>] [[-DrawTextShadowColor] <String>] [-DrawTextBox] [[-DrawTextBoxBorderWidth] <Int32>] [[-DrawTextLineSpacing] <Int32>] [[-DrawTextFontSize] <String>] [[-DrawTextX] <String>] [[-DrawTextY] <String>] [[-DrawTextShadowX] <Int32>] [[-DrawTextShadowY] <Int32>] [[-DrawTextBorderWidth] <Int32>] [[-DrawTextTabSize] <Int32>] [[-DrawTextBasetime] <Int64>] [[-DrawTextFont] <String>] [[-DrawTextExpansion] <Int32>] [[-DrawTextTimeCode] <String>] [[-DrawTextTc24hmax] <Boolean>] [[-DrawTextTimecodeRate] <Double>] [[-DrawTextRate] <Double>] [-DrawTextReload] [[-DrawTextAlpha] <String>] [-DrawTextFixBounds] [[-DrawTextStartNumber] <Int32>] [[-DrawTextTextSource] <String>] [-DrawTextTextShaping] [[-DrawTextFontLoadFlags] <Int32>] [-DrawTextCenter] [<CommonParameters>]