Scales video.
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. |
Scale the input video size and/or convert the image format.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
true | named | false |
Output video width
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 1 | false | scale_w scale_width |
Output video height
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 2 | false | scale_h scale_height |
Flags to pass to libswscale. See the ffmpeg-scalar manual
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 3 | false | scale_flags |
Set interlacing
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Int32] |
false | 4 | false | scale_interl |
set input YCbCr type
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 5 | false | scale_in_color_matrix |
set output YCbCr type
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 6 | false | scale_out_color_matrix |
set input color range
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 7 | false | scale_in_range |
set output color range
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 8 | false | scale_out_range |
input vertical chroma position in luma grid/256
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Int32] |
false | 9 | false | scale_in_v_chr_pos |
input horizontal chroma position in luma grid/256
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Int32] |
false | 10 | false | scale_in_h_chr_pos |
output vertical chroma position in luma grid/256
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Int32] |
false | 11 | false | scale_out_v_chr_pos |
output horizontal chroma position in luma grid/256
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Int32] |
false | 12 | false | scale_out_h_chr_pos |
decrease or increase w/h if necessary to keep the original AR
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Object] |
false | 13 | false | scale_force_original_aspect_ratio |
Scaler param 0
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Double] |
false | 14 | false | scale_param0 |
Scaler param 1
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Double] |
false | 15 | false | scale_param1 |
set the number of slices
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Int32] |
false | 16 | false | scale_nb_slices |
Specify when to evaluate expressions. Either initially or every frame.
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Object] |
false | 17 | false | scale_eval |
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>]