FFmpeg: How to Show Help for a Specific Encoder

This article provides a quick guide on how to use the -h (help) parameter in FFmpeg to view detailed information and configuration options for a specific encoder. By mastering this command, you can easily discover supported pixel formats, bitrates, profiles, and private options for any audio or video encoder installed on your system.

To view the help documentation for a specific encoder in FFmpeg, you need to pass the encoder argument to the -h parameter. The basic syntax for this command is:

ffmpeg -h encoder=ENCODER_NAME

Replace ENCODER_NAME with the exact name of the encoder you want to query.

Practical Examples

If you want to view the available options for the popular H.264 video encoder (libx264), run the following command in your terminal:

ffmpeg -h encoder=libx264

For an audio encoder like the native AAC encoder, use:

ffmpeg -h encoder=aac

Understanding the Output

When you run this command, FFmpeg will print a detailed list of information to the console, including: * General Capabilities: Information on whether the encoder supports slice threading, frame multithreading, or experimental features. * Supported Pixel Formats / Sample Formats: A list of color spaces (for video) or audio formats the encoder can process. * Encoder-Specific Options: A comprehensive list of private options (such as preset, tune, crf, or profile) along with their default values and descriptions.

Finding Available Encoders

If you do not know the exact name of the encoder you want to query, you can list all encoders currently compiled into your FFmpeg build by running:

ffmpeg -encoders

Once you identify the encoder name from this list, you can plug it into the ffmpeg -h encoder=ENCODER_NAME command to view its specific help documentation.