Skip to content

About

Reproducible FFmpeg SDK builds for HuxerUI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

HuxerUI FFmpeg SDK

Build the FFmpeg software codec libraries used by Lib-AVKit. The build pins FFmpeg, x264 and dav1d by checksum. Local builds and GitHub Actions produce the same package layout. Start with Python 3.12 or newer.

Target Package Build host
windows-x86_64 MSVC import libraries and DLLs Windows x64
linux-x86_64, linux-arm64 Shared libraries Native Linux host of the same architecture
macos-arm64, macos-x86_64 Shared libraries, macOS 12 or later Native macOS host of the same architecture
android-arm64-v8a, android-x86_64 PIC static libraries, API 23 or later Linux or macOS with Android NDK 29.0.14206865
ios-device-arm64, ios-simulator-arm64, ios-simulator-x86_64 Static libraries, iOS 15 or later macOS with Xcode
web-wasm32 Single-threaded Emscripten static libraries Linux with Emscripten 4.0.19

Run one build for each target you need.

python build.py linux-x86_64
python build.py android-arm64-v8a --ndk /path/to/android-ndk
python build.py ios-simulator-arm64
python build.py web-wasm32

Build hosts need GNU Make and pkgconf. Install NASM for x86-64, and Meson and Ninja for targets with dav1d. On Windows, install Visual Studio with the x64 C++ toolchain. Use a native Windows Meson and Ninja, and install make pkgconf nasm diffutils in MSYS2. Set MSYS2_ROOT if MSYS2 is installed outside C:/msys64 and D:/msys64.

py build.py windows-x86_64

The default configuration uses release libraries. Pass --config Debug for a local Debug build. Windows creates a separate archive for PDBs. Work files are under build/ and the package ZIPs are under dist/. Set --work to use a different cache. FFmpeg's build directory must be free of spaces.

The packages expose HuxerFFmpeg::avcodec, HuxerFFmpeg::avutil and HuxerFFmpeg::swresample. Link HuxerFFmpeg::avcodec for the complete codec set. The package config carries the static link dependencies. Extract a package and point HuxerFFmpeg_DIR at its lib/cmake/HuxerFFmpeg directory.

find_package(HuxerFFmpeg CONFIG REQUIRED)
target_link_libraries(my_app PRIVATE HuxerFFmpeg::avcodec)

In Lib-AVKit, set AVKIT_FFMPEG_SDK_ROOT to the extracted directory to use a locally built package. Windows, Linux and macOS applications distribute the matching runtime libraries with the application.

The software profile includes H.264 and AAC encoding. The Web version omits dav1d and AV1 decoding. Each SDK records its codecs and upstream revisions in sdk.json. These builds enable the FFmpeg GPL configuration for libx264. The release includes the corresponding source archives and the build scripts used to produce the binaries.

Run Build FFmpeg SDKs in GitHub Actions to build the matrix. Each job links a test against the extracted SDK. Native hosts and Node also run the encode/decode test. Select Publish SDK release to publish the archives, corresponding sources and the SHA-256 index for Lib-AVKit after all jobs succeed.

About

Reproducible FFmpeg SDK builds for HuxerUI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages