Last active
April 1, 2021 18:18
-
-
Save gorango/9fba387f83d2277633933eb1e84af34d to your computer and use it in GitHub Desktop.
Create gource video with commit messages as captions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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