I’m trying to capture still images at higher frame rates with my Raspberry Pi camera module. Specifically, I need to hit 60fps and ideally 80fps for a motion capture project I’m working on. I’ve been playing around with rpicam-still but I’m not seeing any difference in the capture speed no matter what I try. Is there a way to force a specific frame rate? Running a Pi 5 with the latest Bookworm OS and a Camera Module 3.
Before you try to force a specific frame rate, you’ll want to check what resolutions and frame rates your camera actually supports. The sensor has different modes and each mode has its own limits. Can you run this and post the output?
rpicam-still --list
or if you’re on an older setup:
libcamera-still --list
That will show you all available modes, including the max frame rate for each resolution.
Thanks, here’s what I get:
Available cameras
-----------------
0 : imx708 [4608x2592] (/base/soc/i2c0mux/i2c@1/imx708@1a)
Modes: 'SRGGB10_CSI2P' : 1536x864 [120.13 fps - (768, 432)/3072x1728 crop]
2304x1296 [56.03 fps - (0, 0)/4608x2592 crop]
4608x2592 [14.35 fps - (0, 0)/4608x2592 crop]
So it looks like I can get 120fps at 1536x864 but only 56fps at 2304x1296? That’s weird, I thought the Camera Module 3 could do 60fps at 1080p.
Yeah, the listed modes are what the sensor reports natively. The 56.03 fps at 2304x1296 is actually the hardware limit for that full-resolution readout mode on the IMX708. To get 60fps you’d need to drop to 1536x864 which gives you 120fps headroom.
Now, to actually set the frame rate when capturing stills, you use the --framerate parameter. But here’s the thing — rpicam-still is primarily for single captures, and the framerate parameter mainly affects the preview/render loop. Try this to see if you can lock it at 60fps:
rpicam-still -t 0 --framerate 60
That runs the camera continuously with a 60fps target. The -t 0 keeps it running indefinitely until you hit Ctrl+C. Does it hold steady at 60?
Okay I ran rpicam-still -t 0 --framerate 60 and the preview window comes up but honestly I can’t tell if it’s actually running at 60fps — I don’t see any FPS counter or anything. Is there a way to verify the actual frame rate it’s achieving? Also, is the framerate parameter even doing anything meaningful for stills, or is it just for video modes?
Good question. The --framerate parameter in rpicam-still does affect the sensor framing rate and the preview refresh rate, but you’re right — it’s not always obvious on screen. You can add --info-text 0 to overlay some debug info including FPS on the preview window, or you can try redirecting with some verbose logging.
Also worth noting: for actual high-fps still capture (like burst mode), rpicam-still isn’t really the ideal tool. It’s more for single shots with a preview. But let’s see what happens when you push it to 80fps:
rpicam-still -t 0 --framerate 80
If the mode you’re in can’t sustain 80fps, it’ll either cap at the hardware limit or fall back to a lower rate silently. What resolution are you capturing at when you run these commands?
I wasn’t specifying a resolution — so I guess it’s defaulting to whatever the camera picks. Let me try the 80fps command now:
rpicam-still -t 0 --framerate 80
It opens the preview and seems to be running. I added --info-text 0 and I’m seeing some flickering numbers around 80 in the overlay, though it’s jumping a bit. So I guess it is working? But when I try to actually capture a frame by pressing Enter, the whole thing stutters for a moment.
I guess my real question is: can I reliably capture still frames at exactly 80fps or 60fps, or is this framerate setting just for the preview pipeline and the actual capture runs at a different speed?
The stutter when you hit Enter to capture is expected — rpicam-still isn’t designed for burst capture at those rates; it’s doing a full encode to JPEG/DNG on each capture which introduces latency.
To summarize where we are:
- The
--framerateparameter does control the sensor readout rate and preview refresh, so the camera IS running the sensor at your requested 60 or 80fps (as long as the current resolution mode supports it). You can verify with--info-text 0. - However, the actual still capture event (pressing Enter, or using a timed capture) is a separate operation that pauses the pipeline momentarily.
- For your motion capture project at high frame rates, you’d be better off looking at
rpicam-vidwith MJPEG or YUV output and extracting frames from the video stream, rather than trying to userpicam-stillfor burst capture.
If you can share more about what you’re trying to achieve (saving individual frames to disk? streaming to another machine?), I can suggest a more appropriate pipeline.