IPhone development: Add FFMPEG to xcode

Source: Internet
Author: User
 
Create a Mac OS project and add FFMPEG as follows.

Static library Compilation
Reference: Move FFMPEG to iPhone or Mac OS/x

Link Static Library
Create a libs directory in xcode and add the generated static library (. A file ). It generally contains four libraries: avcodec, avformat, avutil, and swscale.

Add header file
In the project configuration, add the source file root directory to the build option, header search paths (remember to select recusive ).

Add other Dependencies
Support for libz needs to be added, project-> Add-> existing framework-> libz. dylib

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.