Created
April 1, 2023 15:31
-
-
Save Hermann-SW/fca458df2fba9ffc2bab3d1ae01b69c6 to your computer and use it in GitHub Desktop.
Tool like GScrop tool, this time for Raspberry v3 camera
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -lt 4 ]]; then echo Format: "$0" width height framerate ms [us]; exit; fi | |
if [[ $# -gt 4 ]]; then SHTR="--shutter"; else SHTR=""; fi | |
#TODO patch imx708.ko.xz, then activate with rmmod and modprobe | |
libcamera-hello --list-cameras | grep "([1-9]" | |
rm -f /dev/shm/tst.pts /dev/shm/tst.h264 | |
sleep 0.2 | |
libcamera-vid --width "$1" --height "$2" --denoise cdn_off --framerate "$3" --save-pts /dev/shm/tst.pts -t "$4" "$SHTR" "$5" -o /dev/shm/tst.h264 -n ;echo | |
rm -f tstamps.csv && ptsanalyze /dev/shm/tst.pts |
shellcheck clean:
pi@raspberrypi4B8:~ $ shellcheck V3crop
pi@raspberrypi4B8:~ $
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://forums.raspberrypi.com/viewtopic.php?p=2095862#p2095862
Play 768x432@230fps frameskipless in your browser, 10× slowed down:

https://stamm-wilbrandt.de/en/forum/V3/768x432_230fps_10x.mp4