• WANTED: Happy members who like to discuss audio and other topics related to our interest. Desire to learn and share knowledge of science required. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

EQ in LMS/pCP?

HLH

New Member
Joined
May 6, 2022
Messages
3
Likes
0
Solved! Thanks for your input.
The main problem was that LAME was not installed :facepalm: . After fixing that I was able to select the rule in the file section and it worked for my files played from the network. Had to add an "I" to make it work also for Deezer streams. 00:xx:xx:xx:xx:xx is a placeholder for your MAC address.

This did the job:
mp3 flc * 00:xx:xx:xx:xx:xx
# FIB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[lame] --mp3input --decode --silent $FILE$ - | [sox] -q -t wav - -b 24 -t flac - gain -1.0 equalizer 43 8.0q -8.5 treble -20 1k 0.7q

Pretty cool to have a player specific PEQ running on the server. I love it.
 
Last edited:
OP
H

hoverdonkey

Active Member
Joined
Oct 6, 2019
Messages
131
Likes
86
Solved! Thanks for your input.
The main problem was that LAME was not installed :facepalm: . After fixing that I was able to select the rule in the file section and it worked for my files played from the network. Had to add an "I" to make it work also for Deezer streams. 00:xx:xx:xx:xx:xx is a placeholder for your MAC address.

This did the job:
mp3 flc * 00:xx:xx:xx:xx:xx
# FIB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[lame] --mp3input --decode --silent $FILE$ - | [sox] -q -t wav - -b 24 -t flac - gain -1.0 equalizer 43 8.0q -8.5 treble -20 1k 0.7q

Pretty cool to have a player specific PEQ running on the server. I love it.

Glad you got there. Sorry I was unable to help, I don't really understand the config, I got lucky that it worked for me.

One which note, thankyou @somebodyelse for your explanation on "# FT:{START=--skip=%t}U:{END=--until=%v}", this was very helpful and much appreciated.
 

seu

Member
Joined
Apr 17, 2022
Messages
8
Likes
1
Hello again!
Someone who can help me with an EQ .conf file that I can use for spotify. Spotify uses ogg format, as I want to EQ for Stax SR-L700 (oratory1990)
What needs to be changed in the string below?

# EQ setting for Stax SR-L700 (oratory1990)
flc flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -b 24 -t flac - gain -5.5 equalizer 80 1.0q -2.5 bass +5.5 105 0.71q equalizer -5.5 1180 1.4q equalizer 2100 1.5q 2.5 equalizer 2800 3.0q -1.5 equalizer 3600 1.5q 3.0 equalizer 5750 3.3q -5.6 equalizer 9000 2.0q 2.0


Thanks in advance.
Stig Erik
 
Last edited:

seu

Member
Joined
Apr 17, 2022
Messages
8
Likes
1
Hello again!
Someone who can help me with an EQ .conf file that I can use for spotify. Spotify uses ogg format, as I want to EQ for Stax SR-L700 (oratory1990)
What needs to be changed in the string below?

# EQ setting for Stax SR-L700 (oratory1990)
flc flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -b 24 -t flac - gain -5.5 equalizer 80 1.0q -2.5 bass +5.5 105 0.71q equalizer -5.5 1180 1.4q equalizer 2100 1.5q 2.5 equalizer 2800 3.0q -1.5 equalizer 3600 1.5q 3.0 equalizer 5750 3.3q -5.6 equalizer 9000 2.0q 2.0


Thanks in advance.
Stig Erik
Have tried this but it does not work. Any suggestions?

[ INFO ] /usr/local/slimserver/custom-convert.conf​


# EQ setting for Stax SR-L700 (oratory1990)
spt flc * DC:XX:XX:XX:XX:XX
# RT:{START=--start-position %s}
[spotty] --enable-volume-normalisation -n Squeezebox -c "$CACHE$" --single-track $FILE$ --disable-discovery --bitrate 320 --disable-audio-cache $START$ | [sox] -q -t raw -b 16 -e signed -c 2 -r 44.1k -L - -t flac -C -0 - gain -5.5 equalizer 80 1.0q -2.5 bass +5.5 105 0.71q equalizer -5.5 1180 1.4q equalizer 2100 1.5q 2.5 equalizer 2800 3.0q -1.5 equalizer 3600 1.5q 3.0 equalizer 5750 3.3q -5.6 equalizer 9000 2.0q 2.0
 
Last edited:

Nybto

Active Member
Forum Donor
Joined
Nov 14, 2018
Messages
113
Likes
110
Location
Bonn, Germany
Very interesting! Could anyone comment on how many “equalizer” filters a pi4 can handle (coming from an RME ADI which is very limited)?
 

somebodyelse

Major Contributor
Joined
Dec 5, 2018
Messages
3,682
Likes
2,962
Very interesting! Could anyone comment on how many “equalizer” filters a pi4 can handle (coming from an RME ADI which is very limited)?
Probably more than you'll need. I don't remember the 10 band EQ from the alsaequal plugin being a problem in piCorePlayer even on a Pi Zero W which is many times slower than a Pi 4.
 

seu

Member
Joined
Apr 17, 2022
Messages
8
Likes
1
Have tried this but it does not work. Any suggestions?

[ INFO ] /usr/local/slimserver/custom-convert.conf​


# EQ setting for Stax SR-L700 (oratory1990)
spt flc * DC:XX:XX:XX:XX:XX
# RT:{START=--start-position %s}
[spotty] --enable-volume-normalisation -n Squeezebox -c "$CACHE$" --single-track $FILE$ --disable-discovery --bitrate 320 --disable-audio-cache $START$ | [sox] -q -t raw -b 16 -e signed -c 2 -r 44.1k -L - -t flac -C -0 - gain -5.5 equalizer 80 1.0q -2.5 bass +5.5 105 0.71q equalizer -5.5 1180 1.4q equalizer 2100 1.5q 2.5 equalizer 2800 3.0q -1.5 equalizer 3600 1.5q 3.0 equalizer 5750 3.3q -5.6 equalizer 9000 2.0q 2.0
FYI ! With indents on 2 lines as in link under, everything work ok. :cool:


# EQ setting for Stax SR-L700 (oratory1990)
spt flc * dc:a6:32:xx:1a:xx
........# RT:{START=--start-position %s}
........[spotty] --enable-volume-normalisation -n Squeezebox -c "$CACHE$" --single-track $FILE$ --disable-discovery --bitrate 320 --disable-audio-cache $START$ | [sox] -q -t raw -b 16 -e signed -c 2 -r 44.1k -L - -t flac -C 0 - gain -5.5 equalizer 80 1.0q -2.5 bass +5.5 105 0.71q equalizer -5.5 1180 1.4q equalizer 2100 1.5q 2.5 equalizer 2800 3.0q -1.5 equalizer 3600 1.5q 3.0 equalizer 5750 3.3q -5.6 equalizer 9000 2.0q 2.0
 
Last edited:

Nybto

Active Member
Forum Donor
Joined
Nov 14, 2018
Messages
113
Likes
110
Location
Bonn, Germany
Well done @seu!
I though that might help me aswell, but it didn't.

My file looks like this in the Text Editor:

# EQ setting for Senheiser 660 (oratory1990)
flc flc * *
........# FT:{START=--skip=%t}U:{END=--until=%v}
........[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -b 24 -t flac - gain -34.8 equalizer 35 1.5q 3.0 bass 5.5 100 0.71q equalizer 210 0.8q -2.2 equalizer 1350 1.8q -2.4 treble 4.0 1600 0.71q equalizer 3200 1.7q -1.9 equalizer 5520 3.8q -5.5 equalizer 8000 1.4q 3.0 treble -2.0 10000 0.71q

And when I show it in Pcp LMS settings I get this:
1660734982084.png


I set the gain very low so that I would know that it was engaged, but it doesn't appear to work. If you show your custom_convert file as above do you get the pre-amble that you can see here?
 

seu

Member
Joined
Apr 17, 2022
Messages
8
Likes
1
Well done @seu!
I though that might help me aswell, but it didn't.

My file looks like this in the Text Editor:

# EQ setting for Senheiser 660 (oratory1990)
flc flc * *
........# FT:{START=--skip=%t}U:{END=--until=%v}
........[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -b 24 -t flac - gain -34.8 equalizer 35 1.5q 3.0 bass 5.5 100 0.71q equalizer 210 0.8q -2.2 equalizer 1350 1.8q -2.4 treble 4.0 1600 0.71q equalizer 3200 1.7q -1.9 equalizer 5520 3.8q -5.5 equalizer 8000 1.4q 3.0 treble -2.0 10000 0.71q

And when I show it in Pcp LMS settings I get this:
View attachment 224872

I set the gain very low so that I would know that it was engaged, but it doesn't appear to work. If you show your custom_convert file as above do you get the pre-amble that you can see here?
Remove the dots (........) and make the same distance with the space button.
 

Attachments

  • LMS.jpg
    LMS.jpg
    443.2 KB · Views: 74
Last edited:

Nybto

Active Member
Forum Donor
Joined
Nov 14, 2018
Messages
113
Likes
110
Location
Bonn, Germany
Remove the dots (........) and make the same distance with the space button.
Thanks! Yes, I didn't use the dots in the file, just spaces. Clearly I have a problem with uploading the file though, because it seems to have picked up all that colour calibration data.. yours doesn't have any of that. I need to figure out what is going on there..
 

seu

Member
Joined
Apr 17, 2022
Messages
8
Likes
1
Thanks! Yes, I didn't use the dots in the file, just spaces. Clearly I have a problem with uploading the file though, because it seems to have picked up all that colour calibration data.. yours doesn't have any of that. I need to figure out what is going on there..
Try creating a new custom-convert.conf file, when I think about it, I think I've seen something similar to what you get in "Show LMS custom_convert file"
 
Last edited:

Nybto

Active Member
Forum Donor
Joined
Nov 14, 2018
Messages
113
Likes
110
Location
Bonn, Germany
first problem, I was using a .rtf file, that's where all the extra lines came from, it has loaded properly now that I have figured out how to convert to plain text. Still doesn't work though. Hmm.
 

Nybto

Active Member
Forum Donor
Joined
Nov 14, 2018
Messages
113
Likes
110
Location
Bonn, Germany
Okay, I think I am there. I had been experimenting on a standalone pi4, set up as LMS server and player, loading the .conf file to that. I finally tried uploading the .conf file (this one had the Hoverdonkey indents, not the seu indents) to my main server pi3B, with the pi4 just acting as player, identified with the mac address option in the .conf file, now it works!
 
  • Like
Reactions: seu

Miercoles2022

Member
Joined
Jan 8, 2022
Messages
19
Likes
27
Location
Maryland, USA
Is the SOX EQ described here implemented at the LMS-level, or at the squeezelite-level?
I’ve been using the ALSA EQ in the Tweaks section of piCorePlayer successfully for a while in separate pi players, but its values are not intuitive (0 dB EQ per band is at “66”), so the SOX EQ seems more direct.
 

Nybto

Active Member
Forum Donor
Joined
Nov 14, 2018
Messages
113
Likes
110
Location
Bonn, Germany
Is the SOX EQ described here implemented at the LMS-level, or at the squeezelite-level?
I’ve been using the ALSA EQ in the Tweaks section of piCorePlayer successfully for a while in separate pi players, but its values are not intuitive (0 dB EQ per band is at “66”), so the SOX EQ seems more direct.
LMS
 

mctron

Active Member
Joined
Apr 24, 2020
Messages
100
Likes
175
This is not pCP but still an easy LMS solution in case anyone is looking for one and is not averse to resampling -

Moode can do direct PEQ from the GUI but it doesn't apply to squeezelite, only AirPlay, Spotify, and MPD. But we can run the LMS Airplay Bridge plugin to stream LMS to Moode via AirPlay and take advantage of the built in PEQ. Worked fine for me on Pi 0 with no issues syncing or anything else.
 

MCH

Major Contributor
Joined
Apr 10, 2021
Messages
2,581
Likes
2,198
This is not pCP but still an easy LMS solution in case anyone is looking for one and is not averse to resampling -

Moode can do direct PEQ from the GUI but it doesn't apply to squeezelite, only AirPlay, Spotify, and MPD. But we can run the LMS Airplay Bridge plugin to stream LMS to Moode via AirPlay and take advantage of the built in PEQ. Worked fine for me on Pi 0 with no issues syncing or anything else.
That's how my headphones setup works :)
No issues at all. I use a zero 2w for moode, what gives you access to camilladsp if needed.
 

willefg

Member
Joined
Jan 14, 2023
Messages
11
Likes
0
Location
Netherlands
I hope it’s OK to add a similar question here.
I’ve been trying to get parametric EQ going on my setup. LMS server runs on a RPi3B with DietPi. My DIY headphone amp/DAC/streamer runs a RPi4 with DietPi as well.
My aim is to get parametric EQ for my HD 650 headphone for everything I stream from my local HDD (mainly flac and some wav and dsf) and when streaming Qobuz inside LMS.

I started my custom-convert.conf with flac based on what was shown in this thread:
Code:
Code:
# EQ setting for Sennheiser HD 650 (oratory1990)
flc flc * xx:xx:xx:xx:xx:xx
     # FT:{START=--skip=%t}U:{END=--until=%v}
     [flac] -dcs $START$ $END$ -- $FILES$ | [sox] -q -t WAV - -t flac -C 0 - gain -19.3 equalizer 20 1.1q +4 equalizer 97 0.7q -2.5 bass +5.5 105 0.71q equalizer 215 1.1q -1.8 equalizer 1300 1.5q -1.5 treble +3 2000 0.71q equalizer 2700 3q -1.3 equalizer 3300 2.7q -3.3 equalizer 5350 3q -2.5 treble -3 11000 0.71q

I added an extra 10dB gain attenuation to be able to hear a difference; there’s none with these settings when playing a flac file from the server. The logs show a syntax error after startup:
Code:
Log:
Slim::Player::TranscodingHelper::_getCapabilities (197) Capabilities for flc-flc-*-XX:XX:XX:XX:XX:XX: syntax error in FT:{START=--skip=%t}U:{END=--until=%v}

When streaming, the logs do show the custom-convert.conf settings being enabled, but are later ‘rejected’ ‘because no available stream mode supported: I,F
I must be doing something wrong with these streaming modes, but I don’t seem to be able to deduct that from the SoX documentation linked in this thread before.

Any help to get me on the right track is much appreciate!
 
Top Bottom