Can't open camera for 120fps recording

Hi, I’m trying to use Camera2 API to start recording at 120fps but can’t connect to the camera. After digging through the logs. I’ve found this.

2024-01-11	16:04:30.552	1067	1067	E		CamX		[ERROR][STATS_AF] camxcafioutil.cpp:5090 IsPDAFRequiredPortDefined() PDAF is enabled but IFE port for pdaf need to be defined for current sensor in current usecase.
2024-01-11	16:04:30.552	1067	1067	E		CamX		[ERROR][CORE   ] camxpipeline.cpp:2050 FinalizePipeline() Pipeline[PreviewVideoHFR_0] Failed to initialize PreviewVideoHFR_AutoFocus0:

Seems like AF in high frame rate recording is broken.
Tested on Note20 ultra 5G and Note20 with Android 13. Does anyone have any suggestion?

Hello trongtin6495,
60 or higher FPS recording is not supported for third party applications on Samsung devices officially due to the thermal protection and power consumption.

Hence, Galaxy series devices expose FPS range only up to 30 via CameraCharacteristics#CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES. Also currently there is no plan to support it via Camera2 API.

Best Regards,
Ummey Habiba Bristy
Samsung Developer Program Team

So, the customer bought a $1500 phone but they can’t use all of its camera feature on apps other than the camera app?

That’s ridiculous. No wonder why you guys is losing to Apple.

Hello trongtin6495,
Sorry for the misunderstanding. Samsung native camera app supports all camera features that the device’s hardware is capable of. But third party applications can only access up to 30 FPS.

Best Regards,
Ummey Habiba Bristy
Samsung Developer Program Team