ffmpeg+libx264安裝與配置

#yasm
curl -O -L https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make && make install

#nasm
cd ~/ffmpeg_sources
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2
tar xjvf nasm-2.14.02.tar.bz2
cd nasm-2.14.02
yum -y install install autoconf automake libtool
./autogen.sh
./configure
make && make install

#x264
./configure --enable-static --enable-shared
make && make install

#ffmpeg
./configure --enable-gpl --enable-libx264
make && make install

#conf
vi /etc/ld.so.conf
/usr/local/lib/libx264.so
/usr/local/lib

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章