Fit
fit
The fit parameter controls how a video is resized when both width and height dimensions are specified.
Accepts the value smart-crop. When not specified, the default behavior is to scale the video to fit within the specified dimensions without maintaining aspect ratio.
Both the w and h parameters need to be set for smart-crop to take effect.
smart-crop
Activates smart cropping mode, which automatically detects the focal point of interest in the video and crops using the specified w and h dimensions.
If a video is 4k and the crop width and height is 600x600, smart-crop will create a 600x600 bounding box around the subject. To increase the size of the subject in the frame, increase the width and height parameter relative to the original video dimensions.
Videos maintain their aspect ratio when smart cropping while keeping the subject in frame. If a subject moves out of frame, the crop will adjust to the next most relevant subject in the video.