MinGW-MSYS Bundle Win32编译ffmpeg 生成DLL并加入X264模块

组件资源站点

  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.csdn.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库和头文件

                           

转载于:https://www.cnblogs.com/xiaOt119/p/3336519.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值