Web Search "ios ffmpeg compilation", the article a lot, but I compile or it took a lot of effort to compile successfully. Many articles just list the steps, but everyone's system environment, or program version is different, resulting in a variety of errors. I put myself in the process of compiling errors and solutions to write, I hope that the need for friends less detours.
1. Download Ffmpegc-master Package
ffmpegc-master GitHub Link: https://github.com/lvjian700/ffmpegc
The package already contains install-gas.sh and install-ffmpeg.sh two scripts
2. Modify the install-ffmpeg.sh script file according to your system environment
Open install-ffmpeg.sh, there are two variables in front of the script:
version= "2.0.2"
Sdkversion= "7.1"
The first is the FFmpeg version number to compile, and the script will download the corresponding version automatically when compiling, for example 2.2,2.3 can.
The second is the local build environment iOS system version number.
If you don't know your iOS version number, you can open the directory in the Finder/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/ sdks/
There should be similar IPHONEOS7.1.SDK or IPHONEOS8.1.SDK package, modify sdkversion into the corresponding SDK version.
3. Running install-gas.sh
4. Running install-ffmpeg.sh
Generally it will compile smoothly, about 10 minutes to compile, and finally show done.
5. Compiling demo
Dmeo Download Https://github.com/lvjian700/ffmpegc-demo
description of use of illustrations:http://witcheryne.iteye.com/blog/1734706
Build FFmpeg under iOS