Great job on incorporating video orientation! However, the output is not correctly adjusted when merging multiple videos. So when one video is portrait the size is adjusted, but the output is never adjusted again when the video is landscape. The result is correct orientation but the width is cut-off for landscape videos.
My change was simply to set outputSize equal to videoSize when the video is not portrait.
if assetInfo.isPortrait == true {
videoSize.width = videoTrack.naturalSize.height
videoSize.height = videoTrack.naturalSize.width
}
else
{
outputSize = videoSize
}
Great job on incorporating video orientation! However, the output is not correctly adjusted when merging multiple videos. So when one video is portrait the size is adjusted, but the output is never adjusted again when the video is landscape. The result is correct orientation but the width is cut-off for landscape videos.
My change was simply to set
outputSizeequal tovideoSizewhen the video is not portrait.