Created
October 28, 2022 02:13
-
-
Save nanxstats/0a3cd187c8b8a57e39e2c649c81e76b9 to your computer and use it in GitHub Desktop.
Shell commands to generate version control visualization video for gsDesign using gource
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
# Clone repo | |
git clone https://github.com/keaven/gsDesign.git | |
cd gsDesign | |
# Run gource - this will generate a 411GB ppm file | |
gource -3840x2160 --seconds-per-day 0.1 --auto-skip-seconds 0.01 --file-idle-time 0 --font-size 34 --key --logo man/figures/logo.png -o gsDesign.ppm | |
# Convert ppm to mp4 | |
ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gsDesign.ppm -vcodec libx264 -preset medium -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gsDesign.mp4 | |
# Merge audio to video | |
ffmpeg -i gsDesign.mp4 -i music.mp3 -c:v copy -c:a aac output.mp4 | |
# Recommended by YouTube | |
ffmpeg -i output.mp4 -c copy -movflags +faststart upload.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment