LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What's needed next to get an alsa(mixer) equalizer? (https://www.linuxquestions.org/questions/linux-software-2/whats-needed-next-to-get-an-alsa-mixer-equalizer-4175656264/)

Siljrath 06-23-2019 09:55 PM

What's needed next to get an alsa(mixer) equalizer?
 
as per this closed thread https://bbs.archlinux.org/viewtopic.php?id=53139 what's needed next when encountering

Code:

alsamixer -D equal
ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL equal
cannot open mixer: No such file or directory
20190624 /usr/share/alsa %
alsamixer -D equalizer
ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL equalizer
cannot open mixer: No such file or directory
20190624 /usr/share/alsa %
alsamixer -D equalizerV
ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL equalizerV
cannot open mixer: No such file or directory

?
where to look to find what to add there?

(i installed alsaequal-0.7.1_2, from void's repos, and am using bedrock linux, so have access to other distros too, though this looked the most promising)

and side question... can this alsamixer based equalizer still work if one is using pulseaudio (like the alsamixer still works)?

(ps, hopefully i'll find out in the morning this is easy ~ this being a sleepy last thing before bed)

RandomTroll 06-24-2019 04:15 PM

alsamixer only manipulates what the hardware provides. If your hardware lacks equalization alsa can't add it.

ondoho 06-24-2019 04:44 PM

Quote:

Originally Posted by RandomTroll (Post 6008648)
alsamixer only manipulates what the hardware provides. If your hardware lacks equalization alsa can't add it.

This totally isn't true.

Alsaequal exists, it works independent of audio hardware, but it's hard to get it working, most distros have given up on providing precompiled packages, the world has moved on to poetteringware...

RandomTroll 06-25-2019 01:48 AM

Quote:

Originally Posted by ondoho (Post 6008658)
This totally isn't true.

Alsaequal exists

I just searched all of Slackware, found nothing that had both 'alsa' and 'equal'.

ondoho 06-25-2019 02:22 AM

Quote:

Originally Posted by RandomTroll (Post 6008750)
I just searched all of Slackware, found nothing that had both 'alsa' and 'equal'.

yah. apparently you didn't read the second half of my post. about distros giving up on it. which no doubt is the reason OP is trying to compile it manually.

Also, who's talking about Slackware only?
https://launchpad.net/ubuntu/+archiv...6.orig.tar.bz2
https://web.archive.org/web/20161105...alsaequal.html

But I will shut up now until OP returns.

@Siljrath, even if you don't use Archlinux, you might want to look at this PKGBUILD, it might provide useful clues.

teckk 06-25-2019 02:39 PM

You can equalize with a media player.

Boost the high frequency example:
Code:

mplayer -af equalizer=0:0:0:0:0:0:0:0:12:12 file.mp3
mpv −−af=equalizer=0:0:0:0:0:0:0:0:12:12 file.mp3

You could script that to do what you want.

ffmpeg attenuate 10 dB at 1000 Hz with a bandwidth of 200 Hz:
Code:

ffmpeg -i input.m4a -af "equalizer=f=1000:width_type=h:width=200:g=-10" bg1.m4a
ffmpeg attenuate 2 frequencies 1000 w 200 / 3000 w 200
Code:

ffmpeg -i input.m4a -af "equalizer=f=1000:width_type=h:width=200:g=5,equalizer=f=3000:width_type=h:width=200:g=-10" output.m4a
With sox
Change tempo, pitch, volume, equalize
Code:

sox in.wav out.wav speed .8 pitch 300 bass 5 treble 5 norm

Siljrath 06-25-2019 03:48 PM

excuse my rambly superfluous information...
 
Quote:

Originally Posted by RandomTroll (Post 6008750)
I just searched all of Slackware, found nothing that had both 'alsa' and 'equal'.

as mentioned in passing amidst my orginal post, i searched a great many more distro's available packages. voidilinux's alsaequal package looked most promising of all the results.

----------------------

Quote:

Originally Posted by ondoho (Post 6008761)
yah. apparently you didn't read the second half of my post.

nor mine well either.
Quote:

Originally Posted by ondoho (Post 6008761)
about distros giving up on it.

well, good to know what i'm up against.
Quote:

Originally Posted by ondoho (Post 6008761)
which no doubt is the reason OP is trying to compile it manually.

that's an option, but i'll try avoid if i can, preferring to get from package repositories.
Quote:

Originally Posted by ondoho (Post 6008761)
Also, who's talking about Slackware only?

RandomTroll, it seems. :3 me being on bedrocklinux, i can add a slackware stratum if needed... tho, seems not likely helpful for this issue, since, as RandomTroll by chance helpfully reports, slackware doesnt seem to have any alsa equalizer.
Quote:

Originally Posted by ondoho (Post 6008761)
https://launchpad.net/ubuntu/+archiv...6.orig.tar.bz2
https://web.archive.org/web/20161105...alsaequal.html

But I will shut up now until OP returns.

@Siljrath, even if you don't use Archlinux, you might want to look at this PKGBUILD, it might provide useful clues.

yup. thanks. thanks for the archived alsaequal page.

i do have an arch stratum in my bedrocklinux, so that's viable for me. though...
--- an aside ---
i'll need to re-check my aur search tool(yay) & wrapper script i used, as it doesnt return a result for that. ... ~ ah, yup, somehow i had it doing yay -Q, instead of something like yay -Ss -a. oh well. n_n such oversights are easily done when throwing together scripts to handle searching so many package managers in hasty late night sessions. n_n ~ well, that's that minor aside sorted. :) glad you mentioned it, ondoho, or i might not have caught that for months yet, continuing thinking there was so little in the AUR these days. lol.



--------------------


Quote:

Originally Posted by teckk (Post 6008994)
You can equalize with a media player.

Boost the high frequency example:
Code:

mplayer -af equalizer=0:0:0:0:0:0:0:0:12:12 file.mp3
mpv −−af=equalizer=0:0:0:0:0:0:0:0:12:12 file.mp3

You could script that to do what you want.

ffmpeg attenuate 10 dB at 1000 Hz with a bandwidth of 200 Hz:
Code:

ffmpeg -i input.m4a -af "equalizer=f=1000:width_type=h:width=200:g=-10" bg1.m4a
ffmpeg attenuate 2 frequencies 1000 w 200 / 3000 w 200
Code:

ffmpeg -i input.m4a -af "equalizer=f=1000:width_type=h:width=200:g=5,equalizer=f=3000:width_type=h:width=200:g=-10" output.m4a
With sox
Change tempo, pitch, volume, equalize
Code:

sox in.wav out.wav speed .8 pitch 300 bass 5 treble 5 norm

that's some handy info. not the realtime equalization like a volume control, that i seek, but useful none the less.
didnt know that was in mplayer/mpv. in some cases, that might cover it, if i know what i want it set to, and it does not change throughout the video (/ playlist).
and nice to get that tip on ffmpeg too... which i've only just days ago started using (to make this this clip and some resizing of others for space saving)
the sox tip is handy too, though, not mentioned yet, it's mostly for video i seek the (realtime) equalization.

----------------------------

now i'll see if i achieve success after another poke at this, armed with extra info, and a more fresh head (tho have wasted a lot of energy today futilely wrestling some issues in my emacs, so we'll see if there's still enough brain juice left tonight for this).

posting this now before making new attempts, keeping track of where i am in this. :) thanks again all.

Siljrath 06-25-2019 04:02 PM

next quick attempt
 
much same output with alsa-utils from pacman and the aur alsaequal

Code:

strat arch alsamixer -D equal
ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL equal
cannot open mixer: No such file or directory

"cannot open mixer: No such file or directory" does make me suspect there's a simple remedy here... just tell it some dir somewhere... ... somewhere ...


All times are GMT -5. The time now is 05:57 PM.