AUDIO EQUALIZER
mpv version and platform
mpv-i686-20181007-git-2b0b9bb.7z windows 10
Reproduction steps
mpv.exe http://radio.pauta.cl/playlist/stream.m3u8
Expected behavior
use audio equalizer with MPV on command line or config file
Actual behavior
using MPV without equalizer, missing a lot on sound quality
More details
I can set audio equalizer with mplayer on command line like this, works like a charm:
mplayer.exe %url% -af equalizer=8:4:-3:-1:0:1:2:3:2:3
Can this be translated to mpv switch?
If not, then how do I get audio equalizer setting with mpv in config file or command line?
I looked at documentation and couldn't figure it out.
Thanks to anybody who replies.
Most filters have been moved to libavfilter, so they are not documented in mpv’s own manual. See https://ffmpeg.org/ffmpeg-filters.html for documentation.
Thank you for this quick reply. This is something that I did not expect, to get it with ffmpeg switches. Could it then work with ffplay.exe as well? It would be magic! Could you please post one real life example how you set that equalizer with mpv or ffplay?
Works like any other filter, so e.g. -af superequalizer=2b=15:4b=13. This syntax works with both mpv and ffplay.
Thank you. Now I have to work on that to make it work, it will take me some time. It is great to have right guidance for the start. When I get it done I'll post working example here. Audio equalizer is good to have with player like mpv.
how to reset superequalizer at runtime ??
with some sort of GUI interface. I don't see how to play the script once it runs. Apart from starting another script with another settings.
Maybe setting configuration file with settings you like most of times, and then running script with another settings now and then.
in input.conf:
F1 af toggle "superequalizer=2b=15:4b=13"
I
how to reset superequalizer at runtime ??
in slave mode :
echo '{"command": ["af" ,"set",""]}' | socat - /tmp/mpvserver
Add to input.conf:
# https://www.mltframework.org/plugins/FilterAvfilter-superequalizer/
# http://avisynth.nl/index.php/SuperEQ
# https://github.com/mpv-player/mpv/issues/6210#issuecomment-507040866
# https://ffmpeg.org/ffmpeg-filters.html#superequalizer
# * SUPEREQUALIZER [SuperEQ]
# ** Apply 18 band equalizer
# ** Parameters: av.1b - av.18b; e.g.:
# av.1b
# description: set 65Hz band gain
# type: float
# readonly: no
# required: no
# minimum: 0
# maximum: 20
# default: 1
# 1b: set 65Hz band gain
# 2b: set 92Hz band gain
# 3b: set 131Hz band gain
# 4b: set 185Hz band gain
# 5b: set 262Hz band gain
# 6b: set 370Hz band gain
# 7b: set 523Hz band gain
# 8b: set 740Hz band gain
# 9b: set 1047Hz band gain
# 10b: set 1480Hz band gain
# 11b: set 2093Hz band gain
# 12b: set 2960Hz band gain
# 13b: set 4186Hz band gain
# 14b: set 5920Hz band gain
# 15b: set 8372Hz band gain
# 16b: set 11840Hz band gain
# 17b: set 16744Hz band gain
# 18b: set 20000Hz band gain
F1 af toggle "superequalizer=1b=3:2b=4:3b=5:4b=5:5b=6:6b=7:7b=7:8b=7:9b=7:10b=7:11b=7:12b=9:13b=10:14b=10:15b=10:16b=10:17b=9:18b=8"
F2 af toggle "superequalizer=1b=3:2b=3:3b=3:4b=1:5b=1:6b=3:7b=5:8b=7:9b=8:10b=7:11b=5:12b=3:13b=3:14b=2:15b=2:16b=2:17b=1:18b=1"
F3 af toggle "superequalizer=1b=2.9:2b=0.0:3b=2.4:4b=3.3:5b=3.3:6b=3.3:7b=2.4:8b=1.4:9b=1.4:10b=1.4"
F4 af toggle "superequalizer=1b=7:2b=7:3b=7:4b=5:5b=5:6b=0:7b=2:8b=7:9b=7:10b=7:11b=7:12b=7:13b=11:14b=1:15b=10:16b=10:17b=11:18b=7"
# The following appears to be a two-pole peaking EQ filter: https://ffmpeg.org/ffmpeg-filters.html#equalizer)
F5 af toggle "superequalizer=2b=15:4b=13"
F6 af toggle "superequalizer=1b=4:2b=12:4b=10:9b=10:16b=12"
Update: those actually don't sound too good, but I thought I'd share them as there is very little out there on this. I see it has sparked debate: it'd be nice if we could post/share our favorite superEQ (18-band) settings. :-)
Men, these are great news! Can somebody tell me how to implement 18 band equalizer settings to sound the same as 10 band setings ? For example my settings for Audacious are:
8 4 -3 -1 0 1 2 3 2 3
and I would like to get the same sound with ffplay or mpv equalizer, 18 band. Or where to find some tutorial to tell me how to figure out comparable settings ? So far, no luck with my experiments.

not sure how you will be doing this in audacious but mpv, mplayer and ffplay can use these, example check fireequalizer.lua script in mpv user script github repo.
I want to use mpv equalizer with mpv. I am struggling to get 18 band equalizer settings right and would like to replicate the sound I currently have with 10 band equalizer. VLC has 10 band equalizer but some other numbers than audacious and I can't set VLC's numbers right either. It is simpler with numbers 1 to 10 than frequency numbers.
I would like these 10 numbers ( 8 4 -3 -1 0 1 2 3 2 3 ) written in 18 numbers to use them in 18 band equalizer to get the same sound. 18 settings like these ( 2b=15:4b=13 ) to sound like these 10 settings ( 8 4 -3 -1 0 1 2 3 2 3 )
I didn't look in fireequalizer.lua script, I am about 18 band settings.
these equalizers tgings are from ffmpeg read the documentation of ffmpeg for appropriate values. you can also take reference from my code look equalizer.cpp
Yes. it tells me how to construct command line argument to use in scripts or on command line, but the sound I hear is something I have to make with my numbers.
This question is answered about with how to do it and I don't get level values with 18 band like with 10 band. Some musician who understands frequency values would maybe answer how ( 8 4 -3 -1 0 1 2 3 2 3 ) translates in frequences.
I will look at equalizer.cpp to see if I get something.
those 18 bands are not equalizers in true sense they are more like audio filters. yes they are called super.eq but they act like filters. i tested this and audio use to stop as you change the value of any one band. values are from 0-20 . example mpv -af superequalizer=2b=15:4b=13
2b is band name and 15 is its value.
You obviously know more than me about this topic. Values 0-20 is something that works in audacious like -10 to 10 in every one of 10 bands. Another problem is my ears. You give me gui and I simply have to listen to how am I sliding those controls and get it. VLC has 10 controls and however I slide I don't get it like in audacious. Now, I face 18 sliders for mpv equalizer. In the end I will have to keep on sliding and hoping I get close to ( 8 4 -3 -1 0 1 2 3 2 3 ) settings. This is not really something specific about mpv, solutions are here and you provide gui on top of all solutions here. Maybe I should find some mplayer and audacious board and enquire what frequencies are their ( 8 4 -3 -1 0 1 2 3 2 3 ) ?
Your quote:
2b is band name and 15 is its value. values are from 0-20
Set every band to 10 in "filters" would be like setting every band to 0 on audacious "equalizer". If I am right here I learned something new today. This is a good starter to set filter values all to 10 and go digit by digit up or down.
So to speak, ( 8 4 -3 -1 0 1 2 3 2 3 ) would be ( 18 14 7 9 10 11 12 13 12 13 ) would there be 10 bands only in mpv, but there are 18. This is already one half ot the problem solved for me here if I am right. If yes, than all those numbers in filters make sense to me after reading your last post. Now I can start with mpv filter's 18 bands all set to 10 and I should be on good starting point, called "flat" in vlc.
I am on square one again. I tried following setting and it is nowhere near "flat" setting. At least code is correct at this point.
set file="Robert Fairchild Jr. - As the Deer-kfyRB_GpHQY.mkv.mka"
set equalizer="--af=superequalizer=1b=10:2b=10:3b=10:4b=10:5b=10:6b=10:7b=10:8b=10:9b=10:10b=10:11b=10:12b=10:13b=10:14b=10:15b=10:16b=10:17b=10:18b=10"
mpv.exe %equalizer% %file%
If anyone has "flat" setting for command line for superequalizer please correct this setting:
--af=superequalizer=1b=10:2b=10:3b=10:4b=10:5b=10:6b=10:7b=10:8b=10:9b=10:10b=10:11b=10:12b=10:13b=10:14b=10:15b=10:16b=10:17b=10:18b=10
gains should be 1 for flat
Just checked this:
--af=superequalizer=1b=1:2b=1:3b=1:4b=1:5b=1:6b=1:7b=1:8b=1:9b=1:10b=1:11b=1:12b=1:13b=1:14b=1:15b=1:16b=1:17b=1:18b=1
These are flat settings.