iOS视频流协议

//参考

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


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

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

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

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

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

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

//执行终端命令

1、cd  /usr/bin

2chmod a+rwx gas-preprocessor.pl

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

//执行终端命令

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

2、sh build-ffmpeg.sh

iOS ffmpeg-2.1 编译-LMLPHP


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


05-30 10:47