4
我正在编写一个程序来记录来自Android相机的视频。 我能够记录它并将其存储为mp4。但我想记录并将其存储为flv。 这是我的媒体记录器配置。你能告诉我如何将它改成FLV记录?我可以使用android保存flv格式录制的视频吗?
mMediaRecorder.setPreviewDisplay(surface);
mMediaRecorder.setCamera(mCamera);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
// mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mMediaRecorder.setOutputFile(this.initFile().getAbsolutePath());
mMediaRecorder.setMaxDuration(50000);
mMediaRecorder.setVideoFrameRate(15);
mMediaRecorder.setVideoSize(320, 240);
mMediaRecorder.setVideoEncodingBitRate(100000);
// mMediaRecorder.setAudioEncodingBitRate(8000);
mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
// mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
你可能也想看看 http://en.wikipedia.org/wiki/Libavcodec – Nicolas
非常感谢你的回答。 – Harikrishnan