Skip to content

Conversation

@graux
Copy link

@graux graux commented Sep 19, 2023

There is ffprobe data that is being ignored.
I am processing videos coming from phones and drones, which are rotated.
At the moment, with the current metadata there is no information in the metadata to detect rotation, HDR info, etc.

With the current library, if you resize a video that is rotated with metadata, the video will show squashed.
This is because you read from the metadata, for example 1920x1080. The you set the resolution to SetResolution("1080x720"), ffmpeg will rotate the video automatically while converting it, but instead of being 720x1080, it will be a squashed version at 1080x720.

With the new fields you can transpose the width/height if you detect that the video is rotated.

@graux graux requested a review from xfrr as a code owner September 19, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants