ffmepg windows平台下编译

来源:互联网 发布:fatego网络连接异常 编辑:程序博客网 时间:2024/06/05 10:06

在windows平台下需要编译一些模块进去,并开启调试版本.

先编译 libx264和libfdk-aac

#下载x264wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2tar -jxvf last_x264.tar.bz2mv x264-snapshot-20170711-2245 x264#curl ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2 -o x264.tar.bz2#tar -jxvf x264.tar.bz2#mv x264-snapshot-20170711-2245 x264#下载fdk-aacwget https://github.com/mstorsjo/fdk-aac/archive/master.zipmv master.zip fdk-aac-master.zip#curl https://codeload.github.com/mstorsjo/fdk-aac/zip/master -o fdk-aac-master.zipunzip fdk-aac-master.zipmv fdk-aac-master fdk-aacmkdir help#编译模块cd x264./configure --help > ../help/x264.txt./configure \--enable-shared \--enable-static \--disable-asm \--prefix=$(pwd)/../local/makemake installmake cleancd ..#cd fdk-aac./autogen.sh./configure --help > ../help/fdk-aac.txt./configure \--enable-shared \--enable-static \--prefix=$(pwd)/../local/makemake installmake cleancd ..
再编译ffmpeg

LOCAL=$(pwd)/localexport PATH=”$PATH:$LOCAL/bin"export C_INCLUDE_PATH="$C_INCLUDE_PATH:$LOCAL/include"export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LOCAL/lib”cd ../ffmpeg-2.8.12mkdir $LOCAL/../help/./configure --help > $LOCAL/../help/ffmpeg.txt./configure \--enable-shared \--enable-static \--enable-debug \--enable-memalign-hack \--enable-libx264 \--enable-libfdk-aac \--enable-gpl \--enable-nonfree \--disable-yasm \--extra-cflags=" -fPIC -DANDROID -I$LOCAL/include " \--extra-ldflags="-L$LOCAL/lib " \--logfile=$(pwd)/../build/config.log \--prefix=$LOCALmake cleanmake make install make cleancd ../build

编译参照:

http://blog.csdn.net/najiutan/article/details/43762759

http://www.cnblogs.com/haibindev/archive/2011/12/01/2270126.html


android平台下ffmpeg编译:

http://blog.csdn.net/lidecoolblue/article/details/11771875

http://blog.sina.com.cn/s/blog_6163bdeb0102v2fw.html

http://blog.csdn.net/chengkaizone/article/details/52983495

原创粉丝点击