原贴:http://hi.baidu.com/flash_zb/blog/item/bbf7668de6f85912b21bbae0.html
linux平台下构建mencoder的视频转换到FLV的环境
#安装lame
tar -zxvf lame-3.96.1.tar.gz
./configure --prefix=/usr --enable-shared
make
make install
#安装xvidcore
tar -zxvf xvidcore-1.1.0.tar.gz
cd build/generic
./configure --prefix=/usr
make
make install
#准备编码库
tar -jxvf all-20061022.tar.bz2
mv all-20061022 /usr/local/lib/codes
#上传windows-all-20061022,从windows-all-20061022.zip中解压取得
mv windows-all-20061022 /usr/local/lib/windows
#安装mencode
tar -jxvf MPlayer-1.0rc1.tar.bz2
./configure --with-xvidlibdir=/usr/lib --with-codecsdir=/usr/local/lib/codes --with-win32libdir=/usr/local/lib/windows --disable-freetype
make
make install
#安装flvtool2
tar -jxvf flvtool2_1.0.5_rc6.gz
ruby setup.rb config
ruby setup.rb setup
sudo ruby setup.rb install