CentOS編譯ffmpeg和mencoder

來源:互聯網
上載者:User

  本來,在一起的部落格上寫的已經很完整了,可惜原來的純技術部落格被牆了,而同時,必須用到的一個amrnb和amrwb的下載網站也貌似被牆了,或者是掛了,無奈之下,又必須要用這個東西,所以用那個新的open amr。下載完編譯好以後用這樣的參數編譯就好了。

mencoder的配置如下:(這次的配置關了不少東西,主要是沒用)

因為開了theora,所以要去下個theora和ogg的原始碼放到mplayer的目錄下

cp -R include/theora ../mplayer-checkout-2009-11-20/ cp -R inclde/ogg ../mplayer-checkout-2009-11-20/

注意,這個ogg裡面有個config_type.h.in,內容不對,且需要的檔案名稱是config_type.h,這裡搞不清楚什麼原因沒有,從1.0版裡面直接拷了份內容過來:

#ifndef __CONFIG_TYPES_H__ #define __CONFIG_TYPES_H__ /* these are filled in by configure */ typedef int16_t ogg_int16_t; typedef int32_t ogg_int32_t; typedef u_int32_t ogg_uint32_t; typedef int64_t ogg_int64_t; #endif

  ./configure --prefix=/usr/local/mencoder --codecsdir=/usr/local/mencoder/codecs --win32codecsdir=/usr/local/mencoder/codecs --realcodecsdir=/usr/local/codecs --enable-x264 --enable-theora --enable-faad --enable-faac --enable-libopencore_amrnb --enable-libopencore_amrwb

 

ffmpeg的編譯參數

./configure --prefix=/usr/local/ffmpeg --enable-libfaac --enable-libfaad --enable-libx264 --enable-gpl --enable-shared --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-version3

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.