sizingPolicy property
Specify one of the following values to control scaling of the output video:
-
Fit: Elastic Transcoder scales the output video so it matches the value that you specified in eitherMaxWidthorMaxHeightwithout exceeding the other value. -
Fill: Elastic Transcoder scales the output video so it matches the value that you specified in eitherMaxWidthorMaxHeightand matches or exceeds the other value. Elastic Transcoder centers the output video and then crops it in the dimension (if any) that exceeds the maximum value. -
Stretch: Elastic Transcoder stretches the output video to match the values that you specified forMaxWidthandMaxHeight. If the relative proportions of the input video and the output video are different, the output video will be distorted. -
Keep: Elastic Transcoder does not scale the output video. If either dimension of the input video exceeds the values that you specified forMaxWidthandMaxHeight, Elastic Transcoder crops the output video. -
ShrinkToFit: Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale the video up. -
ShrinkToFill: Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale the video up.
Implementation
final String? sizingPolicy;