Skip to content

Instantly share code, notes, and snippets.

@kibotu
Last active May 25, 2022 14:43
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 kibotu/8cea4881545a5e3c4e119354aed02b32 to your computer and use it in GitHub Desktop.
Save kibotu/8cea4881545a5e3c4e119354aed02b32 to your computer and use it in GitHub Desktop.
gource & ffmpeg
#!/bin/bash
# https://github.com/acaudwell/Gource
# brew install gource
# brew install ffmpeg
cd "/Users/user/Documents/repositories/my-favorite-project"
gource \
-s 1 \
--start-date "2022-02-02 00:00:00 +0" \
-title "my-favorite-project-title" \
-1920x1080 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \
--date-format "%d/%m/%y" \
--hide mouse,filenames \
--file-idle-time 0 \
--max-files 0 \
--background-colour 000000 \
--font-size 25 \
--output-ppm-stream - \
--output-framerate 30 \
| ffmpeg -f image2pipe -framerate 30 -i - -c:v libx264 -vf format=yuv420p -r 30 -movflags +faststart "/Users/user/Documents/repositories/video.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment