1. 下载源码
git clone https://git.ffmpeg.org/ffmpeg.git
2. 设置 git 用户的邮箱和姓名
git config --global user.email "email@gmail.com"
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@gmail.com>
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@gmail.com>"
git config --global sendemail.smtpserver smtp.gmail.com
git config --global sendemail.smtpuser email@gmail.com
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. 发送邮件给 ffmpeg-devel@ffmpeg.org
git send-email ../vf_delogo_add_options.patch
输入 ffmpeg-devel 邮箱地址 ffmpeg-devel@ffmpeg.org, 回车两次就完成.
7.查看是否提交成功
发送邮件过一段时间后,在这里能查到 https://patchwork.ffmpeg.org/project/ffmpeg/list/
有专人进行核实后决定是否采用.