Coder Social home page Coder Social logo

ffmpeg-ios-build-script's Introduction

FFmpeg iOS build script

The script to build FFmpeg for iOS supports:

  • armv7
  • armv7s
  • i386 (simulator)

Note The architecture armv6 is no longer supported.

The script generates (fat) static libraries including the 3 architectures on lib/ folder for development purposes. You may and you should build the FFmpeg libraries only with the architectures supported in production when generating the final release.

The header files to include stay on include/ folder.

Configuration

The script disables all components: protocols, encoders, decoders, etc. and enables only:

  • protocols: file
  • demuxers: mov
  • muxers: mpegts
  • bsf: h264_mp4toannexb

This can be configured, just update DISABLED_COMPONENTSand ENABLED_COMPONENTS.

Usage

Using the FFmpeg libraries it's similar to any other static library you just need to link the libraries on your project and add all the header files.

  1. On your target settings go to Build Phases and select tab Link Binary with Libraries and add all the libraries on lib/ folder.
  2. Go to Build settings and add the path to the include/ folder on User Header Search Paths or on Header Search Paths

Important In order to use the FFmpeg libraries you also need to link with the library libz.dylib.

Acknowledgments

This scripts are based on the excellent work of Bruno de Carvalho to compile the cURL for iOS.

ffmpeg-ios-build-script's People

Contributors

dmcrodrigues avatar

Watchers

william avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.