1 下载yasm
sh
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make && make install
2 下载ffmpeg
sh
wget http://ffmpeg.org/releases/ffmpeg-3.1.3.tar.bz2
tar jxvf ffmpeg-3.1.3.tar.bz2
cd ffmpeg-3.1.3
./configure
make && make install
3 输入ffmpeg 查看输出
sh
yum install epel-release
yum install ffmpeg ffmpeg-devel
ffmpeg -version