Created
October 19, 2020 16:23
-
-
Save Hermann-SW/6a33832ef423607bdc585f779b679f46 to your computer and use it in GitHub Desktop.
Shell script to capture arbitrary long exposures with Raspberry HQ camera, no 239 second limit
This file contains 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 [ ! -f /var/run/pigpio.pid ]; then sudo pigpiod -s 1; sleep 0.5; fi | |
pigs hp 18 80 3 | |
raspivid -md 4 -w 1012 -h 760 -fps 80 -o tst.h264 -pts tst.pts -p 500,22,506,380 -t $(($1*1000 + 3000)) & | |
pid=$! | |
sleep 2 | |
pigs w 18 0 | |
sleep $1 | |
sudo ./nanopulse 39 1 9 | |
wait | |
sleep 2 | |
echo ... | |
tail -5 tst.pts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used in thread after this posting:
https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=273358&p=1741451#p1741091