组件资源站点
1)MinGW-MSYS Bundle http://sourceforge.net/projects/mingwbundle/files/
2)yasm汇编器 http://yasm.tortall.net/Download.html
3)x264源码 http://www.videolan.org/developers/x264.html
4) ffmpeg源码 http://ffmpeg.zeranoe.com/builds/
参考站点:
http://ffmpeg.zeranoe.com/builds/
http://trac.pjsip.org/repos/wiki/Getting-Started/Windows
http://blog.****.net/samantha_sun/article/details/4588806
安装提示
- MinGW-MSYS Bundle安装:
默认安装路径,C盘下,方便提示。
- yasm下载后*.exe:
选择系统对应的程序,放在在C:\msys\1.0\bin目录下
- x264编译安装:
·编译选项
$ ./configure --enable-static # add options if needed, e.g: optimization, install dir, search path
$ make && make install-lib-static # default install dir is /usr/local
· 将x264.h x264_config.h文件拷贝到C:/MinGW/include下面
· 将libx264.a文件拷贝到C:/MinGW/mingw32/lib
- 编译ffmpeg
·编译选项
Debug版本:
./configure --enable-shared --disable-static --enable-memalign-hack --enable-gpl --enable-libx264
Release版本:
./configure --enable-shared --disable-static --enable-memalign-hack --enable-gpl --enable-libx264 --disable-debug
注: --enable-memalign-hack选项是让MMX、SSE2等优化语句能在Windows上执行
$ make && make install
注:<install-libs install-headers> 提取lib库和头文件