ffmpeg
A collection of libraries to process multimedia content such as audio, video, subtitles and related metadata.
Latest version: 7.1
Add to xmake.lua
add_requires("ffmpeg 7.1")Learn how to add and link packages with Xmake →
Information
- License
- GPL-3.0
- Recipe updated
- 2026-05-07T12:28:07.000Z
Platforms
- linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
- mingw: i386, x86_64, arm, arm64
- cross: i386, x86_64, arm, armv7, arm64, mips, mips64, mips64el, riscv, riscv64, loong64, s390x, ppc, ppc64, ppc64el, sh4, sparc64
- android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
- windows: x86, x64, arm, arm64, arm64ec
- iphoneos: arm64, x86_64
- macosx: x86_64, arm64
Options
bzlib- Enable bzlib compression library. · Type: boolean · Default: false
ffmpeg- Enable ffmpeg program. · Type: boolean · Default: true
ffplay- Enable ffplay program. · Type: boolean · Default: false
ffprobe- Enable ffprobe program. · Type: boolean · Default: false
gpl- Enable GPL code · Type: boolean · Default: true
hardcoded-tables- Enable hardcoded tables. · Type: boolean · Default: true
iconv- Enable libiconv library. · Type: boolean · Default: false
libaom- Enable libaom encoder. · Type: boolean · Default: false
libdav1d- Enable libdav1d decoder. · Type: boolean · Default: false
libdrm- Enable libdrm hardware acceleration · Type: boolean · Default: true
libopenh264- Enable openh264 encoder. · Type: boolean · Default: false
libsvtav1- Enable libsvtav1 encoder. · Type: boolean · Default: false
libx264- Enable libx264 encoder. · Type: boolean · Default: false
libx265- Enable libx265 encoder. · Type: boolean · Default: false
lzma- Enable liblzma compression library. · Type: boolean · Default: false
nvdec- Enable nvidia nvdec library. · Type: boolean · Default: false
nvenc- Enable nvidia nvenc library. · Type: boolean · Default: false
vaapi- Enable vaapi library. · Type: boolean · Default: false
vdpau- Enable vdpau library. · Type: boolean · Default: false
zlib- Enable zlib compression library. · Type: boolean · Default: false
Versions
- 4.0.2
- 4.4.4
- 5.0.1
- 5.1.1
- 5.1.2
- 6.0.1
- 6.1
- 7.0
- 7.1
Dependencies
Used by (3)
Packages declaring this dependency; requirements can vary by platform and configuration.
Install with xrepo
Install the package independently of a project and inspect its available configuration.
install
xrepo install "ffmpeg 7.1"show info
xrepo info "ffmpeg"Link a library to your target
Declare the requirement, then attach the library to the target that uses it.
xmake.lua
add_requires("ffmpeg 7.1")
target("demo")
set_kind("binary")
add_files("src/*.cpp")
add_packages("ffmpeg")Open a package environment
Open a shell with the environment exported by this package. Use the executable names documented by the package.
enter shell
xrepo env -b "ffmpeg 7.1" shell