Build FFmpeg under iOS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.