【随笔】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

相关推荐
码客日记8 小时前
Spring Boot 配置文件敏感信息加密(Jasypt 企业级完整方案)
java·spring boot·git
_codemonster8 小时前
Codex 核心进阶玩法(技能/MCP/派生/分叉/Git/钩子/子智能体)
git
逻极9 小时前
Git 从入门到精通:版本控制协作实战指南
git·github·分支管理·版本控制
恋喵大鲤鱼9 小时前
git clean
git·git clean
Patrick_Wilson9 小时前
为省一次回归测试,该不该把多个改动堆进一条分支?
git·ci/cd·架构
恋喵大鲤鱼10 小时前
git blame
git·git blame
yeflx10 小时前
Git操作
git
恋喵大鲤鱼10 小时前
git pull
git·git pull
咖啡星人k11 小时前
MonkeyCode 的 Git 集成:AI编程如何与版本控制无缝协作
git·ai编程·monkeycode
恋喵大鲤鱼12 小时前
git remote
git·git remote