Search code examples
androidstagefright

Android Stagefright unable to set video frame rate


I have an application streaming video from the device to a remote computer. When trying to set the frame rate I keep getting:

ERROR/StagefrightRecorder(131): Failed to set frame rate to 15 fps. The actual frame rate is 30

The code I use is:

video = new MediaStreamer();        
video.setVideoSource(MediaRecorder.VideoSource.CAMERA);
video.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
video.setVideoFrameRate(frameRate);

Any ideas on how to fix this?


Solution

  • The decoders usually come from the semiconductor vendor like TI, Qualcomm etc. It depends on the decoders whether they honor the call of frame rate modification or not. From the app layer, you cannot do much on this. The calls that you are making are the right ones. If the underlying decoders support it, then you can modify else you cannot.

    Vibgyor