一、环境准备
wget https://ffmpeg.org/releases/ffmpeg-4.2.3.tar.bz2
bzip2 -d ffmpeg-4.2.3.tar.bz2
tar -xvf ffmpeg-4.2.3.tar
cd ffmpeg-4.2.3
安装
./configure --prefix=/usr/local/ffmpeg
如果错误提示:
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “ffbuild/config.log” produced by configure as this will help
solve the problem.
安装一下 yasm既可:
yum install yasm
也可以编译安装 yasm:
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar -xzvf yasm-1.2.0.tar.gz
./configure
make
make install
再执行 configure 命令就可以了,接下来
make
sudo make install
查看是否安装成功
/usr/local/ffmpeg/bin/ffmpeg -version
ffmpeg linux安装
最新推荐文章于 2024-03-24 13:40:21 发布