Skip to content

Instantly share code, notes, and snippets.

@snrostov
Created December 1, 2019 08:19
Show Gist options
  • Select an option

  • Save snrostov/e49fdb4540952694c52a24d347d130a2 to your computer and use it in GitHub Desktop.

Select an option

Save snrostov/e49fdb4540952694c52a24d347d130a2 to your computer and use it in GitHub Desktop.
timelapse.sh
ffmpeg -f concat -safe 0 -i list.txt -c copy | \
ffmpeg -i pipe:0 \
-vf "tblend=average,framestep=2,tblend=average,framestep=2,tblend=average,framestep=2,tblend=average,framestep=2,tblend=average,framestep=2,setpts=0.03125*PTS" \
-r 30 \
output.mp4
@snrostov
Copy link
Author

snrostov commented Dec 1, 2019

ffmpeg -f concat -safe 0 -i list.txt -c copy will concatenate files listed in list.txt with the format

file '2019_1129_143338_218.MP4'
file '2019_1129_143438_219.MP4'
file '2019_1129_143538_220.MP4'

every tblend=average,framestep=2 will blend near two frames, so will speed video in 2x

setpts=(1/(2^x))*PTS, where x - count of tblend=average,framestep=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment