List Supported FFmpeg Formats in Linux

Discovering the multimedia formats your FFmpeg installation supports is a straightforward process when working in the Linux terminal. This article provides a quick overview of the essential commands used to list all available muxers, demuxers, decoders, and encoders. By mastering these built-in flags, you can easily verify if your system has the necessary codec support for your audio and video processing tasks.

Listing All Formats

FFmpeg uses “formats” to refer to container types (like MP4, MKV, or AVI). To see every container format that your specific build can read or write, use the formats flag:

ffmpeg -formats

When you run this, you will see a long list prefaced by flags. A D means FFmpeg can demux (read) the format, and an E means it can mux (write) the format.

Listing Available Codecs

Containers are just shells; the actual audio and video data inside them are handled by codecs. To see every video, audio, and subtitle codec supported by your installation, run:

ffmpeg -codecs

The output here uses a 6-character header to tell you exactly what each codec can do:

Filtering for Specific Needs

If the full lists are too overwhelming, you can narrow your search using more specific flags or by piping the output into grep.

ffmpeg -codecs | grep aac