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

landscape and portrait #65

Open
lee-ngeap opened this issue Aug 14, 2018 · 2 comments
Open

landscape and portrait #65

lee-ngeap opened this issue Aug 14, 2018 · 2 comments

Comments

@lee-ngeap
Copy link

Hi Dear;

How can i detect the video is in landscape or portrait mode?
Your output is always 1280x720 even though the video is in landscape mode and portrait. it supposed to be 1280x720 for landscape and 720x1280 for portrait mode.

@tomovicn
Copy link

tomovicn commented Mar 26, 2019

Any luck with this? @lee-ngeap @ypresto

@matthamil
Copy link

This is an old issue but commenting in case it helps someone in the future:

The resolution does not always guarantee the orientation. You will want to use MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION to find if a video is in a portrait or landscape orientation.

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

No branches or pull requests

3 participants