1、下载安装yasm-1.3.0.tar.gz包
在线安装:brew install yasm
- 下载地址:http://yasm.tortall.net/releases/Release1.3.0.html
- 离线文件:https://download.csdn.net/download/GXL_1012/85355687
- 上传至**/opt/package**目录下
- 解压安装包
tar -zxvf /opt/package/yasm-1.3.0.tar.gz -C /opt/soft/
- 编译和安装
cd /opt/soft/yasm-1.3.0/
./configure --prefix=/opt/soft/yasm-1.3.0
make && make install
- 配置环境变量
vim /etc/profile
export YASM_HOME=/opt/soft/yasm-1.3.0/bin
export PATH=$YASM_HOME:$PATH
source /etc/profile
2、下载安装ffmpeg包
- 下载地址:https://www.johnvansickle.com/ffmpeg/
- 离线文件:https://download.csdn.net/download/GXL_1012/85355687
- 上传至**/opt/package/**目录下
- 解压安装包
tar -zxvf /opt/package/ffmpeg-4.3.1.tar.gz -C /opt/soft/
- 编译和安装
mv /opt/soft/ffmpeg-6b6b9e5 /opt/soft/ffmpeg-4.3.1
cd /opt/soft/ffmpeg-4.3.1/
./configure --prefix=/opt/soft/ffmpeg-4.3.1 --enable-libx264 --enable-static --enable-shared
make && make install
- 配置环境变量
vim /etc/profile
export FFMPEG_HOME=/opt/soft/ffmpeg-4.3.1/bin
export PATH=$FFMPEG_HOME:$PATH
source /etc/profile
- 查看版本
ffmpeg -version
|