本來,在一起的部落格上寫的已經很完整了,可惜原來的純技術部落格被牆了,而同時,必須用到的一個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