iOS ffmpeg-2.1 编译

iOS视频流协议html

//参考git

http://www.cnblogs.com/smileEvday/p/ffmpeg.htmlgithub


历史版本详见http://www.ffmpeg.org/releases/shell

build-ffmpeg.sh脚本地址https://gist.github.com/m1entus/6983547app

gas-preprocessor.pl脚本地址https://github.com/mansr/gas-preprocessoride

所需脚本文件http://download.csdn.net/detail/u013873967/7019907ui

1、拷贝gas-preprocessor.pl文件到 /usr/bin目录下。spa

2、修改gas-preprocessor.pl文件的权限 (可读 可写).net

//执行终端命令code

一、cd  /usr/bin

2chmod a+rwx gas-preprocessor.pl

3、切换build-ffmpeg.sh脚本的目录下,使用命令sh build-ffmpeg.sh 运行该脚本便可。

//执行终端命令

一、cd  /build-ffmpeg.sh 脚本的目录下

二、sh build-ffmpeg.sh


iOS Xh64编译

首先到http://www.videolan.org/developers/x264.html下载x264的库,而后解压。

打开shell,进入x264的目录,执行以下语句


CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk --prefix='dist' --extra-cflags='-arch armv7s' --extra-ldflags='-arch armv7s -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/system' --enable-pic


而后makelibx264.a就出来啦。若是没法执行,请将语句中的6.1.sdk替换成你电脑里面有的sdk

相关文章
相关标签/搜索