centos7.x编译安装ffmpeg

yum install cmake make gc gcc-c++ lame-devel lame-libs

===libfdk-acc

wget https://downloads.sourceforge.net/opencore-amr/fdk-aac-2.0.0.tar.gz

./configure && make && make install

===nasm

wget https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2

./configure && make && make install

===libx264

git clone git://git.videolan.org/x264.git

./configure --enable-shared && make && make install

===libxvid

wget https://downloads.xvid.com/downloads/xvidcore-1.3.5.tar.gz

cd build/generic/ && ./configure && make && make install

===ffmpeg

wget https://ffmpeg.org/releases/ffmpeg-4.1.4.tar.bz2

./configure --prefix=/niub/local/ffmpeg-4.1.4 --enable-shared --enable-libfdk-aac --enable-gpl --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-decoder=libx264 --enable-encoder=libx264

make && make install

你可能感兴趣的:(centos7.x编译安装ffmpeg)