Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recorded video is the wrong orientation

Tags:

android

camera

I'm using mCamera.setDisplayOrientation(90); to rotate the camera.

This successfully changes the camera preview, but not the actual "camera" so the recorded video is still sideways. Is their a way to do this?

like image 957
RedChris Avatar asked Aug 28 '12 20:08

RedChris


2 Answers

this might help you

mMediaRecorder.setOrientationHint()

like image 113
Pavan Jaju Avatar answered Nov 03 '22 19:11

Pavan Jaju


Video stream is never rotated - it is recorded as it comes. See the docs: "Set the clockwise rotation of preview display in degrees. This affects the preview frames and the picture displayed after snapshot."

like image 39
Marcin Orlowski Avatar answered Nov 03 '22 18:11

Marcin Orlowski