Configure Boost Gain in FFmpeg asubboost

This article provides a quick and direct guide on how to configure the boost gain using the asubboost filter in FFmpeg. You will learn the exact syntax required to adjust the low-frequency boost parameter, along with practical command-line examples to help you optimize the bass response in your audio files.

The asubboost filter in FFmpeg is designed to boost the subwoofer (low-frequency) channels or add artificial bass to an audio stream. The primary parameter used to control the intensity of this bass enhancement is the boost (or b) option.

The Boost Parameter Syntax

The boost gain value is a floating-point number that determines how much the low frequencies are amplified.

Practical Command Examples

To apply the filter with a specific boost gain, use the -af (audio filter) flag in your FFmpeg command.

Basic Boost Gain Configuration

To set the boost gain to 4.0 (doubling the default boost intensity), use the following command:

ffmpeg -i input.mp3 -af "asubboost=boost=4.0" output.mp3

Configuring Boost Gain with Cutoff Frequency

You can combine the boost parameter with other filter options, such as the cutoff frequency (which determines the frequency limit below which the boost is applied, defaulting to 80 Hz). To set a boost gain of 5.0 with a cutoff frequency of 100 Hz:

ffmpeg -i input.wav -af "asubboost=boost=5.0:cutoff=100" output.wav

Using Shorthand Notation

FFmpeg allows you to use shorthand parameter names or omit parameter names entirely if you list them in the default order. The shorthand for boost is b:

ffmpeg -i input.mp3 -af "asubboost=b=3.5" output.mp3

Adjusting this value allows you to fine-tune the low-end punch of your audio files without causing digital clipping, though it is recommended to pair high boost levels with a volume reduction filter (e.g., -af "asubboost=boost=6.0,volume=-3dB") to prevent distortion.