Reputation: 43
I tried to use camera in 30 to 60 fps. But when i set the parameters in more than 30, there was no change in fps. Is preview fps limited? Or is there any way to make the preview fps more than 30?
Upvotes: 1
Views: 7886
Reputation: 31
AFAIK, prior to Camera2, Camera Preview frame rate control is different from recording. I have not seen any APK that supports more than 30 FPS in Preview Mode. According to the official Android Camera Parameter document https://developer.android.com/reference/android/hardware/Camera.Parameters.html#PREVIEW_FPS_MAX_INDEX, all the devices that I have tested on - up to Galaxy S8, only support to 30000. Therefore, if you don't use Camera2 you can only get up to 30 FPS.
Upvotes: 3
Reputation: 57173
You can choose any framerate that your camera supports. Note that you may need to reduce resolution to achieve high frame rate. On modern devices, you will be better served with the camera2 API, see e.g. https://stackoverflow.com/a/43646443/192373.
Upvotes: 0