天天看點

CentOS7兩種方式安裝ffmpeg

CentOS7安裝ffmpeg

yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel -y

wget http://www.ffmpeg.org/releases/ffmpeg-4.1.tar.gz

tar -zxvf ffmpeg-4.1.tar.gz

cd ffmpeg-4.1

./configure --prefix=/usr/local/ffmpeg

make && make install

echo "export PATH=$PATH:/usr/local/ffmpeg/bin" >> /etc/profile

source /ect/profile

ffmpeg -version

注意

若安裝過程中出現以下錯誤:

yasm/nasm not found or too old. Use –disable-yasm 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

[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file “config.log” produced by configure as this will help

solve the problem.

需要安裝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

centos7

rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro

rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

yum install ffmpeg ffmpeg-devel -y

centos6

rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm