I use the Intent MediaStore.ACTION_VIDEO_CAPTURE video recording method.
Intent
MediaStore.ACTION_VIDEO_CAPTURE
By default, the recorded video is stored as a .3gp file.
.3gp
Set the MediaRecorder's OutputFormat to MPEG_4, like so:
MediaRecorder
OutputFormat
MPEG_4
recorder = new MediaRecorder(); recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
This other SO answer describes it perfectly, as well.