Recorded video is 90 degree rotated after uploading to Internet Recorded video is 90 degree rotated after uploading to Internet android android

Recorded video is 90 degree rotated after uploading to Internet


Use mMediaRecorder.setOrientationHint(int)This definately works.You might need to work the various orientations to get int values for all cameras in potrait and landscape.


Some video players considers the orientation hint when playing a video. Other players don't. Just try to play this video in your PC with Windows Media Player, Quick Time and Real Player and see the differences.
Probably the problem is not your code, but the video player you are using to view your video.