I tried to find the camera resolution by
final Parameters p = this.camera.getParameters();
List<Size> previewSizes=p.getSupportedPreviewSizes();
and set the video size of media recorder by
this.mediaRecorder.setVideoSize(previewSizes.get(0).width, previewSizes.get(0).height);
I used to record video in Landscape mode.
MediaRecorder
fails to record video with this high resolution.
When I try with less resolution, it is recording.
Is there a problem with screen display size and video size we are setting ?