AydinAdn/MediaToolkit

Converting a portrait video squishes the video

Opened this issue · 2 comments

Hi! Just wanted to say that this is a great plugin! I'm using it to compress videos to 480p which are taken using iPhones - my problem is when I try to compress a video that was taken as a portrait, the resulting video's height is squished. I think it's not taking into account the orientation metadata? Can you suggest a way around this please? Maybe I can set the width/height manually? Thanks in advance!

https://trac.ffmpeg.org/ticket/515

In short....


Changed 3 years ago by logan
Resolution set to wontfix
Status changed from open to closed
By default all stream metadata, including rotation, are copied to the output. This can cause surprising results because:
Some users are unaware that stream rotation metadata exists and that their player is using it to orient the video (the ffmpeg console output will display this metadata).
Users will attempt to physically rotate the video with a filter, but the stream rotation metadata will be preserved by default (if supported by the output) unless the user modifies it appropriately.
Some players ignore the stream rotation metadata and others do not.
In my opinion users are responsible for removing or modifying the metadata with -metadata:s:v rotate="" or -metadata:s:v rotate=0 or whatever value they need if they decide to physically rotate the video.

Alternatively, you can manually update the package used by MediaToolkit, in later version apparently it autorotates for you.