其他分享
首页 > 其他分享> > 在云服务器上安装FFMPEG

在云服务器上安装FFMPEG

作者:互联网

环境是腾讯云服务器 centOS 系统, make 命令报错,缺少什么包就去手动下载什么包。

yum install automake autoconf make gcc gcc-c++ libtool zlib zlib-devel curl curl-devel alsa-lib alsa-lib-devel gettext gettext-devel expat expat-devel nasm pkgconfig
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 -j8
make install
yum install gnutls gnutls-devel
yum install lame lame-devel
yum remove x264 x264-devel
wget -c ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2
tar jxvf x264-snapshot-20120718-2245-stable.tar.bz2
cd x264-snapshot-20120718-2245-stable
./configure --enable-shared  --enable-static
make -j8
make install
wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gz
tar -zxvf ffmpeg-3.1.tar.gz
cd ffmpeg-3.1/
./configure --prefix=/usr/local/ --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-zlib --enable-bzlib --enable-libmp3lame --enable-libx264 --enable-pic
make -j8
yum install lame lame-devel
yum install epel-release
yum install lame lame-devel
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar -xzf lame-3.99.5.tar.gz
cd lame-3.99.5/
./configure --enable-static --enable-shared
make
make install
cd ../ffmpeg-3.1/
./configure --prefix=/usr/local/ --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-zlib --enable-bzlib --enable-libmp3lame --enable-libx264 --enable-pic
make -j8
make install
updatedb # yum install mlocate
ffmpeg -v
vi /etc/ld.so.conf
ldconfig 
ffmpeg -v

标签:enable,FFMPEG,tar,lame,--,make,服务器上安装,install
来源: https://blog.csdn.net/qq_42534809/article/details/122266774