6

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?

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
RedChris
  • 523
  • 1
  • 8
  • 19

2 Answers2

8

this might help you

mMediaRecorder.setOrientationHint()

Pavan Jaju
  • 873
  • 11
  • 19
1

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."

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
  • Thanks, do you know of a way to rotate the video after recording. In my app, I upload the video afterwards to Youtube and would prefer not all uploaded videos to be sidewards. – RedChris Aug 28 '12 at 20:28
  • I got no exact pointer but looking for "rotate video java" would lead you somewhere, yet I'd like to point out that this is rather heavy computing thing as you need to recode whole video stream. Not sure if it is good thing to do on mobile (if you plan do so), due to lack of computing power and power hunger it may generate. – Marcin Orlowski Aug 28 '12 at 20:49