Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5175

Camera board • Re: rpicam-apps/utils/timestamp.py "--plot" option

$
0
0
Just wanted to do a 400fps long time capture on Pi5, and captured with this command for 1 minute:

Code:

GScrop 688 136 400 60000
The recorded video is of size less than 20MB:

Code:

pi@raspberrypi5:~ $ du --bytes /dev/shm/tst.mp4 19793030/dev/shm/tst.mp4pi@raspberrypi5:~ $
60s video has a single frameskip (with --narrow option keeping the outlier from disturbing view):

Code:

pi@raspberrypi5:~ $ ~/venv/bin/python ~/rpicam-apps/utils/timestamp.py --plot --narrow /dev/shm/tst.mp4 Total: 24092 frames (24091 samples)Average: 2.489 ms / 401.768 fpsMinimum: 2.475 ms at frame 11943Maximum: 4.977 ms at frame 14847Outliers: 0 (100%) 1 (10.0%) 1 (1.0%) 369 (0.1%)

The matplotlib diagram produced (this time the average line is in vertical middle).
It takes 12s on Pi5 from start of command until diagram analysis complete and displayed — not bad for 24092 frame video.
Figure_60s_400fps.png

With GS camera lens 70cm distant to center of analog clock:
688x136.400fps_60s.png

I copied the video onto my website under this link, for viewing and/or analyzing.
You can follow the second hand easily doing one complete rotation:
https://stamm-wilbrandt.de/videos/688x1 ... ps_60s.mp4

Code:

pi@raspberrypi5:~ $ wget 2>/dev/null https://stamm-wilbrandt.de/videos/688x136.400fps_60s.mp4pi@raspberrypi5:~ $ ~/venv/bin/python ~/rpicam-apps/utils/timestamp.py --plot --narrow 688x136.400fps_60s.mp4Total: 24092 frames (24091 samples)Average: 2.489 ms / 401.768 fpsMinimum: 2.475 ms at frame 11943Maximum: 4.977 ms at frame 14847Outliers: 0 (100%) 1 (10.0%) 1 (1.0%) 369 (0.1%)

P.S:
GScrop gist for capturing high framerate GS camera videos:
https://gist.github.com/Hermann-SW/e604 ... 4e0e9f6b9c

Statistics: Posted by HermannSW — Wed Jan 03, 2024 12:56 am



Viewing all articles
Browse latest Browse all 5175

Trending Articles