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: 4596
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: 4596
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: 322
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 187fps@320x240 for less than 8$ with PS3 Eye camera:
viewtopic.php?t=193033
--> Raspberry camera / gstreamer / raspiraw (bookmark list):
https://stamm-wilbrandt.de/en/Raspberry_camera.html

Return to “Camera board”

Who is online

Users browsing this forum: No registered users and 8 guests