Skip to main content

Scaler

NameTypeDescription
kindenum                          
default
zscale
The type of scaling to be applied.
default: default
algorithmenum                          
bilinear
bicubic
nearest_neighbor
lanczos
bicubic_spline
spline16
spline36
sinc
The algorithm to be used for scaling operations. This will apply to both up-scale and down-scale. These may be set separately using the upscale_algorithm and downscale_algorithm parameters.
upscale_algorithmenum                          
bilinear
bicubic
nearest_neighbor
lanczos
bicubic_spline
spline16
spline36
sinc
The algorithm to be used for up-scaling operations.
downscale_algorithmenum                          
bilinear
bicubic
nearest_neighbor
lanczos
bicubic_spline
spline16
spline36
sinc
The algorithm to be used for down-scaling operations.
config_stringstringThe configuration string to be used with the specified scaling function.
apply_alwaysbooleanAlways use the specified scaling function.

Example scaler

{
"uid": "transcode_media",
"kind": "transcode",
"payload": {
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_folder"
},
"targets": [
{
"file_pattern": "{source_basename}_converted.mp4",
"container": {
"kind": "mp4"
},
"video": {
"codec": "h264",
"width": 1920,
"height": 1080,
"bitrate_kb": 6000,
"max_bitrate_kb": 8000,
"bitrate_mode": "vbr",
"scaler": {
"kind": "zscale",
"config_string": "dither=error_diffusion",
"apply_always": true
}
},
"audio": [
{
}
]
}
]
}
}