# 下载
wget http://www.ffmpeg.org/releases/ffmpeg-4.0.tar.gz
# 解压安装
tar -zxvf ffmpeg-4.0.tar.gz
cd ffmpeg-4.0
./configure --enable-shared --prefix=/usr/local/ffmpeg
make
make install
进行配置
安装完成之后还需要进行一些配置才可以正常使用
1.)编辑动态库配置
vi /etc/ld.so.conf
加入下面两行内容,安装时也可能自动加入,已有的就可以忽略
include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib
config -v生效
2.)检查安装是否安装OK
ffmpeg -version
最后在springboot中配置文件中配置好ffmpeg的路径
如果报错:
yasm/nasm not found or too old. Use --disable-yasm for a crippledbuild错误
1)下载:wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
2)解压:tar zxvf yasm-1.3.0.tar.gz
3)切换路径: cd yasm-1.3.0
4)执行配置: ./configure
5)编译:make
6)安装:make install