Skip to content

Instantly share code, notes, and snippets.

@eribeiro
Last active February 11, 2022 16:23
Show Gist options
  • Save eribeiro/5b7179f432bfffffe53d to your computer and use it in GitHub Desktop.
Save eribeiro/5b7179f432bfffffe53d to your computer and use it in GitHub Desktop.
Run Gource on a git repo, outputs as a movie (movie.mp4) and compresses it (output.mp4)
gource -s .06 -1280x720 --auto-skip-seconds .1 --multi-sampling --stop-at-end --key --highlight-users --hide mouse,progress,files,filenames,dirnames --file-idle-time 0 --max-files 0 --background-colour 000000 --font-size 22 --title "Lucene/Solr" --output-ppm-stream - --output-framerate 30 | avconv -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie.mp4
&& ffmpeg -i movie.mp4 -b:v 3048780 -vcodec libx264 -crf 24 output.mp4
@haakonstorm
Copy link

tips on how to get gource running with a bare repo?

@sevku
Copy link

sevku commented Jul 14, 2021

tried it and it says avconv: command not found

tried installing it using sudo apt-get install libav-tools

which results in E: Package 'libav-tools' has no installation candidate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment