I am trying to reduce the size of the video files when using MediaRecorder because I will be streaming the video over a network.
Here is what I have
private boolean prepareMediaRecorder(){
myCamera = getCameraInstance();
mediaRecorder = new MediaRecorder();
myCamera.unlock();
mediaRecorder.setCamera(myCamera);
mediaRecorder.setAudioSource(MediaRecorder.A
I am trying to record a video in android using media recorder.Its working fine with 4.0 and greater when i am trying the video recording in version 2.3.4 media recorder giving start failed exception -12.
Here is my code of media recorder.
mrec.setCamera(camera);
mrec.setAudioSource(MediaRecorder.AudioSource.MIC);
mrec.setVideoSource(MediaRecorder.VideoSource.CAMERA);
i want to use MediaRecorder to record voice,my code is :
public void record(View v) {
Log.d(TAG, "record");
this.mediaRecorder.setAudioChannels(1);
this.mediaRecorder.setAudioSamplingRate(44100);
this.mediaRecorder.setAudioEncodingBitRate(64000);
this.mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
this.mediaRecorder.setOutputFormat(MediaRecorder.OutputF
hello,i want to use mediaRecorder to record voice.
I have been trying to solve this error for the past couple of days and yet no luck. I'm trying to build an app which records video files for my RTP transport to send to the server. The LOGCAT does not give any other message apart from
Camera Error 1001 and the message keeps on repeating until I stop the application. The camera initializes and the prepare runs ok.
I am creating one application which play recorded file on Android to iphone and vice-versa.
now i am using ,
audioRecorder = new MediaRecorder();
audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
file recorded us
I create the application like this:
The code for beginning recording
public static void startRecording() {
if (recordTime == 0) {
if (null == mr) {
mr = new MediaRecorder();
}
path = new File(Environment.getExternalStorageDirectory(),
"myRecording.3gp");
mr.reset();
Get the ΪMicphone music volime
mr.setAudioSource(MediaRecorder.AudioSource.MIC);
mr.setOutputFormat(MediaRecorder.OutputFormat
I am working on android app which also supports iOS. I want to record the audio & play it in Android as well as in iOS devices.
I'm trying to record a video by calling the default video camera and then save it to a specified folder. The camera launches normally, but when I hit "record" button the screen just freezes.