Skip to content

Instantly share code, notes, and snippets.

@smdern
Created October 20, 2016 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smdern/a8d2bae2c4712cd2f4a00b29f593c8c1 to your computer and use it in GitHub Desktop.
Save smdern/a8d2bae2c4712cd2f4a00b29f593c8c1 to your computer and use it in GitHub Desktop.
git-visualization using gource
#!/usr/bin/env bash
git log --pretty=format:user:%aN%n%at --reverse --raw \
--encoding=UTF-8 --no-renames --after={4.weeks.ago} \
> git.log
gource \
--seconds-per-day .001 \
-1280x720 \
--auto-skip-seconds .001 \
--multi-sampling \
--stop-at-end \
--file-idle-time 15 \
--max-files 0 \
--output-ppm-stream - \
--output-framerate 30 \
git.log \
| ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -an -threads 0 -bf 0 gource.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment