Skip to content

Instantly share code, notes, and snippets.

@mckelvin
Last active December 18, 2015 13:48
Show Gist options
  • Save mckelvin/5792427 to your computer and use it in GitHub Desktop.
Save mckelvin/5792427 to your computer and use it in GitHub Desktop.
#!/bin/sh
# 1.切换到工程目录
# 2.用gource-gravatar-getter将头像下载到.git/avatar,格式类似 .git/avatar/mckelvin.png
#
gource --seconds-per-day 0.6 \
--user-image-dir .git/avatar \
--multi-sampling -1360x760 \
--output-ppm-stream /tmp/vis_tmp.ppm \
--disable-progress \
--hide mouse \
-a 0.4 \
--camera-mode overview \
--max-file-lag 0.01 \
--max-user-speed 2000 \
-s 2 \
--stop-at-end \
--title "ZJUT LaTeX Template Repository - Activity Visualisation" \
--user-friction 0.1 \
--background-colour 000000
ffmpeg -y -r 48 -f image2pipe -vcodec ppm -i /tmp/vis_tmp.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 10 -bf 0 vis.mp4
@mckelvin
Copy link
Author

这个配置的时长是适配 http://www.xiami.com/song/3441719

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