User avatar
peterv6i
Posts: 12
Joined: Mon Jul 17, 2017 5:35 pm
Location: Slovenija
Contact: Website

Max FPS on Raspberry pi zero with cam 1.3

Thu Oct 12, 2017 12:37 pm

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..

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5566
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Max FPS on Raspberry pi zero with cam 1.3

Thu Oct 12, 2017 1:05 pm

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 ...")
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5566
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Max FPS on Raspberry pi zero with cam 1.3

Thu Oct 12, 2017 1:08 pm

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)
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
peterv6i
Posts: 12
Joined: Mon Jul 17, 2017 5:35 pm
Location: Slovenija
Contact: Website

Re: Max FPS on Raspberry pi zero with cam 1.3

Thu Oct 12, 2017 2:32 pm

Thank you for this info..

HermannSW
Posts: 752
Joined: Fri Jul 22, 2016 9:09 pm

Re: Max FPS on Raspberry pi zero with cam 1.3

Fri Oct 13, 2017 8:40 am

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
bookmark list: https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/fork-raspiraw      https://github.com/Hermann-SW/userland
https://github.com/Hermann-SW/wireless-control-Eachine-E52-drone      https://twitter.com/HermannSW

bleater
Posts: 1
Joined: Wed Feb 07, 2018 1:32 am

Re: Max FPS on Raspberry pi zero with cam 1.3

Wed Apr 18, 2018 12:59 am

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.

HermannSW
Posts: 752
Joined: Fri Jul 22, 2016 9:09 pm

Re: Max FPS on Raspberry pi zero with cam 1.3

Wed Apr 18, 2018 5:32 am

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
bookmark list: https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/fork-raspiraw      https://github.com/Hermann-SW/userland
https://github.com/Hermann-SW/wireless-control-Eachine-E52-drone      https://twitter.com/HermannSW

Return to “Camera board”

Who is online

Users browsing this forum: No registered users and 9 guests