简体中文 · English
MRFFToolChain cross-compiles FFmpeg (4.x–8.x) and 25+ third-party libraries — ass, dav1d, x264, x265, openssl, bluray, and more — for five platforms, published the pre-built binaries to GitHub Releases. Stop fighting cross-compilation, just download a ready-made library and link it in one command.
It powers fsplayer, ijkplayer, and FFmpegTutorial.
| platform |
architectures |
minimum deployment target |
| iOS |
arm64、arm64_simulator、x86_64_simulator |
12.0 |
| tvOS |
arm64、arm64_simulator、x86_64_simulator |
12.0 |
| macOS |
arm64、x86_64 |
10.14 |
| Android |
arm64、armv7a、x86_64、x86 |
5.0 (API 21) |
| HarmonyOS |
arm64、x86_64 |
5.0.0 (API 12) |
News
- FFmpeg 8.1.2 is ready
- HarmonyOS support includes pre-built libass and its font/text dependencies
- Upgraded all libraries to latest, with improved optimizations
- Built with macOS 26 and Xcode 26.6
- Android supports 16 KB memory page sizes
Download/Install Pre-compiled Libs
Save yourself a great deal of time by directly downloading the pre-compiled libraries from GitHub.
These pre-compiled libraries already applied patches which in the patches directory.
#Check the help first
./main.sh install --help
# Examples of usage:
./main.sh install -p macos -l ffmpeg
./main.sh install -p ios -l 'ass ffmpeg'
./main.sh install -p android -l openssl3
./main.sh install -p ohos -l "ass ffmpeg8"
Compile by Yourself
Initialize Library Repositories
Don’t waste your time compiling these libraries unless you’ve modified the source code!
The script parameters are flexible and can be combined as needed. Here are some common examples:
# Check the help first
./main.sh init --help
# Prepare libass source code for the iOS platform
./main.sh init -p ios -l ass
# Prepare ffmpeg7 source code for the x86 architecture on iOS
./main.sh init -p ios -l ffmpeg7 -a x86_64_simulator
# Prepare source code for specific libraries for the Android platform
./main.sh init -p android -l "openssl ffmpeg"
# Prepare ffmpeg8 source code for the HarmonyOS platform
./main.sh init -p ohos -l ffmpeg8
Compile
Once the source code repository initialization is complete, you can start the compilation process.
# Check the help first
./main.sh compile --help
# As shown in the help:
# -p specifies the platform
# -c specifies the action (e.g build for compilation, rebuild for recompilation)
# -l specifies the libraries to compile
# -a specifies the CPU architecture
The following code demonstrates how to compile FFmpeg 7 for the iOS platform:
# install FFmpeg7's dependencies has two choices
# recommend choice (because ffmpeg7 was pre-compiled,it contained all dependencies)
./main.sh install -p ios -l ffmpeg7
# other choice (you must know ffmpeg7's dependent lib name)
./main.sh install -p ios -l "openssl3 opus bluray dav1d dvdnav uavs3d smb2"
# Compile FFmpeg7 for the arm64 architecture on iOS with xcframework
./main.sh compile -p ios -a arm64 -l ffmpeg7 --fmwk
The order of these parameters does not matter; they can be arranged in any sequence.
Libraries
Current version and repository URLs of each library:
Dependencies
- Fontconfig: xml2、freetype
- Bluray: xml2、udfread
- Harfbuzz: freetype
- Dvdnav: dvdread
- Placebo for macOS: shaderc、moltenvk、dovi、lcms2
- Ass for Apple: harfbuzz、fribidi、unibreak
- Ass for Android: harfbuzz、fribidi、unibreak、fontconfig
- Ass for HarmonyOS: harfbuzz、fribidi、unibreak、fontconfig
- IJKFFmpeg: openssl
- FFmpeg4 for Apple: openssl3、opus、bluray
- FFmpeg5 for Apple: openssl3、opus、bluray、dav1d、dvdread、uavs3d
- FFmpeg6 for Apple: openssl3、opus、bluray、dav1d、dvdread、uavs3d、smb2
- FFmpeg7 for Apple: openssl3、opus、bluray、dav1d、dvdnav、uavs3d、smb2、webp
- FFmpeg8 for Apple: openssl3、opus、bluray、dav1d、uavs3d、smb2、webp
- FFmpeg4 for Android: openssl3、opus、bluray、soundtouch
- FFmpeg5 for Android: openssl3、opus、bluray、dav1d、dvdread、uavs3d、soundtouch
- FFmpeg6 for Android: openssl3、opus、bluray、dav1d、dvdread、uavs3d、smb2、soundtouch
- FFmpeg7 for Android: openssl3、opus、bluray、dav1d、dvdnav、uavs3d、smb2、soundtouch
- FFmpeg8 for Android: openssl3、opus、bluray、dav1d、uavs3d、smb2、soundtouch
- FFmpeg8 for HarmonyOS: openssl3、opus、bluray、dav1d、uavs3d、smb2、soundtouch
Tips
- ffmpeg is not denpendent on ass and placebo.
- fsplayer is denpendent on ffmpeg and ass and placebo.
- ijkplayer is denpendent on ijkffmpeg.
- FFmpegTutorial is denpendent on fftutorial.
- when install pre-compiled lib, will containes it’s denpendencies.
- To download pre-compiled xcframework libraries, add the --fmwk parameter when using the install command.
- To skip pulling existing remote repositories during initialization, add the --skip-pull-base parameter when using the init command. Missing repositories will still be cloned.
- Currently, FFmpeg uses the module-full.sh configuration, resulting in slightly larger package sizes.
- You can download all pre-compiled GitHub libraries to your own server and specify your server address using MR_DOWNLOAD_BASEURL before running the install command.
评论