Skip to content

Codecs and Libraries

Phillippe Pelzer edited this page Nov 24, 2026 · 5 revisions

Codecs and Libraries

This page lists what is built into NoMercy FFmpeg 9.1: the libraries and their versions, the hardware acceleration per platform, the configure options and the differences from a stock build. It describes v1.0.50.

All codec and support libraries are linked into the executable. There are no .so, .dll or .dylib files to install. The NoMercy-only parts are on their own pages. See NoMercy-only components.

Licence flags

The build uses --enable-gpl --enable-version3 --enable-nonfree. It is not redistributable as an LGPL build. See License.

Library versions

Versions are the pins used to build v1.0.50. A source tag can differ from the version a library prints at run time. x264 is built from its stable branch.

Video codecs

Library Version Used for
x264 stable H.264 encoder (a branch, not a version number)
x265 4.1 HEVC encoder
SVT-AV1 4.1.0 AV1 encoder
libaom 3.15.3 AV1 encoder and decoder
rav1e 0.8.1 AV1 encoder
dav1d 1.5.3 AV1 decoder
libvpx 1.17.0 VP8 and VP9
davs2 1.7 AVS2 decoder
xavs2 1.4 AVS2 encoder
Xvid 1.3.7 MPEG-4 Part 2 encoder
Theora 1.2.0 Theora
OpenJPEG 2.5.4 JPEG 2000
libwebp 1.6.0 WebP
libjxl 0.13.0 JPEG XL, still and animated, encode and decode
Snappy 1.3.1 HAP and HAP Alpha encoder (the decoder is FFmpeg's own)
OpenAPV 1.1.3.0 APV encoder, with 10-bit alpha (the decoder is FFmpeg's own)

Audio codecs

Library Version Used for
FDK-AAC 2.0.3 AAC encoder and decoder
LAME 3.100 MP3 encoder
TwoLAME 0.4.0 MP2 encoder
Opus 1.6.1 Opus
Vorbis 1.3.7 Vorbis
Ogg 1.3.6 Ogg container support

Audio processing

Library Version Used for
Rubber Band 4.0.0 The rubberband filter: tempo and pitch, each on its own. Patched: R3 engine option and no start delay. See Filter-rubberband. Since v1.0.49
libsoxr 0.1.3 The SoX resampler: aresample=resampler=soxr. Since v1.0.49

Disc, network and container support

Library Version Used for
libbluray 1.4.1 Blu-ray reading
libaacs 0.11.1 AACS decryption for Blu-ray. Patched since v1.0.50: the path resolver fix of its master (CVE-2026-133306)
libbdplus 0.2.0 BD+ support for Blu-ray
libgcrypt 1.12.2 Crypto for libaacs
libgpg-error 1.61 Dependency of libgcrypt
libudfread 1.2.0 UDF file system for Blu-ray
libdvdread 6.1.3 DVD reading
libdvdnav 7.0.0 DVD navigation
libdvdcss 1.4.3 CSS support for DVD
libcdio 2.3.0 Audio CD reading
libcdio-paranoia 2.0.2 Audio CD reading with error correction
libcddb 1.3.2 CD metadata lookup
SRT 1.5.7 SRT streaming protocol
OpenSSL 4.0.3 TLS
libxml2 2.15 XML
libiconv 1.19 Character set conversion
zlib 1.4 Compression

Subtitles, text and images

Library Version Used for
libass 0.17.5 Subtitle rendering
libzvbi 0.2.46 Teletext
FreeType 2.15.0 Fonts
HarfBuzz 15.1.0 Text shaping
FriBidi 1.0.16 Right-to-left text
Fontconfig 2.18.1 Font lookup
zimg 3.0.6 Scaling and colour conversion
libplacebo 7.360.1 GPU video processing on Vulkan
frei0r 3.2.1 frei0r plugin API
AviSynth+ 3.7.5 AviSynth input
librsvg 2.61.5 SVG rendering (Linux x86_64 and Windows x86_64 only). Since v1.0.50 built with the url crate 2.5.9 (RUSTSEC-2026-0592)
Cairo 1.18.4 Part of the librsvg stack
Pango 1.57.0 Part of the librsvg stack
GLib 2.88.4 Part of the librsvg stack
GDK-Pixbuf 2.44.8 Part of the librsvg stack
Pixman 0.46.4 Part of the librsvg stack
PCRE2 10.49 Part of the librsvg stack

Analysis and speech

Library Version Used for
whisper.cpp (with ggml) 1.9.1 Speech recognition engine, and the ggml engine under stemsplit and lyricsalign. Since v1.0.50 with the GGUF loader fix of 1.9.5 applied (CVE-2026-116840)
espeak-ng 1.52.0 Phonemes for lyricsalign
Tesseract 5.5.4 OCR
Leptonica 1.87.0 Image library under Tesseract
libvmaf 3.1.0 VMAF quality scores. The built-in models are compiled in since v1.0.48, so a plain libvmaf filter needs no model file (default vmaf_v0.6.1; also vmaf_v0.6.1neg, the 4k and float models). Earlier releases had no built-in model. The bootstrap set vmaf_b_v0.6.3 does not load.
Chromaprint 1.6.0 Audio fingerprints
FFTW 3.3.11 FFT library for Chromaprint

Hardware acceleration headers and loaders

Library Version Used for
nv-codec-headers 13.0.19.0 NVENC, NVDEC and CUDA headers
AMF 1.5.2 AMD Advanced Media Framework headers
libvpl 2.16.0 Intel oneVPL, for Quick Sync
libva 2.24.1 VAAPI (Linux). 2.24.1 since v1.0.49 (CVE-2026-56438)
libdrm 2.4.134 Direct Rendering Manager (Linux)
Vulkan-Headers 1.4.353 Vulkan headers
shaderc 2026.2 Shader compiler libraries
SDL2 2.32.10 Window and audio output for ffplay

Some libraries are not built on every platform. See Differences between platforms.

Codecs added by NoMercy

Codec or format What is built in Page
JPEG XL libjxl and libjxl_anim, encode and decode, RGB, RGBA and gray at 8-bit, 16-bit and float. All seven platforms. Examples below
HAP, HAP Alpha, HAP Q The hap encoder through Snappy. -format takes hap, hap_alpha or hap_q. Examples below
APV The liboapv encoder, including yuva444p10le. Examples below
HEVC with alpha ffprobe reports yuva420p for the stream of an HEVC file with an alpha layer. HEVC-Alpha

JPEG XL, HAP and APV encoding arrived in v1.0.46. In v1.0.45 and earlier there was no encoder for hap or liboapv, and jpegxl had neither decoder nor encoder.

Other codecs in the build

These come from the bundled libraries. They are not NoMercy additions.

Codec What is built in
AVS2 libdavs2 decoder and libxavs2 encoder.
AV1 libsvtav1, libaom-av1, librav1e encoders. libdav1d and libaom-av1 decoders.
AAC libfdk_aac, which needs --enable-nonfree.
Others x264, x265, libvpx (VP8, VP9), Xvid, Theora, OpenJPEG, WebP, Opus, Vorbis, LAME, TwoLAME.

Examples

# JPEG XL still. -distance 0 is lossless. The default, 1.0, is visually lossless. -effort 1-9, default 7.
ffmpeg -i input.png -c:v libjxl -distance 0 output.jxl

# Animated JPEG XL. image2pipe keeps every encoded packet in the same file.
ffmpeg -i input.mov -an -c:v libjxl_anim -f image2pipe output.jxl

# HAP with alpha. -format takes hap, hap_alpha or hap_q.
ffmpeg -i input.mov -an -c:v hap -format hap_alpha output.mov

# APV with 10-bit alpha
ffmpeg -i input.mov -an -c:v liboapv -pix_fmt yuva444p10le output.mkv

HAP and APV are lossy, so the tests check that an alpha gradient survives three frames through FFmpeg's own decoders. JPEG XL at -distance 0 is compared byte for byte.

On windows-x86_64 the Highway kernels of libjxl are built with unaligned vector moves instead of a raised -march. MinGW GCC does not realign the Win64 stack for AVX2 loads (GCC bug 54412). Raising the baseline would have excluded CPUs that the rest of the binary still supports.

NoMercy-only components

Each has its own page.

Component Kind Page
stemsplit Audio filter, music source separation Filter-stemsplit
lyricsalign Audio filter, time-synced lyrics Filter-lyricsalign
keydetect Audio filter Filter-keydetect
beatdetect Audio filter Filter-beatdetect
trailingsilence Audio filter Filter-trailingsilence
whisper Audio filter, with language detection and word timestamps Whisper-Language-Detection, Whisper-Word-Timestamps
ocr_subtitle Subtitle encoder, bitmap to text Subtitles-OCR
vobsub Muxer Muxer-VOBsub
spritevtt Muxer Muxer-Sprite-Sheet
chapters_vtt Muxer Muxer-Chapter-VTT
dvdread: Input protocol Protocol-dvdread
omnidrive: Input protocol Protocol-OmniDrive
HLS master playlist Muxer patch HLS-Master-Playlist
Blu-ray AACS and BD+ Libraries linked into libbluray AACS-and-BDplus
Automatic output directories Option Auto-Create-Directories
rubberband engine and start delay Patch to a stock filter Filter-rubberband

Other built-in features that are not NoMercy-only:

Feature Library
Audio fingerprinting Chromaprint
Video quality (VMAF) libvmaf
Audio CD extraction libcdio
SRT streaming libsrt
Subtitle rendering libass, libzvbi
Scaling and colour libzimg, libplacebo
frei0r and AviSynth frei0r, AviSynth+

Hardware acceleration per platform

The binary detects hardware at run time. Hardware encoders and decoders are compiled in where the table says so. The host must supply the driver.

Platform Compiled in Not available
linux-x86_64 VAAPI (with libdrm), NVENC, NVDEC, CUVID and CUDA, AMF, Quick Sync (libvpl), Vulkan with libplacebo, OpenCL VideoToolbox, DXVA, Direct3D
linux-aarch64 The same set as linux-x86_64. Not verified on hardware: no ARM GPU has been exercised.
windows-x86_64 DXVA2, D3D11VA, D3D12VA, MediaFoundation, NVENC, NVDEC, CUVID and CUDA, AMF, Quick Sync, Vulkan with libplacebo, OpenCL VAAPI
windows-aarch64 DXVA2, D3D11VA, D3D12VA, MediaFoundation, Vulkan with libplacebo, OpenCL. Not verified on hardware. NVENC, CUDA, AMF, Quick Sync. No NVIDIA, AMD or Intel GPU exists on Windows on ARM.
darwin-arm64 VideoToolbox, OpenCL Vulkan, VAAPI, NVENC, AMF, Quick Sync. Metal for the ggml filters: Metal.
darwin-x86_64 VideoToolbox, OpenCL Vulkan, VAAPI, NVENC, AMF, Quick Sync. No Metal.
freebsd-x86_64 Vulkan with libplacebo, OpenCL. FFmpeg Vulkan and ggml Vulkan are enabled. Physical GPU execution is not verified on hardware. VAAPI, NVENC, CUDA, AMF, Quick Sync

Notes:

  • D3D12VA covers decode of H.264, HEVC, AV1, VP9, MPEG-2, VC-1 and WMV3, H.264, HEVC and AV1 encode, and scale and deinterlace filters. It is on both Windows builds since v1.0.46. windows-aarch64 had it earlier.
  • FFmpeg 9.1 has no --enable-libshaderc option. The Vulkan shaders are compiled at build time with a glslc-compatible tool. The binary reports --glslc=/usr/bin/glslangValidator.
  • Quick Sync, AMF, NVENC and CUDA need the vendor driver on the host. They are not shipped.
  • The hwaccels line of the v1.0.50 linux-x86_64 binary lists cuda, vaapi, qsv, drm, opencl, vulkan and amf.
  • GPU use by whisper, stemsplit and lyricsalign is a separate matter. See GPU-Acceleration.

Differences between platforms

The v1.0.47 configure lines differ from the linux-x86_64 line as follows.

Option Missing on Why
--enable-librsvg linux-aarch64, windows-aarch64, darwin-arm64, darwin-x86_64, freebsd-x86_64 The librsvg build script runs only for x86_64 Linux and Windows.
--enable-libomnidrive darwin-arm64, darwin-x86_64 The OmniDrive protocol is not built on macOS.
--enable-iconv darwin-arm64, darwin-x86_64 The macOS builds do not build libiconv.
--enable-vaapi, --enable-libdrm windows, macOS, FreeBSD Linux only.
--enable-ffnvcodec, --enable-nvenc, --enable-nvdec, --enable-cuda, --enable-cuda-nvcc, --enable-cuvid, --enable-amf, --enable-libvpl windows-aarch64, macOS, FreeBSD No such GPU or runtime on those targets.
--enable-vulkan, --enable-libplacebo macOS Metal is used for ggml.
--enable-dxva2, --enable-d3d11va, --enable-d3d12va Linux, macOS, FreeBSD Windows only.

Every other flag in the next section is on all seven platforms.

Configure options

These are the --enable options in the v1.0.50 linux-x86_64 build. ffmpeg -version prints the exact line of the binary you run.

# Core
--enable-gpl --enable-version3 --enable-nonfree
--enable-static --disable-shared --enable-runtime-cpudetect
--enable-filter=all --enable-ffplay --enable-sdl2 --enable-cross-compile

# Audio codecs
--enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis
--enable-libtwolame --enable-libtheora
--enable-librubberband --enable-libsoxr

# Video codecs
--enable-libx264 --enable-libx265
--enable-libvpx --enable-libaom --enable-libsvtav1 --enable-librav1e --enable-libdav1d
--enable-libdavs2 --enable-libxavs2
--enable-libxvid --enable-libopenjpeg --enable-libwebp
--enable-libjxl --enable-libsnappy --enable-liboapv

# Hardware acceleration
--enable-ffnvcodec --enable-nvenc --enable-nvdec --enable-cuvid
--enable-cuda --enable-cuda-nvcc
--enable-amf --enable-libvpl
--enable-vaapi --enable-libdrm
--enable-vulkan --enable-libplacebo --enable-opencl

# Analysis
--enable-whisper --enable-libtesseract --enable-libvmaf --enable-chromaprint

# Disc, subtitles and media
--enable-libbluray --enable-libdvdread --enable-libdvdnav --enable-libcdio
--enable-libass --enable-libzvbi --enable-librsvg
--enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-fontconfig
--enable-libxml2 --enable-iconv
--enable-libsrt --enable-openssl
--enable-libzimg --enable-frei0r --enable-avisynth
--enable-libomnidrive

The libaacs, libbdplus, libdvdcss and espeak-ng libraries are linked through --extra-libs. The linux-x86_64 line adds -laacs -lbdplus -ldvdcss -lespeak-ng.

Limitations compared with stock FFmpeg

These differences are intentional.

Aspect Our choice Effect
Shared libraries Codec libraries are built in. The OS and GPU libraries come from the host. No separate codec files to ship. Platform runtime needs still apply: Platforms.
Debug symbols Stripped Smaller binaries.
Licence GPL, version 3, nonfree Not redistributable as LGPL. See License.
espeak-ng 1.52.0 Statically linked, GPL-3.0-or-later. Its espeak-ng-data directory (about 18 MB as extracted) ships next to the binary. Covered by --enable-version3. The directory is part of the archives. See Filter-lyricsalign.

Related pages

Clone this wiki locally