commit 8c80a14539a2368faaafeb2106753e1bba8cc3cf Author: Johannes Rothe Date: Sun Feb 13 15:15:06 2022 +0100 Add timelapse scripts diff --git a/caputure_timelapse b/caputure_timelapse new file mode 100755 index 0000000..3b25fc4 --- /dev/null +++ b/caputure_timelapse @@ -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" diff --git a/process_timelapse b/process_timelapse new file mode 100755 index 0000000..a6c570b --- /dev/null +++ b/process_timelapse @@ -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