Add timelapse scripts

This commit is contained in:
Johannes Rothe 2022-02-13 15:15:06 +01:00
commit 8c80a14539
2 changed files with 11 additions and 0 deletions

7
caputure_timelapse Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
gphoto2 \
--capture-image-and-download \
--set-config "/main/imgsettings/imageformat=5" \
--filename "frames/"%Y%m%d-%H-%M-%S.%C \
--interval "10"

4
process_timelapse Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# https://medium.com/@sekhar.rahul/creating-a-time-lapse-video-on-the-command-line-with-ffmpeg-1a7566caf877
ffmpeg -framerate 30 -pattern_type glob -i "$1/*.jpg" -s:v 2592x1728 -c:v libx264 -crf 17 -pix_fmt yuv420p my-timelapse.mp4