| Message ID | 20261019015712.1817099-1-ragaprasanth@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series |
|
| Related | show |
diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp index 554e81f8d..7f8522d5e 100644 --- a/src/v4l2/v4l2_camera_proxy.cpp +++ b/src/v4l2/v4l2_camera_proxy.cpp @@ -274,7 +274,7 @@ void V4L2CameraProxy::setFmtFromConfig(const StreamConfiguration &streamConfig) LOG(V4L2Compat, Warning) << "Camera does not support FrameDurationLimits"; - v4l2TimePerFrame_.numerator = 333333; + v4l2TimePerFrame_.numerator = 33333; v4l2TimePerFrame_.denominator = 1000000; } }
The frame interval is meant to default to 30fps, but it is set to 333333/1000000 seconds, which is 3fps. Use 33333 microseconds instead. Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp> --- Tested on a Raspberry Pi 4 (32-bit Arm) with a UVC webcam, $ libcamerify v4l2-ctl -d /dev/video0 --all | grep -i 'frames per second' before: Frames per second: 3.000 (1000000/333333) after: Frames per second: 30.000 (1000000/33333) src/v4l2/v4l2_camera_proxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)