-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video Output Size Not Adjusted #3
Comments
@Appswage
In my sample, I merged videos with aspect fill mode, which means there is no black space (when you merge a portrait video and a landscape video) in the output video. You could change the aspect fill to aspect fit (no cut-off for landscape videos) by changing the formula in this function |
@khoavd-dev - Apologies, I had discovered the same shortly after writing the above and forgot to come back to this thread to update. Below are the edits I wound up making as I also noticed that portrait only video was cut-off at the top. There is probably a cleaner way to write this, but it worked well for me. Also, I notice that orientation is not always identified correctly which is why you see additional width and height checking to more directly ascertain orientation.
|
In your sample when merging two videos with one is landscape and one is portrait(Captured from camera) leave black space in video. |
@swami303 I just updated the code, might solve this issue. |
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 tovideoSize
when the video is not portrait.The text was updated successfully, but these errors were encountered: