# scale_factor_from_resolution

## nominal.experimental.video_processing.scale_factor_from_resolution(resolution)

Build a video filter that scales the video using ffmpeg.

Parameters:
:   **resolution** ([*Literal*](https://docs.python.org/3/library/typing.html#typing.Literal "(in Python v3.15)")*[**'480p'**,* *'720p'**,* *'1080p'**,* *'1440p'**,* *'2160p'**]* *|* *~nominal.experimental.video_processing.resolution.VideoResolution*)

    resolution specifier or explicit / custom resolution to scale video to

Returns:
:   Video filter specifier that can be used with ffmpeg to re-scale video contents

Return type:
:   [*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")
