ffmpeg ios6.1编译
来源:互联网 发布:淘宝娃娃海报图片素材 编辑:程序博客网 时间:2024/06/06 20:50
环境:xcode4.6,IOS6.1 macos 10.7.4
1. 到https://github.com/gabriel/ffmpeg-iphone-build下载ffmpeg-iphone-build
2.先将gas-preprocessor.pl拷贝到/usr/sbin/目录中。3.到这里下载最新的ffmpeg:http://ffmpeg.org/download.html 或者命令行安装:git clone git://source.ffmpeg.org/ffmpeg.gitffmpeg
下载一个事例工程:git clone git://github.com/lajos/iFrameExtractor.git
4.然后到命令行下到ffmpeg的目次下,履行:
./configure \
--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
--as='gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk \
--extra-ldflags=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/system \
--target-os=darwin \
--arch=arm \
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7' \
--enable-pic \
--enable-cross-compile \
--enable-ffmpeg \
--disable-ffplay \
--disable-ffserver \
--disable-asm \
--disable-encoders \
--disable-decoders \
--enable-decoder=h264 \
--disable-doc
5.履行sudo make,若是给代码做了批改,就先sudo make clean
6.履行sudo make install
7 运行iFrameExtractor
在你的工程根目次下创建一个叫ffmpeg的文件夹,把/usr/local/lib和/usr/local/include放进去
工程中设置header search path :"$SRCROOT)/ffmpeg/include",library search path:"$(SRCROOT)/ffmpeg/lib"
成功运行截图 运行环境 iphone5 ios6.1
因为是armv7 的库, 所以需要将 Build Settings 里 Valid Architectures 改为armv7
- ffmpeg ios6.1编译
- ffmpeg ios6.1编译
- MacOS10.8.3+Xcode4.6+IOS6.1 编译FFmpeg,简单使用
- MacOS10.8.3+Xcode4.6+IOS6.1 编译FFmpeg,简单使用
- MacOS10.8.3+Xcode4.6+IOS6.1 编译FFmpeg,简单使用 (未验证,作标记备用)
- 编译ffmpeg +ios6.0(真机测试)(参考了很多个帖子)
- ffmpeg(1) 下载、编译源码
- Xcode5--sdk7.1-----编译ffmpeg
- ios8.1下编译ffmpeg
- FFMPEG Android(1) 编译
- 【FFMPEG】VS2015编译FFMPEG
- 【FFMPEG】VS2013编译ffmpeg
- ffmpeg编译
- FFmpeg编译
- FFMPEG编译
- ffmpeg编译
- 编译ffmpeg
- ffmpeg 编译
- UML用例图总结
- ios的游戏性能优化技巧
- MySQL死锁导致无法查询
- JQuery常见筛选器的使用及方法(入门须知)
- android sdk manager在windows 8 64bit下闪退
- ffmpeg ios6.1编译
- linux文件/目录权限设置命令:chmod [who] [opt] [mode] 文件/目录名
- 一道面试题
- map删除元素
- 简单的并发服务器
- 模块化应用(systemlistview-32-upload)
- sharepoint 2010 根据指定用户UserID查询该用户列表数据
- Spring MVC 国际化
- Compile ARPACK x64 dll & lib For VS2005 On Windows 7 by Using MinGW64