ffmpeg timelapse

This commit is contained in:
2018-06-28 17:20:14 +04:00
parent 20578bdc17
commit 87dfe64ad3

View File

@@ -173,4 +173,16 @@ function testo2() {
sadsa
ls
}
function ffmpeg_timelapse() {
local DATE=$1
ls /mnt/a/snaps/$DATE | wc -l || return
ffmpeg \
-pattern_type glob -i "/mnt/a/snaps/$DATE/*.jpg" \
-vf 'fps=60' -tune film -preset fast -vsync 0 \
"/mnt/a/$DATE.mp4"
}