1. 下载源码
git clone https://git.ffmpeg.org/ffmpeg.git
2. 设置 git 用户的邮箱和姓名
git config --global user.email "[email protected]"
git config --global user.name "name"
3. 修改 libavfilter/vf_delogo.c 文件后 commit
git commit -m "libavfilter/vf_delogo: add options start and stop frame number"
commit 927ac32f81e641e3ea78fbdf6a5867f05902ca72 (HEAD -> master)
Author: name <[email protected]>
Date: Sat Feb 17 17:04:40 2018 +0800
libavfilter/vf_delogo: add options start and stop frame number
4. 生成 patch 文件
git format-patch -1 927ac32f81e641e3ea78fbdf6a5867f05902ca72 --stdout > ../vf_delogo_add_options.patch
5. 设置 git 的 smtp 参数
git config --global sendemail.from "name <[email protected]>"
git config --global sendemail.smtpserver smtp.gmail.com
git config --global sendemail.smtpuser [email protected]
git config --global sendemail.smtppass pass
git config --global sendemail.smtpencryption tls
git config --global sendemail.chainreplyto false
git config --global sendemail.smtpserverport 465
6. 发送邮件给 [email protected]
git send-email ../vf_delogo_add_options.patch
输入 ffmpeg-devel 邮箱地址 [email protected], 回车两次就完成.