作者:丰田高耗能妨功害能侠盗飞车_948 | 来源:互联网 | 2023-08-12 18:39
一、编译安装(可用最新版本)0、准备好C编译器yuminstall-ygccg++1、去https:www.ffmpeg.orgdownload.html下载源码bz2压缩包wge
一、编译安装(可用最新版本)
0、准备好C编译器
1、去https://www.ffmpeg.org/download.html下载源码bz2压缩包
wget https://ffmpeg.org/releases/ffmpeg-4.2.3.tar.bz2
2、去http://www.tortall.net/projects/yasm/releases下载ffmpeg依赖的yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
3、分别解压两个压缩包
tar zxvf yasm-1.3.0.tar.gz
tar jxvf ffmpeg-4.2.3.tar.bz2
4、安装,先后进入yasm和ffmpeg解压目录,执行以下命令
./configure
make && make install
二、yum源安装(版本较老)
1、安装第三方yum源——Nux Dextop Yum
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
、安装FFmpeg 和 FFmpeg开发包
sudo yum install ffmpeg ffmpeg-devel -y
参考:
https://blog.csdn.net/semian7633/article/details/102902048
https://www.cnblogs.com/zepc007/p/11123921.html