Pi Camera 120FPS

January 6, 2023, 11:35

eroll7897

Hi! I am trying to get a Raspberry Pi V2 camera to work at 1280x720 pixels @ 120 FPS - cropped to full resolution, but I can't get it to work at over 90. Has anyone had any experience in this area?

eternalliving

Never tried to get 120fps out of the pi camera… I’m not sure if the pi is even capable of 120 @ 720p?! Maybe at 360p? Are you simply recording the video or do you have live filters or cropping on it? This would also effect its frame rate.

eroll7897

I am cropping the frame

eroll7897

I was able to get it working cropped at 100FPS but it wasn't very straight forward

eroll7897

I don't think I can get any better as far as IMX219 is concerned

eternalliving

Why do you need to crop? Can you not use a native resolution?

eroll7897

I must have full resolution for my usage

eternalliving

But you are cropping each frame?

eroll7897

Yes. I changed the registers so that it outputs a cropped frame

eternalliving

Can you not simply specify the final resolution when you are first capturing the frame?

eternalliving

Another thing to consider would be the write speed of your sd card… I imagine the cpu would be your bottleneck, but it could also be your sd card.

eroll7897

I am not sure I understand your question. I am not cropping using the CPU, the frame is cropped at the sensor level according to registers

eternalliving

Ok, yes, i was referring to script cropping, but cropping it at the registers is the way to go.

eternalliving

Have you done any testing at 640x480? Reading a few quick reviews online it looks like people have only been able to get 120fps @ 640x480.... I'm guessing your on a rpi4? You could try some small overclocks if you have active cooling

eroll7897

Well I am glad to say that I am able to get to 100FPS at 1280x720, with cropping as a raw image. I am using a Jetson Xavier NX so it works properly

eroll7897

The theoretical value I came up with is 107.9FPS according to the data sheet, but I prefer 100 to avoid dropping frames