From d7d6894ea0c1a927d3ecd7340f70704ceb7669fd Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 14 Jun 2018 13:42:57 -0700 Subject: Add timelapse script --- timelapse | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 timelapse (limited to 'timelapse') diff --git a/timelapse b/timelapse new file mode 100755 index 0000000..cc7d470 --- /dev/null +++ b/timelapse @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# +# Converts a regular video into a 4x timelapse. +# +# Research: +# - https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video +# - https://superuser.com/questions/777938/ffmpeg-convert-a-video-to-a-timelapse#778425 +# - https://superuser.com/questions/803453/ffmpeg-speed-up-video-but-keep-same-quality +# + +ffmpeg -i "$1" \ + -vf "setpts=0.25*PTS" \ + -q 0 \ + -an "$2" -- cgit v1.2.3