질문이 하나 있는데,Android 오디오 녹음은 작동하지만 동영상 녹화는 작동하지 않습니까?
내 프로그램에서 aurio 녹음을 사용할 때 제대로 작동하지만 비디오 녹음을 시도하면 내 .3gp 파일이 비어 있습니다 (0 바이트).
이유를 말씀해 주실 수 있습니까?
protected void startRecording() throws IOException
{
mrec = new MediaRecorder(); // Works well
mrec.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mrec.setAudioSource(MediaRecorder.AudioSource.MIC); //Works well
mrec.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); //Works well with OutputFormat.THREE.GPP
mrec.setVideoSize(100, 100);
mrec.setVideoFrameRate(5);
mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); // Works well
mrec.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
mrec.setOutputFile("/sdcard/test5.3gp"); //Works well with test5.mp4
mrec.prepare(); // Works well for the audio recording
mrec.start(); // Works well for the audio recording
}
soooo 많은 정보를 주셔서 감사합니다, 그들은 나를 위해 매우 사용됩니다 ... 나는 SurfaceHolder와 litle 문제가 있습니다. 예를 찾고 있지만 제대로 작동하지 않습니다 ... 대마초주세요. 고마워요 –
안녕하세요, 이제 완료되었습니다. 동영상을 녹화 할 수있게되었습니다 .....-) 미리보기를 녹음 할 가능성이 있습니까? –
확실하지 않습니다. 직접 사용해 본적이 없습니다. 개인적으로 내가 녹음하는 것을 볼 수 있다면 쉽게 녹음 할 수 있습니다.) – bluefalcon