1、先解压
tar -jxvf /home/ysn/ffmpeg-4.2.bar.bz2
或
tar -zxvf /home/ysn/ffmpeg-1.4.bar.gz
2、进入到解压文件下
cd ffmpeg-4.2
3、运行如下指令
./configure --enable-shared --prefix=/home/ysn/ffmpeg-4.2 --disable-yasm
这里我会报错需要将yasm改为行x86asm
这里如果报错需要安装yasm
tar -zxvf /home/ysn/yasm-1.3.0.tar.gz
./configure
make
make install
4、编译
make
5、安装
make install