Created
February 5, 2020 05:14
-
-
Save michiel/d24f4d0e3f7da2919b6989b1999f7152 to your computer and use it in GitHub Desktop.
Decent HD gource settings
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 | |
# Using ffmpeg 2.8 | |
SIZE=1920x1080 | |
SPEED=.5 | |
CAMERA_MODE=track | |
FRAMERATE=30 | |
gource \ | |
-r $FRAMERATE \ | |
-s $SPEED \ | |
-$SIZE \ | |
--camera-mode $CAMERA_MODE \ | |
--dir-name-depth 4 \ | |
--padding 1.4 \ | |
--auto-skip-seconds 1.0 \ | |
--multi-sampling \ | |
--stop-at-end \ | |
--key \ | |
--highlight-users \ | |
--bloom-multiplier 0.7 \ | |
--hide mouse,progress,filenames \ | |
--file-idle-time 0 \ | |
--max-files 0 \ | |
--user-scale 2 \ | |
--filename-time 2.0 \ | |
--background-colour 000000 \ | |
--dir-colour 222222 \ | |
--filename-colour 222222 \ | |
--dir-colour 888888 \ | |
--caption-size 5 \ | |
--font-size 20 \ | |
--title "Dev history" \ | |
--output-ppm-stream - \ | |
--output-framerate 30 \ | |
| ffmpeg -y -r $FRAMERATE -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset medium -pix_fmt yuv420p -crf 8 -threads 0 -bf 0 gource.mp4 | |
ffmpeg -i gource.mp4 -vcodec libx264 -crf 20 output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment