ffmpeg的编译网上有很多,貌似都比较复杂,但实际编译的时候并没有那么复杂。把自己的编译过程整理下发出来,希望对大家有所帮助
参考: http://www.tuicool.com/articles/iIRvUvE http://blog.csdn.net/wangsky2/article/details/8989933http://www.cnblogs.com/zjoch/archive/2013/05/16/3082002.html
1.资源准备 准备编译过程所需的软件工具和源代码。 (1). MinGW-MSYS Bundle http://sourceforge.net/projects/mingwbundle/ (2). Yasm http://yasm.tortall.net/Download.html (3). SDL http://www.libsdl.org/download-1.2.php (4). X264 http://www.videolan.org/developers/x264.html (5). FFmpeg http://www.ffmpeg.org/download.html 编译前需准备好mingw编译环境,下载ffmpeg源码,其中2需要下载,否则可能出现./configure失败,3、4不是必须下载的 2.编译脚本 ./configure --prefix=/mingw/msys/1.0 --enable-shared --disable-static --enable-gpl 之后可以添加enable 或者 disable选项 若支持x264 添加 enable -libx264 make make install
若需要ffmpeg支持其他视频音频编解码器,只需下载相应源代码,按照以下步骤安装:
配置(./configure)--->编译(make)--->安装(make install)--->导入环境变量(export)。
另外,在编译ffmpeg时,开启相应编解码器的配置即可。
转载于:https://www.cnblogs.com/samaritan/p/5735614.html
相关资源:ffmpeg编译好的exe文件