Quantcast
Viewing all articles
Browse latest Browse all 4919

General discussion • Low fps While Streaming MIPI Cameras in RPI 5

Hello All,
I could able to interface 4-lane MIPI-CSI Camera with RPI 5 and could able to stream.
As of now I'm using opencv and gstreamer to stream, but problem with both the tools is fps is less when we are rendering the stream in HDMI Monitor.


If I just grab the frames using below command the fps comes as expected for 4K@15fps pixel format UYVY

Code:

 $ v4l2-ctl --stream-mmap=3 --stream-count=1000 --stream-to=/dev/null                 <<<<<<<<<<<<<<<< 14.19 fps                 <<<<<<<<<<<<<< 14.19 fps                 <<<<<<<<<<<<<< 14.19 fps                 <<<<<<<<<<<<<< 14.19 fps                 <<<<<<<<<<<<<< 14.19 fps                 <<<<<<<<<<<<<<< 14.19 fps                 <<<<<<<<<<<<<< 14.19 fps                 <<<<<<<<<<<<<< 14.19 fps
But when we render the frames in Monitor using opencv and gstreamer the fps dropping to 4fps, but fps improves when I try to reduce the rendering window size, which is less than 1080p.
Here is the below Comparison for Different Rendering Window size

Case-1:
Mipi Camera Module Output - 4K@15fps
Rendering Window Size - 1280x720 - Streams at 15fps

Case-2:
Mipi Camera Module Output - 4K@15fps
Rendering Window Size - 4K - Streams at 4 fps


One more instance which I would like to mention is within case-1(Rendering Window Size - 1280x720), If I try to open Firefox browser, I could see fps dropping from 15fps to 10fps.

From the above what I could understand is CPU is consuming more time for rendering. Can I know what is the solution to stream 4K in Rendering window size of 4K@15fps?




Thanks.

Statistics: Posted by maverick_24 — Mon Jan 13, 2025 7:22 am



Viewing all articles
Browse latest Browse all 4919

Trending Articles