FFmpeg iOS build script
The script to build FFmpeg for iOS supports:
- 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
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
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.
- On your target settings go to
Build Phasesand select tab
Link Binary with Librariesand add all the libraries on
- Go to
Build settingsand add the path to the
User Header Search Pathsor on
Header Search Paths
Important In order to use the FFmpeg libraries you also need to link with the library