If the images of an output video are stretched, the resolution that you set for the output video is in an aspect ratio different from the input video. This topic describes how to set the resolution for an output video.

Enable auto-rotate screen

If you need to transcode both videos in landscape mode and videos in portrait mode, enable auto-rotate screen for the transcoding template to be used. For more information, see Transcoding templates.

Enable proportional scaling

If the input videos that you want to transcode are in different aspect ratios and you want to retain the aspect ratios during transcoding, specify either the video width or the video height and leave the other empty when you configure the transcoding template to be used. The height or width that you do not specify can be scaled based on the aspect ratio of each input video. For more information, see Transcoding templates.

More related settings

If you specify both the video width and the video height when you configure the transcoding template to be used, check whether the width and height you specify are in the same aspect ratio as those of input videos. If not, you can set the AdjDarMethod parameter when you call the SubmitJobs operation. The AdjDarMethod parameter allows you to specify the method of adjusting the resolution. For example, you can specify the AdjDarMethod parameter to retain the original resolution, resize the video image, crop the video image, or scale out the video image to fill the view. For more information about the AdjDarMethod parameter, see TransConfig.