LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-23-2019, 09:55 PM   #1
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo devuanstable;testing;ceres arch)
Posts: 206

Rep: Reputation: 64
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)
 
Old 06-24-2019, 04:15 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,259

Rep: Reputation: 204Reputation: 204Reputation: 204
alsamixer only manipulates what the hardware provides. If your hardware lacks equalization alsa can't add it.
 
Old 06-24-2019, 04:44 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,925
Blog Entries: 9

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Quote:
Originally Posted by RandomTroll View Post
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...
 
Old 06-25-2019, 01:48 AM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,259

Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by ondoho View Post
This totally isn't true.

Alsaequal exists
I just searched all of Slackware, found nothing that had both 'alsa' and 'equal'.
 
Old 06-25-2019, 02:22 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,925
Blog Entries: 9

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Quote:
Originally Posted by RandomTroll View Post
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.
 
Old 06-25-2019, 02:39 PM   #6
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,239

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
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
 
Old 06-25-2019, 03:48 PM   #7
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo devuanstable;testing;ceres arch)
Posts: 206

Original Poster
Rep: Reputation: 64
excuse my rambly superfluous information...

Quote:
Originally Posted by RandomTroll View Post
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 View Post
yah. apparently you didn't read the second half of my post.
nor mine well either.
Quote:
Originally Posted by ondoho View Post
about distros giving up on it.
well, good to know what i'm up against.
Quote:
Originally Posted by ondoho View Post
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 View Post
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 View Post
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 View Post
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.
 
Old 06-25-2019, 04:02 PM   #8
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo devuanstable;testing;ceres arch)
Posts: 206

Original Poster
Rep: Reputation: 64
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 ...
 
  


Reply

Tags
audio, equalizer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i ajdust my alsa mixer and every time i reboot my pc the mixer change what to do ? SlackwareMan Linux - Newbie 1 07-30-2004 01:39 AM
kppp 2.1.2 locks /dev/mixer and not able to use /dev/mixer askjha Red Hat 0 06-03-2004 10:59 AM
couldn't open mixer device /dev/sound/mixer wangcity Linux - General 8 02-01-2004 07:17 AM
Sound issue - "Couldn't open mixer device /dev/sound/mixer" zsejk Slackware 17 08-14-2003 10:20 PM
Couldn't open mixer device /dev/sound/mixer Dabria Linux - Hardware 2 07-29-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration