Configure FFmpeg Vibrato Filter Frequency and Depth

This guide explains how to use the FFmpeg vibrato audio filter to apply a pitch modulation effect to your audio files. You will learn the specific syntax and parameters required to configure both the modulation frequency (speed) and depth (intensity) of the vibrato effect, along with practical command-line examples to get you started.

The Vibrato Filter Syntax

The vibrato filter in FFmpeg takes two primary parameters: modulation frequency (f) and modulation depth (d).

The basic filter syntax is:

vibrato=f=VALUE:d=VALUE

Parameter Details

1. Modulation Frequency (f)

  • Description: Controls the speed of the vibrato effect (how fast the pitch rises and falls).
  • Value Type: Float (expressed in Hertz / Hz).
  • Range: 0.1 to 20000.0 Hz.
  • Default Value: 5.0 Hz.

2. Modulation Depth (d)

  • Description: Controls the intensity of the vibrato effect (how far the pitch shifts from its original frequency).
  • Value Type: Float (percentage representation).
  • Range: 0.0 to 1.0.
  • Default Value: 0.5.

Practical Command Examples

To apply these parameters in FFmpeg, use the audio filter (-af) flag.

Default Vibrato

If you run the filter without specifying parameters, it uses a frequency of 5.0 Hz and a depth of 0.5:

ffmpeg -i input.wav -af "vibrato" output.wav

Slow and Deep Vibrato

For a dramatic, slow-wavering effect, lower the frequency and increase the depth:

ffmpeg -i input.wav -af "vibrato=f=3.0:d=0.8" output.wav
  • Frequency (f=3.0): The pitch oscillates 3 times per second.
  • Depth (d=0.8): Strong, highly noticeable pitch variation.

Fast and Subtle Vibrato

For a rapid, trembling effect that is less intense, increase the frequency and lower the depth:

ffmpeg -i input.wav -af "vibrato=f=12.0:d=0.2" output.wav
  • Frequency (f=12.0): The pitch oscillates 12 times per second.
  • Depth (d=0.2): Shaky but subtle pitch variation.