Skip to content

Instantly share code, notes, and snippets.

@fr34k8
Forked from macbre/gource-xvfb.sh
Created December 21, 2015 17:25
Show Gist options
  • Save fr34k8/aa83313f3f9e8f9d7911 to your computer and use it in GitHub Desktop.
Save fr34k8/aa83313f3f9e8f9d7911 to your computer and use it in GitHub Desktop.
#!/bin/sh
resolution=1360x720
seconds_per_day=0.01
auto_skip_seconds=0.1
elasticity=0.05
fps=25
bitrate=4000K
extension=webm
input=8bit.gource
output=8bit.$extension
xvfb-run -a -s '-screen 0 1360x720x16' gource \
--log-format custom \
--stop-at-end \
--seconds-per-day $seconds_per_day \
--auto-skip-seconds $auto_skip_seconds \
--elasticity $elasticity \
-b 000000 --hide filenames,dirnames,progress,mouse --user-friction .2 \
--background-image Wiki-background.png --logo Wiki-wordmark.png \
-$resolution \
--output-ppm-stream - \
--output-framerate $fps \
$input | avconv -y -r $fps -f image2pipe -vcodec ppm -i - -b $bitrate $output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment