RoughDraft

Extension/Scale.RoughDraft.Extension.ps1

Synopsis

Scales video.


Description

Scale the input video size and/or convert the image format.

The values of the Width and Height options are expressions containing the following constants:

Constant Value
in_w  
in_h The input width and height
iw  
ih These are the same as in_w and in_h.
out_w  
out_h The output (scaled) width and height
ow  
oh These are the same as out_w and out_h
a The same as iw / ih
sar input sample aspect ratio
dar The input display aspect ratio. Calculated from (iw / ih) * sar.
hsub  
vsub horizontal and vertical input chroma subsample values. For example for the pixel format “yuv422p” hsub is 2 and vsub is 1.
ohsub  
ovsub horizontal and vertical output chroma subsample values. For example for the pixel format “yuv422p” hsub is 2 and vsub is 1.
n The (sequential) number of the input frame, starting from 0. Only available with eval=frame.
t The presentation timestamp of the input frame, expressed as a number of seconds. Only available with eval=frame.
pos The byte offset of the frame in the input. Only available with eval=frame.


Parameters

Scale

Scale the input video size and/or convert the image format.

Type Required Position PipelineInput
[Switch] true named false

ScaleWidth

Output video width

Type Required Position PipelineInput
[String] false 1 false

ScaleHeight

Output video height

Type Required Position PipelineInput
[String] false 2 false

ScaleFlags

Flags to pass to libswscale. See the ffmpeg-scalar manual

Valid Values:

Type Required Position PipelineInput
[String] false 3 false

ScaleInterlacing

Set interlacing

Type Required Position PipelineInput
[Int32] false 4 false

ScaleInColorMatrix

set input YCbCr type

Valid Values:

Type Required Position PipelineInput
[String] false 5 false

ScaleOutColorMatrix

set output YCbCr type

Valid Values:

Type Required Position PipelineInput
[String] false 6 false

ScaleInRange

set input color range

Valid Values:

Type Required Position PipelineInput
[String] false 7 false

ScaleOutRange

set output color range

Valid Values:

Type Required Position PipelineInput
[String] false 8 false

ScaleInVerticalChromaPosition

input vertical chroma position in luma grid/256

Type Required Position PipelineInput
[Int32] false 9 false

ScaleInHorizontalChromaPosition

input horizontal chroma position in luma grid/256

Type Required Position PipelineInput
[Int32] false 10 false

ScaleOutVerticalChromaPosition

output vertical chroma position in luma grid/256

Type Required Position PipelineInput
[Int32] false 11 false

ScaleOutHorizontalChromaPosition

output horizontal chroma position in luma grid/256

Type Required Position PipelineInput
[Int32] false 12 false

ScaleForceOriginalAspectRatio

decrease or increase w/h if necessary to keep the original AR

Valid Values:

Type Required Position PipelineInput
[Object] false 13 false

ScaleParam0

Scaler param 0

Type Required Position PipelineInput
[Double] false 14 false

ScaleParam1

Scaler param 1

Type Required Position PipelineInput
[Double] false 15 false

ScaleSliceCount

set the number of slices

Type Required Position PipelineInput
[Int32] false 16 false

ScaleEval

Specify when to evaluate expressions. Either initially or every frame.

Valid Values:

Type Required Position PipelineInput
[Object] false 17 false

Syntax

Extension/Scale.RoughDraft.Extension.ps1 -Scale [[-ScaleWidth] <String>] [[-ScaleHeight] <String>] [[-ScaleFlags] <String>] [[-ScaleInterlacing] <Int32>] [[-ScaleInColorMatrix] <String>] [[-ScaleOutColorMatrix] <String>] [[-ScaleInRange] <String>] [[-ScaleOutRange] <String>] [[-ScaleInVerticalChromaPosition] <Int32>] [[-ScaleInHorizontalChromaPosition] <Int32>] [[-ScaleOutVerticalChromaPosition] <Int32>] [[-ScaleOutHorizontalChromaPosition] <Int32>] [[-ScaleForceOriginalAspectRatio] <Object>] [[-ScaleParam0] <Double>] [[-ScaleParam1] <Double>] [[-ScaleSliceCount] <Int32>] [[-ScaleEval] <Object>] [<CommonParameters>]