How to View FFmpeg Build Configuration in Linux

Viewing the build configuration of FFmpeg on a Linux machine allows you to verify enabled codecs, external libraries, and compilation flags. This guide covers how to quickly extract these details using standard command-line flags and how to filter the output for specific configuration settings.

Checking the Build Configuration Directly

FFmpeg includes built-in options to display information about its binary. You can use specific flags to output the exact string used during the configuration step of its compilation.

ffmpeg -buildconf
ffmpeg -version

Isolating the Configuration Block

When you run ffmpeg without any arguments, it displays a banner containing the build configuration by default on the standard error (stderr) stream. If you only want to view the configuration: text line without other diagnostic details, you can target and filter the output using grep.

ffmpeg -version 2>&1 | grep "configuration:"

Filtering for Specific Enabled Features

Because the build configuration can be extensive, you can pipe the output to grep to check whether a specific library or external codec (such as libx264 or openssl) was bundled during compilation.

ffmpeg -buildconf | grep "enable-libx264"

If the terminal returns the matching line, the feature is compiled into your local FFmpeg binary. If it returns no output, that specific component was disabled or omitted during the initial build.