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

[5.x] Fix handle dimensions of rotated videos #11479

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

grischaerbe
Copy link
Contributor

@grischaerbe grischaerbe commented Feb 21, 2025

This PR enables the correct output of video dimensions of videos that have rotated video streams. Currently, videos with rotated streams do not output proper dimensions, width and height are swapped.

Fixes #11480

@jasonvarga
Copy link
Member

Can you provide a rotated video so we can test this?

@grischaerbe
Copy link
Contributor Author

grischaerbe commented Feb 21, 2025

@jasonvarga Sure! I hope GitHub preserves the meta data, but here's a video that is 1080p in portrait orientation but shows a width of 1920 and a height of 1080.

FreelingWaters_Craving_for_Boijmans_video4.MOV

Edit: I just checked with the video provided here, uploaded in Statamic without the fix:

width: 1920
height: 1080

with the fix it correctly extracts:

width: 1080
height: 1920

@jasonvarga
Copy link
Member

Thank you

@jasonvarga jasonvarga merged commit d6ab488 into statamic:5.x Feb 21, 2025
18 checks passed
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.

Video dimensions of rotated videos
2 participants