<option id="k6q08"></option><rt id="k6q08"></rt>
<acronym id="k6q08"></acronym>
<acronym id="k6q08"></acronym>
<acronym id="k6q08"><optgroup id="k6q08"></optgroup></acronym>
<tr id="k6q08"><xmp id="k6q08"><rt id="k6q08"></rt>
<rt id="k6q08"></rt>
<rt id="k6q08"></rt>
<rt id="k6q08"><xmp id="k6q08">
13657687333

新聞中心

NEWS

當前位置:首頁>建站知識

ffmpeg安裝教程

發布日期:2021-06-17 瀏覽量:766次
安裝依賴包

yum install autoconf automake bzip2 cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel x264-devel
yum install -y gcc g++ cmake gcc-c++
yum install libass libass-devel
yum install -y yasm


wget https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.gz
tar -zxvf nasm-2.13.03.tar.gz
cd nasm-2.13.03
./configure
make

make install




支持mp3音頻合成

wget https://jaist.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz

tar -zxvf lame-3.99.5.tar.gz

cd lame-3.99.5

./configure --enable-shared

make

make install




wget http://download.videolan.org/x264/snapshots/x264-snapshot-20191217-2245.tar.bz2
tar jxvf x264-snapshot-20191217-2245.tar.bz2
cd x264-snapshot-20191217-2245
./configure --enable-shared --enable-static
make
make install
ldconfig


export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

wget https://ffmpeg.org/releases/ffmpeg-4.2.2.tar.bz2
tar -jxvf ffmpeg-4.2.2.tar.bz2 
cd ffmpeg-4.2.2
./configure --enable-pic --enable-gpl --enable-shared --enable-libx264 --enable-libfreetype --enable-libfontconfig --enable-libmp3lame --prefix=/usr/local/ffmpeg
make -j 4
make install


最后一行加入并保存:
vi /etc/ld.so.conf
/usr/local/ffmpeg/lib/


重新加載配置
ldconfig


軟連接
ln -s /usr/local/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg

地圖導航
青青在线香蕉精品视频在线_东京热无码国产精品_国产尤物在线视精品在亚洲_羞羞影院午夜男女爽爽免费视频