For what its worth there is a note on the MediaRecorder
setVideoFrameRate source code
" * NOTE: On some devices that have auto-frame rate, this sets the
* maximum frame rate, not a constant frame rate. Actual frame
rate
* will vary according to lighting conditions."
That being said, what is the frame rate that you found on your video
clip ? [Gallery->Select your Video & Long Press->Details]
Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Aug 26, 5:45 am, Maarten Wijnants <[email protected]>
wrote:
> 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
-~----------~----~----~----~------~----~------~--~---