Add Tremolo Effect to Audio Using FFmpeg

Applying a tremolo effect to an instrument track can give your audio a dynamic, pulsating quality by rapidly modulating its volume. This guide provides a straightforward tutorial on how to use FFmpeg, a powerful command-line multimedia framework, to apply this classic modulation effect to your audio tracks using the built-in tremolo audio filter.

The FFmpeg Tremolo Filter Syntax

To add a tremolo effect, you will use the -af (audio filter) flag followed by the tremolo filter. The filter accepts two primary parameters:

  • f (Frequency): Defines how fast the volume oscillates, measured in Hertz (Hz). The default value is 5.0 Hz.
  • d (Depth): Defines how drastic the volume dip is, ranging from 0.0 (no effect) to 1.0 (maximum volume reduction). The default value is 0.5.

Basic Command Example

Run the following command in your terminal to apply a standard tremolo effect to your audio file:

ffmpeg -i input.mp3 -af "tremolo=f=5:d=0.5" output.mp3

In this command:

  • -i input.mp3 specifies your source instrument track.
  • -af "tremolo=f=5:d=0.5" applies a tremolo effect with a frequency of 5 Hz and a depth of 50%.
  • output.mp3 is the resulting audio file with the effect applied.

Adjusting the Tremolo Settings

You can customize the parameters to achieve different musical styles:

Fast and Intense Tremolo

For a rapid, helicopter-like chopper effect, increase both the frequency and the depth:

ffmpeg -i input.mp3 -af "tremolo=f=10:d=0.9" output.mp3

Slow and Subtle Tremolo

For a gentle, vintage surf-rock wave effect, lower both the frequency and the depth:

ffmpeg -i input.mp3 -af "tremolo=f=3:d=0.3" output.mp3