centos安裝ffmpeg視頻處理工具

wget https://jaist.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.5.tar.gz
wget https://sourceforge.mirrorservice.org/o/op/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz
wget https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz
wget https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable.tar.gz
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.xz
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz

我們提供的服務(wù)有:網(wǎng)站設(shè)計制作、做網(wǎng)站、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、東營ssl等。為上千家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的東營網(wǎng)站制作公司

cd /data/source/ && git clone https://git.ffmpeg.org/ffmpeg.git

1.安裝相關(guān)依賴包
tar -zxvf fdk-aac-0.1.5.tar.gz
cd fdk-aac-0.1.5 && ./configure && make install

tar -zxvf opencore-amr-0.1.5.tar.gz
cd opencore-amr-0.1.5 && ./configure && make install

tar -zxvf lame-3.100.tar.gz
cd lame-3.100 && ./configure && make install

tar -zxvf x264-stable.tar.gz
cd x264-stable ./configure && make install

tar -xvf libvorbis-1.3.5.tar.xz
cd libvorbis-1.3.5 && ./configure && make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

tar -xvf libogg-1.3.2.tar.xz
cd libogg-1.3.2 && ./configure && make install

tar -xvf libtheora-1.1.1.tar.xz
cd libtheora-1.1.1 && ./configure && make install

yum install mediainfo

vi /etc/ld.so.conf.d/ffmpeg.conf
加入下面兩個路徑,然后執(zhí)行l(wèi)dconfig,引用類庫
/usr/local/lib
/data/software/ffmpeg/lib

2.安裝ffmpeg
cd /data/source/ffmpeg
./configure --enable-version3 --enable-libfdk-aac --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-shared --disable-x86asm --prefix=/data/software/ffmpeg
(不同系統(tǒng)需要將參數(shù)改為--disable-asm 根據(jù)報錯提示修改參數(shù))
make && make instll

3.配置環(huán)境變量:
vim /etc/profile
PATH=$PATH:/data/software/ffmpeg/bin
export PATH

source /etc/profile #重新加載生效

創(chuàng)建軟連接
ln -s /data/software/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg
ln -s /data/software/ffmpeg/bin/ffprobe /usr/bin/ffprobe

網(wǎng)頁題目:centos安裝ffmpeg視頻處理工具
路徑分享:http://muchs.cn/article46/ihechg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、網(wǎng)站排名、網(wǎng)站內(nèi)鏈移動網(wǎng)站建設(shè)、手機網(wǎng)站建設(shè)品牌網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管