报错信息如下:
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 ,但是在 centos7.4 ,即使安装了yasm 也会继续提示 nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
这里的报错很明显还有一个nsam 需要安装,安装上去即可。
以下是相关安装过程:
1、安装nasm:(centos 7.4 安装了yasm还是无法安装的情况下可以安装这个)
wget https://www.nasm.us/pub/nasm/releasebuilds/2.10.07/nasm-2.10.07.tar.gz
tar -zxvf nasm-2.10.07.tar.gz
cd nasm-2.10.07
./configure
make && make install
或者使用yum安装nasm:
yum install nasm
查看版本
nasm --version
2、安装yasm:
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make && make install
或者使用yum安装yasm:
yum install yasm
查看版本
yasm --version
3、安装ffmpeg:
wget https://ffmpeg.org/releases/ffmpeg-6.1.2.tar.gz
tar -zxvf ffmpeg-6.1.2.tar.gz
mkdir /usr/local/ffmpeg
cd ffmpeg-6.1.2
./configure --prefix=/usr/local/ffmpeg
make && make install
打开配置文件,在最后PATH添加环境变量,:wq 保存退出:
vi /etc/profile
export PATH=$PATH:/usr/local/ffmpeg/bin
加载新环境变量
source /etc/profile
查看版本
ffmpeg -version
4、简单使用ffmpeg :
ffprobe -i 双声道.wav -v quiet -print_format json -show_format -show_streams
一些相关链接:
linux下FFmpeg编译和解决nasm/yasm not found or too old错误_yasm、nasm not found-CSDN博客
Linux平台FFmpeg工具安装流程_ffmpeg安装教程linux-CSDN博客
linux下FFmpeg编译和解决nasm/yasm not found or too old错误_yasm、nasm not found-CSDN博客
Linux快速安装FFmpeg、ffprobe、ffplay以及在Linux上的使用_linux ffmpeg-CSDN博客