Skip to content

功能参考

Core Libraries

FeatureConfigure FlagDescriptionDependenciesPlatformSince
avcodec--enable-avcodecBuild the avcodec library
avdevice--enable-avdeviceBuild the avdevice library
avformat--enable-avformatBuild the avformat library
avfilter--enable-avfilterBuild the avfilter library
swresample--enable-swresampleBuild the swresample library
swscale--enable-swscaleBuild the swscale library
avresample--enable-avresampleBuild the avresample library<5.0
postproc--enable-postprocBuild the postproc library@license-gpl<8.0

License Flags

FeatureConfigure FlagDescriptionDependenciesPlatformSince
license-gpl--enable-gplAllow use of GPL code, the resulting libs and binaries will be under GPL
license-nonfree--enable-nonfreeAllow use of nonfree code, the resulting libs and binaries will be unredistributable

Compression / Text / Fonts

FeatureConfigure FlagDescriptionDependenciesPlatformSince
zlib--enable-zlibzlib supportzlib
bzip2--enable-bzlibBzip2 supportbzip2
lzma--enable-lzmalzma supportliblzma
iconv--enable-iconvIconv supportlibiconv
freetype--enable-libfreetypeNeeded for drawtext filterfreetype
fribidi--enable-libfribidiImproves drawtext filterfribidi!uwp
fontconfig--enable-libfontconfigUseful for drawtext filterfontconfig!uwp
harfbuzz--enable-libharfbuzzEnable drawtext filterharfbuzz!uwp>=6.1
ass--enable-libassLibass subtitles rendering, needed for subtitles and ass filter support in ffmpeglibass

Audio

FeatureConfigure FlagDescriptionDependenciesPlatformSince
opus--enable-libopusOpus de/encoding via libopusopus
vorbis--enable-libvorbisVorbis en/decoding via libvorbis, native implementation existslibvorbis
theora--enable-libtheoraTheora encoding via libtheoralibtheora
speex--enable-libspeexSpeex de/encoding via libspeexspeex
mp3lame--enable-libmp3lameMP3 encoding via libmp3lamemp3lame
soxr--enable-libsoxrInclude libsoxr resamplingsoxr
openmpt--enable-libopenmptDecoding tracked files via libopenmptlibopenmpt
ilbc--enable-libilbciLBC de/encoding via libilbclibilbc
modplug--enable-libmodplugModPlug via libmodpluglibmodplug!uwp
tesseract--enable-libtesseractOptical character recognition via tesseracttesseract!uwp
gme--enable-libgmeVideo game music file de/encoding via libgmelibgme

Video / Image

FeatureConfigure FlagDescriptionDependenciesPlatformSince
dav1d--enable-libdav1dAV1 decoding via libdav1ddav1d>=4.2
aom--enable-libaomAV1 video encoding/decoding via libaom support in ffmpegaom!uwp>=4.0
vpx--enable-libvpxVP8 and VP9 de/encoding via libvpxlibvpx
webp--enable-libwebpWebP encoding via libwebplibwebp
openjpeg--enable-libopenjpegJPEG 2000 de/encoding via OpenJPEGopenjpeg>=4.0
snappy--enable-libsnappySnappy compression, needed for hap encodingsnappy
openh264--enable-libopenh264H.264 de/encoding via openh264openh264
lensfun--enable-liblensfunLens correction via lensfunlensfun!arm>=4.1
jxl--enable-libjxlJPEG XL de/encoding via libjxllibjxl>=5.1
shaderc--enable-libshadercGLSL/Vulkan shader compilation via shaderc (required by libplacebo)shaderc>=5.0
svtav1--enable-libsvtav1AV1 encoding via SVT-AV1svt-av1!x86 & !arm32 & !uwp>=4.4
vvenc--enable-libvvencVVC/H.266 encoding via vvencvvenc!x86 & !arm>=7.1

Network / Graphics / Container

FeatureConfigure FlagDescriptionDependenciesPlatformSince
sdl2--enable-sdl2Sdl2 supportsdl2
xml2--enable-libxml2XML parsing using the C library libxml2, needed for dash demuxing supportlibxml2
srt--enable-libsrtHaivision SRT protocollibsrt!uwp & !xbox>=4.0
ssh--enable-libsshSFTP protocol via libsshlibssh!uwp & !xbox
openssl--enable-opensslUse OpenSSL for TLS supportopenssl
zmq--enable-libzmqEnable ZeroMQ supportzeromq!uwp & !xbox
mysofa--enable-libmysofaSpatial audio via libmysofalibmysofa
bluray--enable-libblurayBlu-ray disc support via libbluraylibbluray!uwp & !xbox

Hardware Acceleration

FeatureConfigure FlagDescriptionDependenciesPlatformSince
nvcodec--enable-cuda --enable-nvenc --enable-ffnvcodecNvidia video decoding/encoding accelerationffnvcodec!uwp & !arm & !arm64
amf--enable-amfAMD AMF codec supportamd-amf>=4.0
qsv--enable-libvplIntel QSV Codec via oneVPLlibvpl!uwp & !arm & !arm64>=6.0
mfx--enable-libmfxIntel QSV Codec via libmfx (pre-8.0)mfx-dispatch!uwp & !arm & !arm64<8.0
vulkan--enable-vulkanH.264, HEVC and AV1 de/encoding via Vulkanvulkan!uwp & !xbox>=7.0
opencl--enable-openclOpenCL processingopencl!uwp
opengl--enable-openglOpenGL renderingopengl!uwp & !xbox

Windows Platform

FeatureConfigure FlagDescriptionDependenciesPlatformSince
w32threads--enable-w32threadsWindows thread support
d3d11va--enable-d3d11vaDirect3D 11 Video Acceleration
d3d12va--enable-d3d12vaDirect3D 12 Video Acceleration>=7.0
dxva2--enable-dxva2DXVA2 hardware decoding
mediafoundation--enable-mediafoundationMedia Foundation support>=4.0
pthreads--enable-pthreadsPOSIX threads support

GPL

FeatureConfigure FlagDescriptionDependenciesPlatformSince
x264--enable-libx264H.264 encoding via x264x264, @license-gpl
x265--enable-libx265HEVC encoding via x265x265, @license-gpl!uwp & !xbox
dvdnav--enable-libdvdnavDVD, Blu-ray, and Matroska navigation via libdvdnavlibdvdnav, @license-gpl!uwp & !xbox>=7.0
dvdread--enable-libdvdreadDVD reading support via libdvdreadlibdvdread, @license-gpl!uwp & !xbox>=7.0

Non-free

FeatureConfigure FlagDescriptionDependenciesPlatformSince
fdk-aac--enable-libfdk-aacAAC de/encoding via libfdk-aacfdk-aac, @license-nonfree>=4.0

Meta Features

FeatureConfigure FlagDescriptionDependenciesPlatformSince
staticBuild FFmpeg as static libraries instead of shared
ffplay--enable-ffplayBuild the ffplay application@base, @sdl2
ffmpeg--enable-ffmpegBuild the ffmpeg application@base
ffprobe--enable-ffprobeBuild the ffprobe application@base
baseBuild all libraries@avcodec, @avdevice, @avformat, @avfilter, @swresample, @swscale
appBuild all applications@ffmpeg, @ffplay, @ffprobe
windows-hwWindows hardware acceleration features@d3d11va, @d3d12va, @dxva2, @mediafoundation, @w32threads
allAll LGPL features plus Windows hardware acceleration@lgpl, @windows-hw
lgplAll LGPL-licensed optional features@zlib, @bzip2, @lzma, @iconv, @freetype, @fribidi, @fontconfig, @harfbuzz, @ass, @bluray, @opus, @vorbis, @theora, @speex, @mp3lame, @soxr, @openmpt, @ilbc, @modplug, @gme, @mysofa, @tesseract, @dav1d, @aom, @vpx, @webp, @openjpeg, @snappy, @openh264, @jxl, @lensfun, @shaderc, @svtav1, @vvenc, @sdl2, @xml2, @vulkan, @opencl, @opengl, @srt, @ssh, @openssl, @zmq, @nvcodec, @amf
all-lgplMeta-feature: all + lgpl@all, @lgpl
gplAll GPL-licensed features@dvdnav, @dvdread, @x264, @x265, @postproc
all-gplMeta-feature: all + gpl@all, @gpl
nonfreeAll non-free features@fdk-aac
all-nonfreeMeta-feature: all features including non-free@all, @gpl, @lgpl, @nonfree

License Summary

GPL features (require --enable-gpl): postproc, x264, x265, dvdnav, dvdread

Non-free features (require --enable-nonfree): fdk-aac

Platform-restricted features: fribidi, fontconfig, harfbuzz, modplug, tesseract, aom, lensfun, svtav1, vvenc, srt, ssh, zmq, bluray, nvcodec, qsv, mfx, vulkan, opencl, opengl, x265, dvdnav, dvdread