Hi,
after bindToLifecycle I am trying to set 60 FPS (yes test devices supported recording with 60 FPS).
try {
val options = CaptureRequestOptions.Builder()
.setCaptureRequestOption(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, Range(FPS60, FPS60))
.build()
val cameraControl = Camera2CameraControl.from(camera!!.cameraControl)
cameraControl.captureRequestOptions = options
} catch (e: java.lang.Exception) {
e.printStackTrace()
}
This works for foreground recording with preview, but It does not work for background recording.
Logcat is full of:
E/mm-camera: <IMGLIB><ERROR> 902: module_ppeiscore_handle_dis_update: MISMATCH Old matrix. Ignore event, since no frame for it!
E/mm-camera: <IMGLIB><ERROR> 965: module_ppeiscore_handle_dis_update: Error path!
D/VideoEncoder: Drop buffer by not in start-stop range.
D/VideoEncoder: Drop buffer by not in start-stop range.
When I used val videoCaptureBuilder = VideoCapture.Builder() from package name androidx.camera.core with videoCaptureBuilder.setVideoFrameRate(60), It worked perfectly..