Hello Android developers,
I am experimenting with video capture/encoding using the MediaRecorder
class. One thing I noticed during testing is that it seems like the
setVideoFrameRate method of the MediaRecorder class has no effect. In
other words, the MediaRecorder does not seem to adhere to the frame
rate I set for it. Using a target frame rate of 5 FPS results in a
video fragment that is equally fluid/smooth as one created at 15 FPS.
I am using a HTC Magic device. My MediaRecorder code is as follows
(excluding exception handling):
MediaRecorder mMediaRecorder = new MediaRecorder();
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mMediaRecorder.setVideoSize(176, 144); // QCIF
mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
mMediaRecorder.setVideoFrameRate(5);
mMediaRecorder.setOutputFile("/sdcard/maarten.3gpp");
mMediaRecorder.setPreviewDisplay(previewSurface);
mMediaRecorder.prepare();
mMediaRecorder.start();
...
mMediaRecorder.stop();
mMediaRecorder.release();
Pretty straightforward code. Has anyone experienced something similar?
Has any of you been able to successfully enforce an actual frame rate
on the MediaRecorder?
Best regards,
Maarten Wijnants
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---