Front facing Camera Recorded video not proper

I want to record Video using front facing camera. Using the example from here as reference. I changed the getCamerainstance method to getFrontFacingCamera. I am able to see the preview while recording. But when i close the recording and play the video, it is always some horizontal flickering lines. Seems like some encoding issue. I tried- changing the media recorder profile to QUALITY_LOW/ QUALITY_HIGH, - Setting the frame rate to 15. the same app works perfectly when i use rear camera.

PS: I have set the preview's(surface view's) size to 208×208. (Should this affect? , It's working fine with rear camera).

Thanks


Finally solved it. (In case someone faces the same issue)

need to use: mediaRecorder.setVideoSize(320,240);

链接地址: http://www.djcxy.com/p/31130.html

上一篇: 使用MediaRecorder录制时,水平“条”而不是视频

下一篇: 前置摄像头录制的视频不正确