Skip to content

Instantly share code, notes, and snippets.

@cubicleDowns
Created March 17, 2016 08:13
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 cubicleDowns/8e4ebb610734bd28292a to your computer and use it in GitHub Desktop.
Save cubicleDowns/8e4ebb610734bd28292a to your computer and use it in GitHub Desktop.
Script to output a source tree video of all commits via gource.
# install brew
#
# download gource
# brew install all pre-reqs for gource.
#
# configure, make, make install
#
# use following script to output a movie.
# -s is seconds per day. In this example, 1 second is 10 days. 1/10 == 0.1 You'll want to tweak this value.
#
# Run this from within' a git directory. It'll automagically parse your git history and create a video for you.
gource --hide filenames,dirnames,mouse -o - -highlight-all-users -s 0.1 | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 YOUR_PROJECT_NAME.gource.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment