其中有需要CMake的,可以直接sudo apt-get install cmake
編譯yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
$./configure
$make
$sudo make install
編譯AMR
wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz
$./configure
$make
$sudo make install
編譯libvpx(google發(fā)明的那個(gè)高清編碼格式)
wget https://github.com/webmproject/libvpx/archive/v1.5.0.tar.gz
$ ./configure --disable-unit-tests
$make
$sudo make install
編譯lame(mp3)
wget http://kent.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
$./configure --disable-shared --enable-static
$make
$sudo make install
編譯xvidcore
wget http://downloads.xvid.org/downloads/xvidcore-1.3.3.tar.gz
$./configure
$make
$sudo make install
--disable-shared --enable-static好像沒用,可以自己去/usr/local/lib刪除對應(yīng)的.so
編譯x264
wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
$./configure --enable-static
$make
$sudo make install
--enable-shared不寫,就沒有.so
編譯OGG音頻
$./configure --disable-shared --enable-static
$make
$sudo make install
編譯libvorbis
$ ./configure --enable-static --disable-shared --disable-oggtest
$ make -j 4
$ make install
編譯libtheora
=======================
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
$ ./configure --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples
$ make -j 4
$ make install
編譯pkg-config
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
$ ./configure --silent --with-pc-path=/usr/local/lib/pkgconfig --with-internal-glib
$ make -j 4
$ make install
編譯cmake
=======================
wget https://cmake.org/files/v3.5/cmake-3.5.0.tar.gz
$ ./configure
$ make -j 4
$ make install
編譯vid_stab(option)
wget https://codeload.github.com/georgmartius/vid.stab/legacy.tar.gz/release-0.98b
... Done
$ cmake
$ make -s install
編譯x265(option)
wget https://bitbucket.org/multicoreware/x265/downloads/x265_1.9.tar.gz
$cd x265_1.9/source
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local -DENABLE_SHARED:bool=off
$ make -j 4
$ make install
編譯fdk_aac
wget http://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.4.tar.gz
$ ./configure --disable-shared --enable-static
$ make -j 4
$ make install
編譯ffmpeg
$ ./configure --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-version3 --enable-libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-gpl --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-nonfree --enable-filters --enable-libx265 --enable-runtime-cpudetect --enable-libfdk-aac
$ make -j 4
$ make install
備注: 其中--enable-libx265會(huì)報(bào) "x265 not found using pkg-config" , 用不到可以暫時(shí)刪除
本文題目:ffmpeg編譯常規(guī)大全-創(chuàng)新互聯(lián)
文章源于:http://www.rwnh.cn/article4/doejie.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設(shè)、手機(jī)網(wǎng)站建設(shè)、Google、網(wǎng)站策劃、面包屑導(dǎo)航、網(wǎng)站內(nèi)鏈
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源:
創(chuàng)新互聯(lián)