| Flag | Representative Description | Distinct Packages | Repo Instances |
|---|---|---|---|
| amf | Enable AMD's Advanced Media Framework support via <pkg>media-video/amdgpu-pro-amf</pkg> | 1 | 1 |
| amr | Enable Adaptive Multi-Rate Audio support via <pkg>media-libs/opencore-amr</pkg> | 1 | 1 |
| amrenc | Enable Adaptive Multi-Rate Audio encoding support via <pkg>media-libs/vo-amrwbenc</pkg> | 1 | 1 |
| aot | Generate native code at build time, rather than runtime. | 1 | 1 |
| appkit | Enable Apple AppKit framework | 1 | 1 |
| blis | Build a BLIS backend | 1 | 1 |
| bluray | Enable Blu-ray filesystems reading support via <pkg>media-libs/libbluray</pkg> | 1 | 1 |
| bs2b | Enable Bauer Stereo-to-Binaural filter support via <pkg>media-libs/libbs2b</pkg> | 1 | 1 |
| cdio | Enable audio CDs reading via <pkg>dev-libs/libcdio-paranoia</pkg> | 1 | 1 |
| chromaprint | Enable audio fingerprinting support via <pkg>media-libs/chromaprint</pkg> | 1 | 1 |
| chromium | Builds libffmpeg.so to enable media playback in Chromium-based browsers like Opera and Vivaldi. | 1 | 1 |
| codec2 | Enable codec2 low bit rate speech codec support via <pkg>media-libs/codec2</pkg> | 1 | 1 |
| cuda-clang | Enable support for various GPU-accelerated filters using NVIDIA PTX compiled with <pkg>llvm-core/clang</pkg> | 1 | 1 |
| dav1d | Enable AV1 decoding support via <pkg>media-libs/dav1d</pkg> | 1 | 1 |
| drm | Enable use of <pkg>x11-libs/libdrm</pkg> for various hardware accelerated functions and Kernel Mode Setting screen capture | 1 | 1 |
| fdk | Enable AAC (Advanced Audio Coding) encoding support via <pkg>media-libs/fdk-aac</pkg> in addition to FFmpeg's own implementation (warning: if USE=gpl is enabled, this produces a non-redistributable build) | 1 | 1 |
| flexiblas | Build a FlexiBLAS backend | 1 | 1 |
| flite | Enable text-to-speech filter support via <pkg>app-accessibility/flite</pkg> | 1 | 1 |
| frei0r | Enable use of filters through <pkg>media-plugins/frei0r-plugins</pkg> | 1 | 1 |
| fribidi | Enable Bidi support for the drawtext filter via <pkg>dev-libs/fribidi</pkg> | 1 | 1 |
| gcrypt | Enable using <pkg>dev-libs/libgcrypt</pkg> for rtmp(t)e support (not needed if using any of USE=gmp,librtmp,openssl), and for obtaining random bytes (not needed if USE=openssl) | 1 | 1 |
| gme | Enables various game music formats support via <pkg>media-libs/game-music-emu</pkg> | 1 | 1 |
| gnutls | Enable using <pkg>net-libs/gnutls</pkg> for TLS/HTTPS support and other minor functions (has no effect if USE=openssl is set) | 1 | 1 |
| gpl | Enable use of GPL licensed code, should be kept enabled unless LGPL binaries are needed | 1 | 1 |
| gtk2 | Build module for GTK+2 | 1 | 1 |
| hip | Build a HIP (ROCm) backend | 1 | 1 |
| iec61883 | Enable FireWire DV/HDV input device support via <pkg>media-libs/libiec61883</pkg> | 1 | 1 |
| kvazaar | Enable H.265/HEVC encoding support via <pkg>media-libs/kvazaar</pkg> | 1 | 1 |
| lcms | Enable ICC profile support via <pkg>media-libs/lcms</pkg> | 1 | 1 |
| libaom | Enable AV1 de/encoding via <pkg>media-libs/libaom</pkg> (warning: this is the reference implementation and is slower than the alternatives) | 1 | 1 |
| libaribb24 | Enable ARIB text and caption decoding via <pkg>media-libs/aribb24</pkg> | 1 | 1 |
| libilbc | Enable internet Low Bitrate Codec de/encoding support via <pkg>media-libs/libilbc</pkg> | 1 | 1 |
| liblc3 | Enable Low Complexity Communication Codec de/encoding support via <pkg>media-sound/liblc3</pkg> | 1 | 1 |
| libplacebo | Enable use of GPU-accelerated filters from <pkg>media-libs/libplacebo</pkg> | 1 | 1 |
| librtmp | Enable Real Time Messaging Protocol support via <pkg>media-video/rtmpdump</pkg> in addition to FFmpeg's own implementation | 1 | 1 |
| libsoxr | Enable use of the audio resampler from <pkg>media-libs/soxr</pkg> | 1 | 1 |
| lv2 | Enable use of filters through <pkg>media-libs/lv2</pkg> | 1 | 1 |
| ocr | Enable Optical Character Recognition (OCR) filter support via <pkg>app-text/tesseract</pkg> | 1 | 1 |
| openblas | Build an OpenBLAS backend | 1 | 1 |
| opencl | Build an OpenCL backend, so far only works on Adreno and Intel GPUs | 1 | 1 |
| opencolorio | Enable use of color management filters via <pkg>media-libs/opencolorio</pkg> | 1 | 1 |
| openh264 | Enable H.264 encoding support via <pkg>media-libs/openh264</pkg> | 1 | 1 |
| openmpt | Enable MPTM tracked music files decoding support via <pkg>media-libs/libopenmpt</pkg> | 1 | 1 |
| openssl | Enable using <pkg>dev-libs/openssl</pkg> for TLS/HTTPS support and other minor functions (USE=gnutls has no effect if set) | 1 | 1 |
| postproc | Enable libpostproc video post processing library support (should not disable this unless need to disable USE=gpl) | 1 | 1 |
| qrcode | Enable QR encode generation support via <pkg>media-gfx/qrencode</pkg> | 1 | 1 |
| qsv | Enable Intel Quick Sync Video support via <pkg>media-libs/libvpl</pkg> | 1 | 1 |
| quirc | Enable QR decoding support via <pkg>media-libs/quirc</pkg> | 1 | 1 |
| rabbitmq | Enable AMQP stream support via <pkg>net-libs/rabbitmq-c</pkg> | 1 | 1 |
| rav1e | Enable AV1 encoding support via <pkg>media-video/rav1e</pkg> | 1 | 1 |
| rist | Enable Reliable Internet Stream Transport (RIST) protocol support via <pkg>net-libs/librist</pkg> | 1 | 1 |
| rocm | Build a HIP (ROCm) backend | 1 | 1 |
| rubberband | Enable time-stretching and pitch-shifting audio filter support via <pkg>media-libs/rubberband</pkg> | 1 | 1 |
| sdl | Enable use of the Simple Direct Layer library (required for the ffplay command) | 2 | 2 |
| sdl2 | Build and install example applications that use media-libs/libsdl2 | 1 | 1 |
| shaderc | Enable support for various GPU-accelerated filters using Vulkan compiled with <pkg>media-libs/shaderc</pkg> | 1 | 1 |
| snappy | Enable Snappy compression support via <pkg>app-arch/snappy</pkg> (required for Vidvox Hap encoder support) | 1 | 1 |
| sndio | Enable audio output support via <pkg>media-sound/sndio</pkg> | 1 | 1 |
| soc | Apply additional patches for efficient playback on some SoCs (e.g. ARM, RISC-V) | 1 | 1 |
| srt | Enable Secure Reliable Transport (SRT) support via <pkg>net-libs/srt</pkg> | 1 | 1 |
| ssh | Enable SSH/SFTP support via <pkg>net-libs/libssh</pkg> | 1 | 1 |
| svt-av1 | Enable AV1 encoding support via <pkg>media-libs/svt-av1</pkg> | 1 | 1 |
| systemd | Install systemd service file | 0 | 0 |
| truetype | Enable drawtext filter support via <pkg>media-libs/freetype</pkg> and <pkg>media-libs/harfbuzz</pkg> | 1 | 1 |
| twolame | Enable MP2 encoding support via <pkg>media-sound/twolame</pkg> in addition to FFmpeg's own implementation | 1 | 1 |
| udev | Install udev rules | 1 | 1 |
| vidstab | Enable video stabilization filter support via <pkg>media-libs/vidstab</pkg> | 1 | 1 |
| vmaf | Enable Netflix's perceptual video quality assessment filter support via <pkg>media-libs/libvmaf</pkg> | 1 | 1 |
| vpx | Enable VP8 and VP9 de/encoding support via <pkg>media-libs/libvpx</pkg> in addition to FFmpeg's own implementation (for decoding only) | 1 | 1 |
| x265 | Enable H.265/HEVC encoding support via <pkg>media-libs/x265</pkg> | 1 | 1 |
| xml | Enable Dynamic Adaptive Streaming over HTTP (DASH) stream support using <pkg>dev-libs/libxml2</pkg> | 1 | 1 |
| zeromq | Enable ZMQ command receiver filter and streaming support via <pkg>net-libs/zeromq</pkg> | 1 | 1 |
| zimg | Enable zscale filter support using <pkg>media-libs/zimg</pkg> | 1 | 1 |
| zvbi | Enable teletext decoding support via <pkg>media-libs/zvbi</pkg> | 1 | 1 |