Filter chain syntax
The syntax for--af is the same as --vf. See video filters for full details on labels, the ! prefix for disabled-by-default filters, and runtime toggling.
--af-add, --af-pre, --af-clr. See --vf group of options for their behavior.
Available filters
lavcac3enc — AC-3 encoding
Encodes multi-channel audio to AC-3 at runtime using libavcodec. Supports up to 6 channels. Output is big-endian for raw AC-3, or native-endian for S/PDIF. Input is resampled to 48 kHz, 44.1 kHz, or 32 kHz if needed.
Auto bitrate by channel count:
format — audio format control
Forces a specific audio format, sample rate, or channel layout. Does not perform conversion itself; it instructs the filter system to insert necessary conversion filters.To control audio output format (as opposed to mid-chain format), use
--audio-format, --audio-samplerate, and --audio-channels instead.scaletempo — tempo scaling (legacy)
Scales audio tempo without altering pitch, optionally synced to playback speed. Uses a time-domain WSOLA-like algorithm.scaletempo2 — tempo scaling (recommended, default)
Scales audio tempo without altering pitch using the WSOLA (Waveform Similarity Overlap-and-Add) algorithm, ported from Chromium. Higher audio quality thanscaletempo and rubberband R2 engine.
This filter is inserted automatically when --audio-pitch-correction is enabled (the default) and playback speed changes.
rubberband — high-quality pitch correction
High-quality pitch correction using librubberband. Can replacescaletempo and scaletempo2, and supports pitch adjustment independent of speed.
List all available rubberband sub-options:
af-command):
set-pitch <value>— Changepitch-scaledynamically at runtimemultiply-pitch <factor>— Multiply the currentpitch-scaledynamically
input.conf for semitone pitch stepping:
lavfi — libavfilter wrapper
Filters audio using FFmpeg’s libavfilter. Provides access to all of libavfilter’s audio filters.drop — frame dropping for SPDIF
Drops or repeats audio frames to adapt to playback speed. Operates on full audio frames, designed for S/PDIF (compressed audio passthrough). Used automatically with--video-sync=display-adrop.
Common use cases
Tempo-correct playback at 1.5x speed
Tempo-correct playback at 1.5x speed
Encode multi-channel audio to AC-3 for S/PDIF
Encode multi-channel audio to AC-3 for S/PDIF
Loudness normalization with EBU R128
Loudness normalization with EBU R128
Parametric EQ
Parametric EQ
Change audio pitch without changing speed
Change audio pitch without changing speed