1.yasm
#wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
# tar -zxvf yasm-0.8.0.tar.gz |cd -
# cd yasm-0.8.0
# ./configure
# make && make install
2.H.264code
# wget http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090705-2245.tar.bz2
# tar -jxvf x264-snapshot-20090705-2245.tar.bz2
# cd x264-snapshot-20090705-2245
# ./configure --enable-shared --prefix=/usr
# make && make install //如果yasm版本太低,编译时会报错,此文件需要git支持,如果configure找不到lib路径,需在/etc/ld.so.conf文件里加入/usr/local/lib, 之后执行ldconfig使其生效
3.amrwb
# wget http://www.penguin.cz/~utx/ftp/amr/amrwb-7.0.0.3.tar.bz2
# tar -jxvf amrwb-7.0.0.3.tar.bz2
# cd amrwb-7.0.0.3
# ./configure && make && make install
4.amrnb
# wget http://www.penguin.cz/~utx/ftp/amr/amrnb-7.0.0.2.tar.bz2
# tar -jxvf amrnb-7.0.0.2.tar.bz2
# cd amrnb-7.0.0.2
# ./configure && make && make install
5.FAAD2
# wget http://jaist.dl.sourceforge.net/project/faac/faad2-src/faad2-2.7/faad2-2.7.tar.bz2
# tar -jxvf faad2-2.7.tar.bz2
# cd faad2-2.7
# ./configure --enable-shared
# make && make install
/*********/
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
vim common/mp4v2/mpeg4ip.h
编译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
6.FAAC
# wget http://nchc.dl.sourceforge.net/sourceforge/faac/faac-1.28.tar.bz2
# tar -jxvf faac-1.28.tar.bz2
# cd faac-1.28
# ./configure --enable-shared --with-mp4v2
# make && make install
7.XviD (DivX)
# wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz
# tar -zxvf xvidcore-1.2.1.tar.gz
# cd xvidcore/build/generic/
# ./configure
# make && make install
8.libdts
http://download.videolan.org/pub/videolan/libdca/0.0.2/libdca-0.0.2.tar.gz
# wget http://down1.chinaunix.net/distfiles/libdts-0.0.2.tar.gz
# tar zxvf libdts-0.0.2.tar.gz
# cd libdts-0.0.2
# ./configure --enable-shared
# make && make install
9.LAME (MP3encoder)
# wget http://jaist.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz
# tar zxvf lame-398-2.tar.gz
# cd lame-398-2
# ./configure --enable-shared
# make && make install
10.a52
# wget http://kakola.googlecode.com/files/a52dec-0.7.4.tar.gz
# tar zxvf a52dec-0.7.4.tar.gz
# cd a52dec-0.7.4
# ./configure --enable-shared
# make && make install
11.FFMPEG
# svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
或
http://download.chinaunix.net/download.php?id=25235&ResourceID=2990
# tar jxvf ffmpeg-0.5.tar.bz2
# cd ffmpeg-0.5
# ./configure --prefix=/opt/ffmpeg --enable-shared --enable-gpl --enable-pthreads
#make clean
# make && make install