Solved MPD Server + NCMPCPP player: Apply ffmpegs anequalizer filter

For my headphones I now managed to set up MPD in real time as non-root, and get ncmpcpp connected and work.
I also created a 10 band equalization filter with ffmpegs anequalizer.
The problem is I do not know how to apply it so that it sticks each time I restart ncmpcpp.
This is the filter chain I created:
Code:
# Filter ######################################################################
#
# Apply ffmpegs high-order parametric multiband equalizer (anequalizer) for the Focal Utopia 2022 revision
# 10 band parametric equalization will be used
# Format: "anequalizer=cchn f=cf w=w g=g t=f | ..."
# Each equalizer band is separated by ’|’
# Settings to set for each band of the Focal Utopia 2022 revision version 1:
# band 1:  c0 f=105 w=40 g=9.1 t=0
# band 2:  c0 f=65 w=1162 g=-5.4 t=0
# band 3:  c0 f=1227 w=8773 g=-3.1 t=0
# band 4:  c0 f=10000 w=8020 g=6.3 t=0
# band 5:  c0 f=1980 w=8020 g=2.9 t=0
# band 6:  c0 f=10000 w=4982 g=-3.1 t=0
# band 7:  c0 f=5018 w=954 g=2.9 t=0
# band 8:  c0 f=5972 w=2972 g=-3.2 t=0
# band 9:  c0 f=3000 w=578 g=-1.7 t=0
# band 10: c0 f=3578 w=3578 g=1.5 t=0
#
filter {
plugin  "ffmpeg"
name "utopia-2022-eq-version-1"
graph "anequalizer=c0 f=105 w=40 g=9.1 t=0|c0 f=65 w=1162 g=-5.4 t=0|c0 f=1227 w=8773 g=-3.1 t=0|c0 f=10000 w=8020 g=6.3 t=0|c0 f=1980 w=8020 g=2.9 t=0|c0 f=10000 w=4982 g=-3.1 t=0|c0 f=5018 w=954 g=2.9 t=0|c0 f=5972 w=2972 g=-3.2 t=0|c0 f=3000 w=578 g=-1.7 t=0|c0 f=3578 w=3578 g=1.5 t=0"
}
#
# Settings to set for each band of the Focal Utopia 2022 revision version 2:
# band 1:  c0 f=80 w=25 g=-2.6 t=0
# band 2:  c0 f=105 w=105 g=5.5 t=0
# band 3:  c0 f=210 w=1060 g=-2.0 t=0
# band 4:  c0 f=1270 w=730 g=-3.3 t=0
# band 5:  c0 f=2000 w=900 g=3.3 t=0
# band 6:  c0 f=2900 w=3100 g=-2.3 t=0
# band 7:  c0 f=6000 w=1700 g=-5.0 t=0
# band 8:  c0 f=7700 w=1800 g=-2.0 t=0
# band 9:  c0 f=9500 w=3500 g=6.5 t=0
# band 10: c0 f=13000 w=13000 g=-3.0 t=0
#
filter {
plugin  "ffmpeg"
name "utopia-2022-eq-version-2"
graph "anequalizer=c0 f=80 w=25 g=-2.6 t=0|c0 f=105 w=105 g=5.5 t=0|c0 f=210 w=1060 g=-2.0 t=0|c0 f=1270 w=730 g=-3.3 t=0|c0 f=2000 w=900 g=3.3 t=0|c0 f=2900 w=3100 g=-2.3 t=0|c0 f=6000 w=1700 g=-5.0 t=0|c0 f=7700 w=1800 g=-2.0 t=0|c0 f=9500 w=3500 g=6.5 t=0|c0 f=13000 w=13000 g=-3.0 t=0"
}

# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple
# audio outputs at the same time, through multiple audio_output settings
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# OSS audio output through headphones filtered
#
audio_output {
type "oss" # Sound Driver where the filtered output goes through
name "OSS Headphones" # Devive name
device "/dev/dsp8" # Headphones device
mixer_type "hardware" # Preferred mixer method (Another alternative is "software" as mixer_type)
mixer_device "/dev/mixer8" # Mixer used for headphones
# mixer_control "vol" # I will set my volume per audio output as needed

# Toggle filters as needed
#filters "utopia-2022-eq-version-1" # Filter in use for the headphones
filters "utopia-2022-eq-version-2" # Filter in use for the headphones
}
#

EDIT:
I managed to load the filter, but somehow the audio does not play.
Everything works now with my equalization applied.
Recalculated the bandwith (parameter w in anequalizer in Hz) based on the electric engineering formula (Fmaxn - Fmaxn-1) starting from band 2 to get the exact route width from one graph node to another graph node.
 
Back
Top