Page 1 of 1

Max FPS on Raspberry pi zero with cam 1.3

Posted: Thu Oct 12, 2017 12:37 pm
by peterv6i
Hi,
What is the max FPS I can get with Raspberry PI Zero and 1.3 camera module?

I can only make video at 22-25 fps?! It's possible to get 30 fps?


Image

thank you..

Re: Max FPS on Raspberry pi zero with cam 1.3

Posted: Thu Oct 12, 2017 1:05 pm
by 6by9
You are recording at 30fps, but a raw H264 elementary stream (what's in test.h264) has no timestamp information. MP4Box is assuming 25fps in the absence of any other information.
The fact that you recorded for 10seconds and got 295 frames gives you 29.5fps. (It takes a few 100ms to get going at the start).

There is a mode for raspivid where it will write out all the timestamps to a second file, and mkvmerge can use that when putting the H264 stream into the container.

Code: Select all

raspivid -w 1280 -h 1024 -fps 30 -t 10000 -o test.h264 -pts timestamps.txt
mkvmerge -o bb.mkv --timecodes 0:timestamps.txt test.h264
That does produce an mkv file instead of mp4, but almost all players support mkv as well.

Alternatively you can just add "-fps 30" to your MP4Box line and it'll assume the H264 ES is at 30fps.
(Location within the command may be important. It'll either be "MP4Box -fps 30 -add ...", or "MP4Box -add test.h264 -fps 30 ...")

Re: Max FPS on Raspberry pi zero with cam 1.3

Posted: Thu Oct 12, 2017 1:08 pm
by 6by9
Oh, and the maximum frame rate is 90fps, but that is only at 640x480 resolution.
For the full list of modes, see http://picamera.readthedocs.io/en/lates ... nsor-modes.

1280x1024 you'd probably get mode 4 (1296x972) and then cropped and slightly upscaled to 1280x1024 (5:4 aspect ratio just to be awkward!). 720P you can get up to 49fps (mode 5)

Re: Max FPS on Raspberry pi zero with cam 1.3

Posted: Thu Oct 12, 2017 2:32 pm
by peterv6i
Thank you for this info..

Re: Max FPS on Raspberry pi zero with cam 1.3

Posted: Fri Oct 13, 2017 8:40 am
by HermannSW
90fps is maximum @640x480 or @320x240 you can do with v1.3 camera.
In case you need for fps, you can do [email protected] for less than 8$ with PS3 Eye camera:
viewtopic.php?t=193033

Re: Max FPS on Raspberry pi zero with cam 1.3

Posted: Wed Apr 18, 2018 12:59 am
by bleater
I've been doing some experimentation with the v1.3 camera module, capturing via the Video4Linux API.

If I request a frame size of 640x480, palette NV21, and frame duration 1/42 or longer, the sensor delivers 640x480 frames, but if I set the duration to 1/43 or faster, the sensor appears to be delivering 320x240 images upscaled to 640x480.

Can anyone suggest where this limit of 42fps for the 640x480 mode is coming from? I see nothing in the V4L2 module source that would limit this, but of course the MMAL driver source is ultimately making the decisions and we don't have the source for that.

Re: Max FPS on Raspberry pi zero with cam 1.3

Posted: Wed Apr 18, 2018 5:32 am
by HermannSW
From table here:
https://www.raspberrypi.org/documentati ... /camera.md

Code: Select all

...
5	1296x730	16:9	1-49fps	Full	2x2
6	640x480	4:3	42.1-60fps	Full	2x2 plus skip
7	640x480	4:3	60.1-90fps	Full	2x2 plus skip
...

Btw, you can do up to 665fps with v1 camera:
http://stamm-wilbrandt.de/en/Raspberry_ ... l#raspiraw

And with v2 camera 420fps sofar, with raspiraw, and reduced vertical resolution.

You can do 180fps with raspivid with v2 camera though:
viewtopic.php?f=43&t=206047