title: Android camera capture produces green and blocky video
body: <p>I'm trying to record video with camera in android, but any output format i put produces a green and blocky video (though with normal sound)..</p>
  <p>So here are the parameters i set (i tried h264 and mpeg_4_sp too)
  <code><pre>mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
  mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
  mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
  mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
  mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
  </pre></code></p>
  <p>The native camera capture app does save the video ok (and it has h263 in configurations set)</p>
  <p>Any ideas why it may occur in my app? Is there any other special settings to put here?</p>
  <p>ps: my android version i use for test is 2.2.1 with BiffMod v2.1</p>
  <p>EDIT</p>
  <p>this is how it looks on both Android and PC media players:
  <a href="https://i.stack.imgur.com/eZJfJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eZJfJ.jpg" alt="" /></a></p>