Skip to content

Instantly share code, notes, and snippets.

@bluvertigo
Created February 9, 2018 12:54
Show Gist options
  • Save bluvertigo/f8032159554bd14ef43c5e7ab108cc21 to your computer and use it in GitHub Desktop.
Save bluvertigo/f8032159554bd14ef43c5e7ab108cc21 to your computer and use it in GitHub Desktop.
Script generate timelaps
#!/bin/sh
mkdir resized
mogrify -path resized/ -resize x1080 `find . -name '*.JPG'`
cd resized
cat *.JPG | ffmpeg -f image2pipe -r 5 -vcodec mjpeg -i - -vcodec libx264 -movflags faststart out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment