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 187fps@320x240 for less than 8$ with PS3 Eye camera:
viewtopic.php?t=193033