-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Portrait videos are stretching #83
Comments
Has anyone found solution to this issue? |
@aminyazdanpanah any solution for this ? |
It seems like the FFmpeg library has an issue with the 'h264 apple encoder'. I will try to reach out to FFmpeg developers and report this bug. I will be keeping this issue until I(or anyone else) find a solution. |
We had such a problem. It is necessary to take into account the aspect ratio when setting the dimensions. By default you load 1080 by 1920 video for example. And FFMPEG takes and renders 1920 and 1080 and produces a stretched video image. If the video is 1080 by 1920, then we take the closest available resize - this is 720p. And set the parameters to resize 1280 x 720. In general, you need to understand which video comes in and calculate the aspect ratio for each video and there will be no problem |
I suspect the cause could be that rotation is not handled by Example input file in portrait format, from an iPhone:
|
When I encode mobile portrait video to hls, it got stretch. how to encode without stretching?
This issue only for video recorded from iphone
The text was updated successfully, but these errors were encountered: