Skip to content

Instantly share code, notes, and snippets.

@siddolo
Created February 10, 2021 23:00
Show Gist options
  • Save siddolo/d97761ced3b58fb3d15a0861acb4dae5 to your computer and use it in GitHub Desktop.
Save siddolo/d97761ced3b58fb3d15a0861acb4dae5 to your computer and use it in GitHub Desktop.
Gource to mp4

Gource to mp4

gource \
  --auto-skip-seconds .1 \
  --multi-sampling \
  --seconds-per-day .06 \
  --hide filenames,progress \
  --highlight-users \
  --user-scale 4 \
  --dir-colour dddddd \
  --highlight-colour ffccbb \
  --max-files 99999 \
  --stop-at-end \
  --key \
  --output-framerate 25 \
  -1280x720 \
  --output-ppm-stream - | \
    ffmpeg -y \
    -r 25 \
    -f image2pipe \
    -vcodec ppm \
    -i - \
    -vcodec libx264 \
    -preset ultrafast \
    -pix_fmt yuv420p \
    -crf 1 \
    -threads 0 \
    -bf 0 \
      /tmp/output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment