11

我使用Intent MediaStore.ACTION_VIDEO_CAPTURE视频录制方法。

默认情况下,录制的视频存储为.3gp文件。我想将视频录制并存储为.mp4文件。

这可能吗?。

4

2 回答 2

6

是的

MediaRecorder's设置OutputFormatMPEG_4,如下所示:

recorder = new MediaRecorder(); 
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);

This other SO answer也完美地描述了它。

于 2014-03-15T19:30:01.130 回答
3

Yes, you can have an mp4 output format, mp4 is just a container : see this to know what kind of data streams you can store in it.

MPEG_4  MPEG4 media file format

Also refer to this

于 2011-02-17T07:52:33.647 回答