time lapse movies

This commit is contained in:
p_reichart
2024-05-15 11:07:22 +02:00
parent 78aace64c3
commit 120b88fb12
11 changed files with 11 additions and 0 deletions
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
CAMS=$(ls ./pics)
SCALE="640"
for CAM in $CAMS
do
ffmpeg -framerate 2 -pattern_type glob -i "./pics/$CAM/$CAM-*.jpg" -c:v libx264 -r 30 \
-vf "drawtext=fontfile=/usr/share/fonts/truetype/noto/NotoSans-Light.ttf:text='${CAM}':fontcolor=white:fontsize=15:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2" \
-vf "scale=${SCALE}:-2" ${CAM}_${SCALE}.mp4
done
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.