MacOS: 10.13.5 f77 (17)
FFmpeg: 2.7.7
1. The x264 compilation
The source code download: https://github.com/mstorsjo/fdk-aac
Compile script: https://github.com/kewlbear/x264-ios
Brew install NASM
$ nasm -v
NasM version 2.13.03 Compiled on Feb 8 2018
Compile scripts in X264 source code equivalent directory. Execute the compile script.
To fit the project requirements, modify the compiled script as follows:
CONFIGURE_FLAGS=”–enable-static –enable-pic”
ARCHS=”arm64 armv7 armv7s”
I’m just going to leave the ARM64, the ARMv7, the ARMv7s and I’m going to get rid of the i386 x86_64 of the simulator and the idea here is to reduce the size of the library.
Flags are as simple as possible to avoid the hassle of having fewer compilations, so just keep –enable-static –enable-pic
The modified compiled script: https://download.csdn.net/download/wangyubin2010n/10486377
2. Compile FFmpeg
To download the script: https://github.com/kewlbear/FFmpeg-iOS-build-script
Modify the script:
A. Remove i386, x86_64 architecture support,
B. Modify FFMPEG version to 2.7.7;
C. Streamline FFMPEG to remove unnecessary compilation such as binary compilation and DOCS, save time, and simplify the size of the library.
Because the script downloads the FFMPEG source code automatically, the script is executed directly after the modification is completed.
The modified script: https://download.csdn.net/download/wangyubin2010n/10486405
3. Complete
X264 -iOS: Static library containing x264
FFMPEG-IOS: Holds FFMPEG libraries.
Library download address: https://download.csdn.net/download/wangyubin2010n/10486418
Read More:
- Methods of compiling and installing ffmpeg and libx264 in Linux
- Vs2015 compiling ffmpeg source code
- Vs2013 compiling ffmpeg
- Ionic1 compiling IOS encountered * * archive failed * * cordovaerror: promise rejected with non error: ‘error code 65 f
- How to Solve MacOS ffmpeg killed Error
- Conversion of audio file format with ffmpeg command
- Opencv2.4.9 + ffmpeg1.2.12 installation configuration and problem solution under Ubuntu 14.04
- Xcode ffmpeg Error:/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
- Cmake compile opencv report error qtcore_ DIR QtOpenglDIR QtGui_ Dir ffmpeg loading failed
- Converting H264 bit stream to. MP4 format by ffmpeg
- iOS Failed to find matching arch for 64-bit Mach-O input file
- Extract audio from ffmpeg video to mp3 format or m4a format command
- Compiling OBS studio on MAC and windos platforms
- [VTK] cmake compiling VTK
- Error in the latest version of ffmpeg: ‘codec’_ FLAG_ GLOBAL_ Header ‘undeclared identifier solution
- Xcode12 error in compiling cocos2d [How to Solve]
- IOS error: linker command failed with exit code 1 solution
- Problem solving of IOS apple mach-o linker error group
- AVD FFmpeg avcodec_ A solution of open2 returning – 1 (operation not permitted)
- Vs2012 compiling PCL dependency library vtk7.0