MOC, a powerful Console based Music Player

When you are working on low spec machines or really old computers, you always try to avoid using heavy applications. But sometimes even the most necessary ones consume a lot of resources. A few months ago, I was stuck with a really old desktop and had to go for some of the lowest resource consuming applications. MOC, Music on console, was my Music player alternative.

If you always avoid using console based applications, then you have probably never seen the power of ncurses. Ncurses is a great library which empowers a developer to build GUI-like applications in a terminal/console environment. We have already seen one such app before, finch, the terminal based brother of Pidgin, built using ncurses.

Install MOC

If you are an Ubuntu/Debian user, either click this link or just run this command in a terminal to install moc.

[shredder12]$ sudo apt-get install moc

I don't think the package is available in Fedora.

Once installed, run mocp in a terminal to start the player.

On the left side are the directory listings, press "a" to add a song to the playlist, press "A" to add a directory recursively to the playlist. For more such options press "h" for help.

As you can see now, this player provides you with most of the basic features one would expect in a decent GUI based player. So, if you are looking for a light-weight or a console based music player, MOC is your best bet.

5 Comments

Etescartz (not verified)
August 6th, 2010 05:40 pm
I enjoy playing music from the terminal. I tried a few other CLI music players besides MOC. I used "cmus" and "mp3blaster" but i found most interesting of all was the idea of behind "MPD server" with terminal clients like "ncmpcpp" or "pms" . Have i missed any. Please tell me, because I'm always on the lookout for trying new CLI apps.
August 8th, 2010 07:58 am

Hey, thanks for providing so many options. I don't think you are missing any, in my opinion. The number is more than I ever used. :)

cobra2 (not verified)
August 8th, 2010 06:19 am
Have you ever played with MPD(music player daemon)/MPC(music player client)? I use MPD with ncmpcpp, a ncurses based frontend for MPD.
August 8th, 2010 08:00 am

No, I have never actually used MPD with any client but I would definitely try it. Thanks for pointing it out.

Anon Linuxer (not verified)
August 10th, 2010 04:27 pm
According to my experience, MPD is slightly heavier in system resources than MOC with detached console (27% average CPU usage vs. 23%, on a Eee PC 701), though I never tried Gentoo way on them, i. e. trying to build from source with different optimization options. Also, from plentty of frontends for MPD, one can never find a perfect one - they are either pure graphical and CPU-hungry, or feature-lacking, or both. And the last but not the least, I could not finfigure out how to make MPD play WavPack, which is important for me.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Use syntax $$latex$$ to insert LaTeX formulas.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.