Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s
2014-01-02 17:06
661 查看
n the posts, I will show how to use ffmpeg on iOS.
This posts is a document for this project:
https://github.com/lvjian700/ffmpegc-demo
Now, ffmpec support x264 module. If you use the script before, please check your version first.
FFmpeg is a complete, across-platform solution to record, convert and stream audio and video.
Play h.264 video
encoding capture video to h.264 video(It need ffmpeg h.264 module.)
publish a av stream
subscribe a rtsp av stream
I made a repository to make the step easy:
Shell代码
git clone git@github.com:lvjian700/ffmpegc.git
cd ffmpegc
./install-ffmpeg.sh
https://github.com/lvjian700/ffmpegc
1. ffmpeg core library:
2. ffmpeg x264 module. x264 is a H.264/MPEG-4 AVC encoder
Java代码
git@github.com:lvjian700/ffmpegc-demo.git
Project References -> Targets -> Build Phases -> Link Binary With Librarys
Project References -> Targets -> Build Phases -> Link Binary With Librarys
Add two library:
libbz.dylib
libz.dylib
libiconv.2.4.0.dylib
Project References -> Targets -> Build Settings -> Header Search Paths
1. add ffmpeg core header paths:
2. add x264 header paths:
Some useful document:
《How to prepare your mac for ios development with ffmpeg libraries》
《ffmpeg configure options》 -pdf
This posts is a document for this project:
https://github.com/lvjian700/ffmpegc-demo
Now, ffmpec support x264 module. If you use the script before, please check your version first.
What is ffmpeg ?
FFmpeg is a complete, across-platform solution to record, convert and stream audio and video.
Why use ffmpeg?
Play h.264 videoencoding capture video to h.264 video(It need ffmpeg h.264 module.)
publish a av stream
subscribe a rtsp av stream
Before use ffmpegc-demo, you should download and compile ffmpeg:
I made a repository to make the step easy:Shell代码
git clone git@github.com:lvjian700/ffmpegc.git
cd ffmpegc
./install-ffmpeg.sh
https://github.com/lvjian700/ffmpegc
If compile complete, you can find universal library in ffmpeg/build folder:
1. ffmpeg core library:2. ffmpeg x264 module. x264 is a H.264/MPEG-4 AVC encoder
Using ffmpeg
1. Clone project first:
Java代码git@github.com:lvjian700/ffmpegc-demo.git
2.Open in XCode and copy build/*.a and x264/build/*.a to libs/ folder of the project:
3. Add them to project link library
Project References -> Targets -> Build Phases -> Link Binary With Librarys
4. Add dependences library:
Project References -> Targets -> Build Phases -> Link Binary With LibrarysAdd two library:
libbz.dylib
libz.dylib
libiconv.2.4.0.dylib
5. Add Header Search Paths:
Project References -> Targets -> Build Settings -> Header Search Paths1. add ffmpeg core header paths:
2. add x264 header paths:
6. Now, run project ...
Some useful document:
《How to prepare your mac for ios development with ffmpeg libraries》
《ffmpeg configure options》 -pdf
相关文章推荐
- IOS 编译ffmpeg For SDK6.1,模拟器、armv7、armv7s均可使用
- IOS 编译ffmpeg For SDK6.1,模拟器、armv7、armv7s均可使用
- IOS 编译ffmpeg For SDK6.1,模拟器、armv7、armv7s均可使用
- IOS 编译ffmpeg For SDK6.1,模拟器、armv7、armv7s均可使用
- IOS 编译ffmpeg For SDK6.1,模拟器、armv7、armv7s均可使用
- ffmpeg for ios 交叉编译 (支持i686 armv7 armv7s) 包含lame支持
- ios directory not found for option '-F/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries'
- FFMpeg & x264 compile for using with Android NDK on Mac OSX
- Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s
- iOS No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv6 armv7)错误~解决方法
- cross compile ZThread for ios && android
- IOS No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv6 armv7)错误
- ffmpeg compile with neon support for android
- Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s
- TMCache: fast object caching for iOS & OS X
- 编译ffmpeg for iOS,并调试iFrameExtractor demo
- iOS下完美编译ffmpeg+x264,支持armv7, armv7s, 模拟器 (验证不通过,估计和ffmpeg版本有关)
- Cocos2d-x for Android & iOS开发环境配置最佳实践
- [转]How to compile GDB for iOS!
- [BEROR]No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv6 armv7).错误