From 87dfe64ad36ed29a24c69d63e67596fc5b690793 Mon Sep 17 00:00:00 2001 From: Abra Date: Thu, 28 Jun 2018 17:20:14 +0400 Subject: [PATCH] ffmpeg timelapse --- .zprezto/runcoms/zalias | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.zprezto/runcoms/zalias b/.zprezto/runcoms/zalias index e1fc190..60f774d 100644 --- a/.zprezto/runcoms/zalias +++ b/.zprezto/runcoms/zalias @@ -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" } \ No newline at end of file