Hi,
I am trying to develop an app which streams live audio/video. I
have the mediarecorder to record both audio, video frames , and it
does so. But the thing is it records a chunk of audio and then records
a chunk of video frames and then records a chunk of audio frames to
the file. How do I determine where my audio frames start and where the
video frames start?. Also is there any way to figure out the Video
frame length ?. Iam really stuck at this point and any help will be
greatly appreciated. This is how I initialize the mediarecorder in my
app,
mMediaRecorder = new MediaRecorder();
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mMediaRecorder.setOutputFormat
(MediaRecorder.OutputFormat.THREE_GPP);
mMediaRecorder.setMaxDuration(MAX_RECORDING_DURATION_MS);
mMediaRecorder.setVideoFrameRate(8);
mMediaRecorder.setVideoEncoder
(MediaRecorder.VideoEncoder.MPEG_4_SP);
mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
Regards,
Anu.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en