CentOS安裝ffmpeg簡單記錄詳解

來源:互聯網
上載者:User

下載地址:http://ffmpeg.mplayerhq.hu/download.html#releases
下載檔案:ffmpeg-2.0.1.tar.bz2
編譯:./configure –prefix=/usr –enable-gpl –enable-shared –enable-version3 –enable-nonfree –enable-libmp3lame –enable-libvorbis –enable-libxvid –enable-libx264 –enable-libfaac –enable-pthreads –disable-ffserver –disable-ffplay –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libtheora

下面開始解決各種錯誤:
1,ERROR: libmp3lame >= 3.98.3 not found

http://sourceforge.net/projects/lame/files/lame/

lame-3.99.5.tar.gz
PS:沒有多說就是按通常源碼安裝三板斧進行即可。

2,yasm not found, use –disable-yasm for a crippled build

http://www.tortall.net/projects/yasm/releases/

yasm-1.2.0.tar.gz
[root@localhost yasm-1.2.0]# ./configure
[root@localhost yasm-1.2.0]# make
[root@localhost yasm-1.2.0]# make install

3,ERROR: libfaac not found

http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/

faac-1.28.tar.bz2
編譯FAAC-1.28時遇到錯誤:
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
解決方案:
從123行開始修改此檔案mpeg4ip.h,到129行結束。
修改前:
#ifdef __cplusplus
extern “C” {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

修改後:
#ifdef __cplusplus
extern “C++” {
#endif
const char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

再編譯:
1035 ./bootstrap
1044 ./configure –with-mp4v2
1045 make
1046 make install

4,ERROR: libopencore_amrnb not found

http://sourceforge.net/projects/opencore-amr/files/opencore-amr/

opencore-amr-0.1.3.tar.gz
1034 ./configure
1035 make
1036 make install

5,ERROR: libvorbis not found

http://downloads.xiph.org/releases/vorbis/

libvorbis-1.3.3.tar.gz

*** Could not run Ogg test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error: must have Ogg installed!

http://downloads.xiph.org/releases/ogg/?C=M;O=D

libogg-1.3.1.tar.gz
1048 ./configure
1049 make install

6,ERROR: libx264 not found
git clone git://git.videolan.org/x264.git
x264.tar.bz2
1009 ./configure –enable-shared
1010 make
1011 make install

7,ERROR: libxvid not found

http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz

1030 cd build/
1031 ls
1032 cd generic/
1033 ls
1034 ./configure
1035 make
1036 make install

8,ERROR: libtheora not found

http://downloads.xiph.org/releases/theora/?C=M;O=D

libtheora-1.2.0alpha1.tar.gz
1042 tar xzf libtheora-1.2.0alpha1.tar.gz
1043 cd libtheora-1.2.0alpha1
1044 ls
1045 ./configure
1046 make
1047 make install
1048 history

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.