Skip to content
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

Added extra metadata types/fields #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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