android-transcoder icon indicating copy to clipboard operation
android-transcoder copied to clipboard

landscape and portrait

Open lee-ngeap opened this issue 7 years ago • 2 comments

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.

lee-ngeap avatar Aug 14 '18 05:08 lee-ngeap

Any luck with this? @lee-ngeap @ypresto

tomovicn avatar Mar 26 '19 14:03 tomovicn

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.

matthamil avatar Apr 18 '19 21:04 matthamil