Created
August 3, 2021 14:14
-
-
Save dr-mod/6525d69dd5ad36f40bebe8ee7dab951e to your computer and use it in GitHub Desktop.
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 | |
ffmpeg -f image2 -framerate 60 -pattern_type glob -i '*.jpg' -filter:v "framestep=1,setpts=N/60/TB,scale=1440:1080" -vcodec libx264 -preset slower -crf 18 -pix_fmt yuv420p ../time-lapse.mp4 |
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 | |
take_picture() | |
{ | |
DATE_TIME=$(date +"%Y-%m-%d_%H-%M") | |
raspistill -vf -hf -o /home/pi/camera/$DATE_TIME.jpg | |
} | |
while true; do | |
take_picture | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment