You are not logged in.

#1 2014-07-02 20:16:01

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

MPLAYER - change equalizer on the fly without restarting

Hi,

As the arch-community is by far the most sympathetic and best around, I'm trying to find some wisdom here.
The problem is:
The mp3-player I wrote (whistle, can be found on the AUR), currently uses mpg123 as backend. The convenient part about this is that mpg123 has a built-in equalizer capable of changing the bass/mid/treb settings on the fly.

I now want to change the mpg123 backend to mplayer (mainly because of more supported formats than just MP3). There is an equalizer in mplayer, which can be configured either by changing the config OR adding -af equalizer=bla,bla,bla,... where the blas stand for values between -12 and 12. Unfortunately, I can't change these on the fly (during playback), but have to change it on the commandline again and restart the playback. This is very unconvenient in my case, because a working equalizer is very important to me (and some others).

I looked around, found alsaequal, which isn't quite what I need.

Does anyone have an idea? I would really appreciate it! smile

Thanks for your time! wink


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#2 2014-07-02 20:21:44

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: MPLAYER - change equalizer on the fly without restarting

As far as I know, I do not believe this exists. And, given mplayer's relative moldiness, I have a bet that is unlikely you will ever see such a feature implemented. However, the community fork of mplayer called mpv has far more active development. You might consider opening a feature request on their GitHub for an on-the-fly audio equalizer.

All the best,

-HG

Offline

#3 2014-07-02 20:33:06

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: MPLAYER - change equalizer on the fly without restarting

Thanks HG!

That's a pity ...

I opened a issue on the mpv github page, maybe someone thinks that it is worth implementing. I would love that feature smile


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#4 2014-07-03 20:33:08

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: MPLAYER - change equalizer on the fly without restarting

Just to close this topic:

I solved it by starting mplayer with the -idle and -slave switch and feeding commands through STDIN to it. (perlish: print $MPLAYER_IN "af equalizer=7:6:3:......\n"; )

That's the best way I could think of to get my 'remote-controlled-mplayer' wink


projects: whistle | bazinga
open minds, open sources, open future.

Offline

Board footer

Powered by FluxBB