How to compile the ffmpeg process used to build iOS development

Source: Internet
Author: User

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

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.