Skip to content

Instantly share code, notes, and snippets.

@gorango
Last active April 1, 2021 18:18
Show Gist options
  • Save gorango/9fba387f83d2277633933eb1e84af34d to your computer and use it in GitHub Desktop.
Save gorango/9fba387f83d2277633933eb1e84af34d to your computer and use it in GitHub Desktop.
Create gource video with commit messages as captions
#!/bin/bash
git log \
--pretty=format:"%at|%s" \
--reverse \
--no-merges \
> commitmsg.txt
gource \
-1920x1080 \
--seconds-per-day 2 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--hide mouse,dirnames,filenames,progress,usernames,root,bloom \
--caption-file commitmsg.txt \
--caption-duration 1.8 \
--caption-size 18 \
--output-ppm-stream - \
--output-framerate 60 \
| ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -b 65536K gource.mp4
rm commitmsg.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment