How to set the frame rate on imx678 camera?

Which system do you use? Android, Ubuntu, OOWOW or others?

UBuntu

Which version of system do you use? Please provide the version of the system here:

Linux v-stream-npu 5.15.137 #1.7.5 SMP PREEMPT Thu Sep 25 20:37:29 CST 2025 aarch64 aarch64 aarch64 GNU/Linux

Please describe your issue below:

We are getting good results from the new imx768 sensor on VIM4 with NPU.
But I can’t find a way to set the frame rate on the imx678 sensor. It defaults to 60fps.
What is the recommended way to set this to 30fps ?

The example code in v4l2_test_raw.cpp doesn’t show how.

Post a console log of your issue below:

You have to modify the source code at this moment.

Is this the driver source code? Or a Library? Or the demo app? I can’t see a method I can call to set the frame rate in the APIs the v4l2_test_raw uses. Can you please give me a hint where to look?

In the meantime I have a work-around where I drop half the frames before passing them to the encoder, which works but is inefficient and ugly :slight_smile:

@steely-glint it’s part of the imx678 init driver code, you’ll have to modify the registers responsible for the frame rate (vts timing probably) according to the datasheet

https://github.com/khadas/common_drivers/blob/khadas-vims-5.15.y/drivers/amlisp/amlsens/imx678/aml_imx678.h

You’ll have to modify these when building the kernel with fenix

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.