-
-
Save mckelvin/5792427 to your computer and use it in GitHub Desktop.
This file contains 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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个配置的时长是适配 http://www.xiami.com/song/3441719 的