WangBin edited this page Jul 1, 2018 · 48 revisions

Supports mingw gcc, msvc(>=2013) for desktop and store, android, ios, raspberry pi, sailfish etc.

for All Platforms

  • Set FFmpeg source dir in shell environment before build: export FFSRC=ffmpeg/source/dir

  • You can pass arguments to the script, ./ $TARGET_OS "$TARGET_ARCHS".

You may have to set some vars in config-${TARGET_OS}.sh.

After building, the result headers and libs you need are in sdk-${TARGET_OS}-${TARGET_ARCH} for single architecture build.

Host Build

Build on windows, linux, macOS, raspberry pi in bash environment. Target platform is host


Multiarch Build for All Platforms

FFmpeg configure script is slow because only 1 job is running. Multiarch build can simultaneously run configure to reduce configure time. In build command $ENV_VARS ./ $TARGET_OS[$OS_VERSION] "$TARGET_ARCHS", "$TARGET_ARCHS" can be a list of target arch[-compiler]. For example:

./ android "armv7 armv8-clang"
./ mingw "x86 x86_64"
./ rpi "armv6-clang-5.0 armv7 armv8"
./ ios "arm64 x86_64"
./ macos10.13

The result directory structure is


Lite Build

Copy to Only frequently used features are enabled. Encoding is disabled except hardware accelerated encoders.

Prebuilt FFmpeg

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.