Skip to content

rockyLinux源码编译安装ffmpeg7.1

准备

下载源码

bash
#克隆源代码
git clone https://git.ffmpeg.org/ffmpeg.git

帮助命令

bash
#查看编码
./configure --list-encoders
#查看解码
./configure --list-decoders
#查看过滤器
./configure --list-filters
#查看帮助
./configure --help

编译

bash
./configure

这里提示错误❌

nasm not found or too old. Please install/update nasm or use --disable-x86asm for a build without hand-optimized assembly.

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.libera.chat. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.

下载编译安装nasm

bash
wget https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/nasm-2.16.03.tar.gz
tar -zxvf nasm-2.16.03.tar.gz
cd nasm-2.16.03/
./configure
make && make install

继续构建

bash
./configure
make && make install