首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s

2013-08-01 
Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s转自:http://witcheryne.iteye.com/blog/1

Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s

转自:http://witcheryne.iteye.com/blog/1734706

?

?

In 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.?

?

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 streamsubscribe a rtsp av streamBefore use ffmpegc-demo, you should download and compile ffmpeg:I made a repository to make the step easy:Shell代码??Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    1. git?clone?git@github.com:lvjian700/ffmpegc.git??
    2. cd?ffmpegc??
    3. ./install-ffmpeg.sh??
    ?https://github.com/lvjian700/ffmpegc

    If compile complete, you can find universal library in ffmpeg/build folder:1. ffmpeg core library:Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    ?2. ffmpeg x264 module. x264 is a H.264/MPEG-4 AVC encoder?Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    ?Using ffmpeg

    1. Clone project first:Java代码??Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    1. 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:

    Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    ?

    3. Add them to project link libraryProject References?-> Targets -> Build Phases -> Link Binary With Librarys
    Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    ?

    4. Add dependences library:Project References -> Targets -> Build Phases -> Link Binary With LibrarysAdd two library:libbz.dyliblibz.dyliblibiconv.2.4.0.dylibCompile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    ?

    5. Add Header Search Paths:Project References -> Targets -> Build Settings ->?Header Search Paths1. add ffmpeg core header paths:Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    ?2. add x264 header paths:Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s
    ??

    ?

    6. Now, run project ...

    Compile ffmpeg for iOS 六, support Simulator & armv7 & armv7s

    ?

    Some useful document:

    《How to prepare your mac for ios development with ffmpeg libraries》

    《ffmpeg configure options》 -pdf

热点排行