环境:Ubuntu18.04.2
1. git安装:sudo apt install git
2.下载源码: git地址:git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
3.更新ubuntu sudo apt-get update
4.安装gcc sudo apt intall gcc
5.更新yasm sudo apt install yasm
6.安装pkg-config sudo apt install pkg-config