Individual video orientation

When I record video using MediaRecorder in portrait mode, the video is recorded in landscape mode,

I tried for mMediaRecorder.setOrientationHint (90); and mServiceCamera.setDisplayOrientation (90); but it does not work

+5
source share
1 answer

There is no better way to do this for older API levels.

If you use> = 14, you can use Media Effect to change the orientation. Instructions for using it can be found in this link. To do this, you need a valid OpenGL context, so it’s a bit more complicated than a simple camera application.

, , EFFECT_ROTATE.

0

All Articles