Add FFMPEG library on iOS

I am trying to use the functions of the FFMPEG library (for example, libavcodec.a, libavformat.a, libavutil.a and libswresample.a), but I am confused about how to add the FFMPEG library to my project.

WHY FFMPEG library? => Since in my project I want to play streaming video in real time, this URL is a Windows Media audio file (. Wma) , since iOS does not have direct support for .wma ', I need to convert this Live URL stream stream to supported iOS device. For this I use the RadioTunes SDK, Everything is good and good, except that I do not know about installing the FFMPEG library

There are many questions related to mine, but no one can help me.

How to build and link FFMPEG with iOS?
ffmpeg for iOS

I download the FFMPEG library from here for 10.5.x

+3
source share
1 answer

I don’t quite understand what you mean by “how to add the FFMPEG library to my project”, but I think you want to create the FFMPEG library and use it in your project? If this is the case, you should do the following:

  • Download the FFMPEG sources and compile them for the architectures you want to support (armv6, armv7 arm64, ...).
  • Put libraries for different architectures together with lipo (which will give you a universal library)
  • Add a universal library to the project along with the required FFMPEG header files.

FFMPEG .

, 1 - . , FFMPEG . , :

FFmpeg xCode 5 FFMPEG iOS 7 ffmpeg ios armv7, armv7s, i386 Mac 10.8

. !

+2

All Articles