【随笔】git - gource使用方案

1.安装

1.下载https://gource.io/

2.使用 Chocolatey 包管理器安装 FFmpeg

clike 复制代码
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

3.使用 Chocolatey 安装 FFmpeg

在 PowerShell 中运行(管理员)

clike 复制代码
choco install ffmpeg

4.检查 FFmpeg 是否安装成功:

clike 复制代码
ffmpeg -version

2.准备生成的项目根目录运行

clike 复制代码
gource -2560x1440 -s 0.3 --auto-skip-seconds 1 --max-file-lag 0.05 --multi-sampling --highlight-users -o - | ffmpeg -y -r 30 -f image2pipe -vcodec ppm -i - -vcodec libx265 -preset slow -pix_fmt yuv420p -crf 16 -threads 0 -bf 0 -movflags +faststart gource.mp4

视频会在项目根目录下生成

END

相关推荐
A_Lonely_Cat1 天前
记一次 GitHub 幽灵协作者大清洗:强制重写 Git 历史与穿透 CDN 缓存实践
git·github
和你看星星3 天前
Git rerere:让重复冲突只解决一次
git
嘻嘻仙人7 天前
Ubuntu中 git上传自己的项目和二次上传一般流程
git·github
Patrick_Wilson7 天前
Squash Merge 的血缘陷阱:为什么删掉的代码又活了过来
前端·git·程序员
沉浸学习的匿名网友7 天前
什么是 .gitignore?为什么每个 Git 项目几乎都离不开它?
前端·git
深海鱼在掘金8 天前
Git 完全指南 —— 第3章:理解工作区、暂存区、版本库三个核心
git
江华森8 天前
Git 基础筑基:从原理到团队协作的全栈实战
git
JakeJiang8 天前
Git 必备命令指南:从日常高频到项目开发实战
git
叫我少年9 天前
Windows 中安装 git
git
深海鱼在掘金14 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git