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:
- Vs2015 compiling ffmpeg source code
- Cmake compile opencv report error qtcore_ DIR QtOpenglDIR QtGui_ Dir ffmpeg loading failed
- iOS Failed to find matching arch for 64-bit Mach-O input file
- Methods of compiling and installing ffmpeg and libx264 in Linux
- Xcode ffmpeg Error:/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
- Prompt “failed to load file or assembly” when VTK uses renderwindowcontrol
- Vs2013 compiling ffmpeg
- How To Build CyanogenMod Android (oneplus/bacon) On Linux
- error: RPC failed; curl 56 OpenSSL SSL_ read: SSL_ ERROR_ Syscall, errno 10054 solution
- Error configuration process, project files may be invalid
- Could’t find path to unrear Library
- Vs2015 configuring OpenGL (glfw Library)
- [VTK] vtk8.2.0 + vs2015 + win10 compilation and configuration
- Compiling OBS studio on MAC and windos platforms
- Configure OpenGL development environment (vs2015)
- Solve GitHub push error 403 Forbidden while accessing
- Compiling QT project under vs encountered “error 89error msb6006:“ cmd.exe ”Exited with code 3
- Vtk8.2.0 (32bit + 64bit) compilation and installation test (win10 + vs2017 + Qt5)
- insmod: init_module ‘hello.ko’ failed (Exec format error)
- Visual studio 2019 + OpenGL environment configuration