When I record video by MediaRecorder, it always records in landscape mode, regardless of real device orientation.
How to force MediaRecorder/Camera use real orientation ?
I've stuck with this problem before, too. I found that you can use the function setOrientationHint (API 9). Call this function before you call MediaRecorder.prepare(). You can setup the orientation degree for your output video.