Preface: This essay is purely referring to the "IOS use FFmpeg" process, I operated it once, but I have a bad memory, I think this process can be recorded in the blog, after the need to quickly back to the details. So specifically refer to "IOS using FFmpeg" to do the process of notes.
1, download ffmpeg for iOS compilation script;
2, open terminal execution sh build-ffmpeg.sh (I use is iterm, and terminal have some different ha,??, about Iterm can read I wrote "Iterm and Alfred 2 installation and use");
The process of a good computer takes 10 minutes, and a bad computer is estimated to be 30 minutes.
3, Step 2 after the completion of the execution of SH build-ffmpeg.sh lipo to merge. a files into one;
4, Step 3 execution Complete Drag the Ffmpeg-ios folder to the target project and add Libz.dylib, Libbz2.dylib, libiconv.dylib three libraries, Xcode7 and above is to add Libz.tbd, LIBBZ2.TBD, LIBICONV.TBD, and add frame videotoolbox.framework (this frame is iOS8 new for hard decoding.)
5. Set header file path $ (project_dir)/$ (product_name)/ffmpeg-ios/include
6, then you can import #import "avformat.h" file in the project
To further test your learning, you should refer to the IOS use FFmpeg.
Vitamio Test Network Video Address
How to compile the ffmpeg process used to build iOS development