Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Console music player with equalizer
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Wed Dec 26, 2007 10:26 pm    Post subject: Console music player with equalizer Reply with quote

What is a good console music player that has an equalizer? I like moc but it doesn't have an equalizer.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Wed Dec 26, 2007 11:14 pm    Post subject: Reply with quote

That's a hard one... there seem to be hardly any players with equalizer built in.

Know of 2 graphical ones: amarok and bmpx. Well, also there is MoreAmp but it's not in portage.

For console, there is 'mpg123 -R' that allows you to type equalizer commands,
but mpg123 is hardly a general purpose player given that it only plays mp3s...
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Thu Dec 27, 2007 12:22 am    Post subject: Reply with quote

I use Audacious and it's pretty great but for my other boxes without X I'm looking for something. I have music files like .mp3, .flac, etc. too so I need support for most of those. Something like moc with an equalizer would be cool. Or if there's just a global equalizer for my entire system instead of just on the media player, that would be okay too.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Dec 27, 2007 12:40 am    Post subject: Reply with quote

Hey, how about mplayer? It supports lots of audio formats, and I just found out it has a 10-band equalizer.
You have to supply it on command line when you play a file, don't think you can tweak it interactively from the console -- is that good enough?
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Thu Dec 27, 2007 1:15 am    Post subject: Reply with quote

It's good enough if I can load a .m3u playlist and can set the equalizer settings before I start my music. Do you know what the command to load a .m3u playlist and set the equalizer is?
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Dec 27, 2007 1:23 am    Post subject: Reply with quote

Not tested (I don't have mplayer installed on this system yet):

Code:

mplayer -playlist file.m3u -af equalizer=7:8:5:0:0:0:-2:-2:-2


The example equalizer syntax is taken from http://www.linuxjournal.com/article/9787
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Thu Dec 27, 2007 2:13 am    Post subject: Reply with quote

Okay, I got the equalizer working, but the frequency ranges are too sporadic/low range so I can't set it correctly as opposed to, for example, the Audacious equalizer. Is there any other alternative for an equalizer? That's just my main concern. Otherwise as long as it can play a .m3u playlist else it doesn't matter except I need a decent equalizer...if there's a console equalizer that globally edits all the sounds playing from the same machine, that's okay too.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Dec 27, 2007 7:20 am    Post subject: Reply with quote

pulseaudio sound server will probably add equalizer support one of these days http://www.pulseaudio.org/ticket/174, but it doesn't exist yet.

If you're expecting something as fancy as the 31-band audacious equalizer plugin but with a console interface, you'll need to go with something capable of high-end linux audio processing and just use it to play files. I doubt there will be playlist support, so you'll have to do some scripting to interpret your playlist. ecasound with one of the LADSPA equalizer plugins should do the trick.
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Thu Dec 27, 2007 6:51 pm    Post subject: Reply with quote

Well it doesn't really have to be fancy...I tried tweaking the equalizer in gmplayer (with the GUI) so it was easier, but the frequencies are just terrible, like I said, as opposed to such as the ones in Audacious which is also 10-band, but the frequencies are much different. (60, 170, 310, 600, 1k, 3k, 6k, 12k, 14k, and 16k instead of mplayer's crappy 31.25, 62.50, 125, 250, 500, 1k, 2k, 4k, 8k, and 16k.) I was fine with using mplayer until I found out how bad the frequencies were.

Thanks for the suggestions so far and I'll try your latest one and report back.



On a side note...I have never used anything like ecasound or LADSPA before...and I might need some help with that :?
I don't really mind if it can't load a playlist anymore but as long as it can play songs randomly from a directory continuously, that's fine too, as long as it has that capability.

So I've narrowed it down to only two requests...that it can play songs from a directory (where there's also directories within directories) at random on a loop (it can repeat duplicate songs, as long as it's always random) and a decent equalizer.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Dec 27, 2007 9:06 pm    Post subject: Reply with quote

Hey here's another idea --
since you don't like the frequency bands mplayer uses, how about modifying them?

It looks pretty simple :)
In mplayer/libaf/af_equalizer.c there is a line
Code:

#define CF      {31.25,62.5,125,250,500,1000,2000,4000,8000,16000}


try changing the numbers to match the center frequencies of the bands in the audacious equalizer that you like.
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Thu Dec 27, 2007 9:15 pm    Post subject: Reply with quote

Wow, do you think that will really work?! I'm going to try now!


Errr...I can't find mplayer/libaf/af_equalizer.c :oops: slocate can't find it either (just did updatedb now)
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Dec 27, 2007 10:10 pm    Post subject: Reply with quote

Oops, I meant that you need to compile a custom version, not that you can tweak files in an already installed mplayer.

Here's more details since my last post was too brief.


  • unpack the mplayer source code from the tarball (should still be in /usr/portage/distfiles, unless you've recently cleared out your downloads)
  • go to libaf subdirectory inside the unpacked mplayer-<version> source code directory
  • modify the file af_equalizer.c as suggested
  • go back to top dir of mplayer source and run './configure ; make'
  • test the mplayer binary you just built to see if you like it './mplayer -af equalizer blah blah '


After this test, decide whether you want to make a custom version of the ebuild to make a proper gentoo package out of it and install it on your systems. I can give directions on that if you are interested but have never done a private overlay before.
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Thu Dec 27, 2007 10:33 pm    Post subject: Reply with quote

Eh...it still sounds horrible...I even tried changing the #define G_MAX to +20 and the min to -20 (because that's the maxes for Audacious) and ./configure and make it, but that still doesn't work (after changing the #define CF as well). I think it might have something to do with the software filters or something (the rest of those random settings and numbers in the af_equalizer.c file below the settings I just edited)
:(
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Fri Dec 28, 2007 7:23 pm    Post subject: Reply with quote

Rats. Back to going with the heavy hitters like ecasound...
Back to top
View user's profile Send private message
Malvineous
Apprentice
Apprentice


Joined: 20 Oct 2006
Posts: 281
Location: Brisbane, Australia

PostPosted: Fri Dec 28, 2007 11:36 pm    Post subject: Reply with quote

I've been using LADSPA plugins to do system-wide equalising for years now, they work really well. You just set up another ALSA device as an equaliser, then point your default device to that and all ALSA programs then become equalised (except 32-bit Flash running under 64-bit Firefox, as per my recent post in this forum.)

Unfortunately dmix needs to be connected to a hardware card, so you can't dmix all your streams together and then equalise them once, you need to equalise each stream and then mix them all together, but that should only result in a relatively minor performance hit.

I was thinking about documenting the process for this on the Gentoo Wiki, but I wasn't sure if anyone would find it useful - perhaps I will now.
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Sat Dec 29, 2007 1:25 am    Post subject: Reply with quote

Malvineous wrote:
I've been using LADSPA plugins to do system-wide equalising for years now, they work really well. You just set up another ALSA device as an equaliser, then point your default device to that and all ALSA programs then become equalised (except 32-bit Flash running under 64-bit Firefox, as per my recent post in this forum.)

Unfortunately dmix needs to be connected to a hardware card, so you can't dmix all your streams together and then equalise them once, you need to equalise each stream and then mix them all together, but that should only result in a relatively minor performance hit.

I was thinking about documenting the process for this on the Gentoo Wiki, but I wasn't sure if anyone would find it useful - perhaps I will now.


Wow, that would be great...I have no clue on how to go about doing this, but I'm not on any tight schedule so if you're really going to document it, I'd be glad to wait for it to be published
Back to top
View user's profile Send private message
Malvineous
Apprentice
Apprentice


Joined: 20 Oct 2006
Posts: 281
Location: Brisbane, Australia

PostPosted: Sat Dec 29, 2007 1:53 am    Post subject: Reply with quote

Well it's not overly complicated and I'm in a documentative mood, so see how you go with this:

http://gentoo-wiki.com/HOWTO_Set_up_a_system-wide_equaliser_with_ALSA_and_LADSPA

Let me know how it works out - I've always found ALSA to be one big headache (they seem to enjoy making error messages as cryptic as possible, and the more crashes the better) so I hope it works for you!
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Sat Dec 29, 2007 2:09 am    Post subject: Reply with quote

Wow, thanks!

But how come it doesn't work with v1.3.2? Why only 1.4?
The latest version in Portage is 1.3.2 I think
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Sat Dec 29, 2007 2:10 am    Post subject: Reply with quote

Try unmasking the ~ARCH version of Audacious:
Code:
# ls /usr/portage/*/audacious
audacious-1.3.2.ebuild  audacious-1.4.4.ebuild  files     metadata.xml
audacious-1.4.3.ebuild  ChangeLog               Manifest
Code:
# paludis --query audacious 2>/dev/null
* media-sound/audacious
    gentoo:                  1.3.2 1.4.3 1.4.4* {:0}
    Homepage:                http://audacious-media-player.org/
    Description:             Audacious Player - Your music, your way, no exceptions
    Relevant USE flags:      -chardet dbus -libsamplerate nls

_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
Malvineous
Apprentice
Apprentice


Joined: 20 Oct 2006
Posts: 281
Location: Brisbane, Australia

PostPosted: Sat Dec 29, 2007 2:16 am    Post subject: Reply with quote

orangecakez wrote:
But how come it doesn't work with v1.3.2? Why only 1.4?
The latest version in Portage is 1.3.2 I think

I'm not sure, when I tried it with v1.3 the 20kHz slider adjusted the overall volume, and the other sliders did nothing at all. I also couldn't route v1.3's output via the final ALSA EQ, so I had to edit the ALSA config by hand and use mplayer to test it - very tedious.

At any rate upgrading to Audacious v1.4 as Kenji suggested is a big improvement and well worth it!
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Sat Dec 29, 2007 2:20 am    Post subject: Reply with quote

Oooh, another opportunity to plug Project OCP :mrgreen:

http://stian.lunafish.org/ocp/

If the port ever gets completed it will be the best console player as it was for DOS, but it still has a ways to go...
I'm not sure if he's ported the equalizer code over yet 'tho... but if he has, that'd be the easiest way I know of.

Alas it's just one guy at the moment, and the DOS code was pretty messy. I don't think any of the original sceners (Pascal, kb etc.) are involved, so it could be a while :(
Back to top
View user's profile Send private message
Malvineous
Apprentice
Apprentice


Joined: 20 Oct 2006
Posts: 281
Location: Brisbane, Australia

PostPosted: Sat Dec 29, 2007 2:42 am    Post subject: Reply with quote

Oh wow that's nice...ah, nostalgia :-)
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Sat Dec 29, 2007 2:45 am    Post subject: Reply with quote

Okay, I've gotten Audacious 1.4.4, and I am adjusting the LADSPA.
But I don't have a /etc/asound.conf or ~/.asoundrc. What should I do?

http://gentoo-wiki.com/HOWTO_Set_up_a_system-wide_equaliser_with_ALSA_and_LADSPA
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Sat Dec 29, 2007 2:53 am    Post subject: Reply with quote

That command was only to show the versions of it.

If you're using Portage on x86:
Code:
# echo 'media-sound/audacious ~x86' >> /etc/portage/package.keywords
For Paludis:
Code:
# echo 'media-sound/audacious ~x86' >> /etc/portage/keywords.conf

_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Sat Dec 29, 2007 2:59 am    Post subject: Reply with quote

Kenji Miyamoto wrote:
That command was only to show the versions of it.

If you're using Portage on x86:
Code:
# echo 'media-sound/audacious ~x86' >> /etc/portage/package.keywords
For Paludis:
Code:
# echo 'media-sound/audacious ~x86' >> /etc/portage/keywords.conf


Yes, I got that. Thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum