Skip to content

Instantly share code, notes, and snippets.

@alanho
Created June 29, 2015 03:45
Show Gist options
  • Save alanho/9fe3dbd19901a08014d3 to your computer and use it in GitHub Desktop.
Save alanho/9fe3dbd19901a08014d3 to your computer and use it in GitHub Desktop.
lolcommit to video
for f in *; do mv -- "$f" "$(stat -f "%Sm" -t "%Y%m%d%H%M%S" $f)"; done
for f in *; do mv -- "$f" "`stat -f "%Sm" -t "%Y%m%d%H%M%S" $f`.jpg"; done
ffmpeg -framerate 1 -pattern_type glob -i '*.jpg' -c:v libx264 out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment