I'm trying to record a video at 60(or more)fps rate on Camera2(android.hardware.camera2) APIs.
Finally, I succeeded recording at 120fps using CameraConstrainedHighSpeedCaptureSession. But it is only targeted at >=120fps use case not for 60fps.
Even I tried to record at 60fps using normal capture session(CameraCaptureSession), it only supports <=30fps. I could figure it out through this code below.
Range<Integer>[] fpsRanges = characteristics.get(CameraCharacteristics.CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES);
I don't know how I could record at 60fps with Camera2 APIs.
Any idea would be most welcome.
Thanks.
You must create a
ConstrainedHighSpeedCaptureSession
from CameraDevice and instantiate a new session as you possibly did with a normal capture session.Also you need to set the next values to your Builder:
After, generate a CaptureRequestList with your builder:
and use it in your capture Session to generate the CaptureSession: