MOC (Music On Console), a music player for the terminal

about MOC

In the next article we are going to take a look at MOC (Music On Console). This is one application play music from terminal Gnu / Linux. This program is designed to be simple and robust enough to run smoothly and without significantly affecting other I / O operations.

MOC is a music player for command line terminal free and open source designed to be powerful and easy to use. With this software we can play files without creating a playlist, just select the desired audio file and start playing.

As for its operation, it will only be necessary to select a file from a directory using the menu similar to Midnight commander, and MOC will start playing all files in this directory, starting from the selected file. No need to create playlists like other players. However, if the user wants to combine some files from one or more directories in a playlist, he will also allow us to do so. The playlist will be remembered between runs, but it can also be saved as an m3u file and loaded whenever the user wants.

Even if we have the player running, if you need the console to do other things or close the terminal emulator, MOC allows us to continue listening to music. Only you will have to press the key q and the interface will disconnect leaving the server running. It can be reconnected later.

MOC interface

MOC works gracefully regardless of the system or I / O load because according to the development team, use the output buffer in a separate thread. Provides reproduction of gapless, because it links the next file to play while the current file is playing.

General characteristics of MOC

moc running

Some of the features that this player offers are:

  • Un simple equalizer.
  • A mixer that can be connected to an external mixer.
  • Theme options.
  • Customizable keys.
  • Support for internet broadcasts.
  • List of directory search and playback.
  • Categories JACK, ALSA, SNDIO and OSS output.
  • It's compatible with: MP3, Ogg Vorbis, FLAC, Musepack, Speex, WAVE, MOD, WavPack, AAC, SID, MIDI, MP4, Opus, WMA, APE, AC3, DTS and more formats archive.

These are just some of the features of MOC. They can consult all of them the project website.

Install MOC (Music On Console) in Ubuntu

Ubuntu users will be able to install MOC from the package manager. We will only have to open a terminal (Clrt + Atl + T) and write the following command to first update the list of available software:

sudo apt update

Then we can install MOC and MOC ffmpeg plugin typing in the same terminal:

MOC installation with APT

sudo apt install moc moc-ffmpeg-plugin

After successful installation of the program, we can start it by typing the command:

mockup

Sometimes an error may appear which will say something like:

error server volume MOC

Esto solved by changing the volume level to less than 100%.

turn off volume to more than 100%

Then there will only be restart terminal and rerun the program.

Basic use

We can use the keyboard to navigate to the directory where we have the music stored and press Enter to start playing a track. MOC will automatically play all tracks within that directory so the user doesn't have to create a playlist. Although we must not forget that we will have the possibility of combining music files from several directories in a single playlist, which we can save as an m3u file.

As long as we are using MOC, we can press the q key to return to our terminal window without turning off MOC, and when we want to return to the MOC interface, we will only have to write in the terminal (Ctrl + Alt + T):

mockup

Some keyboard shortcuts for MOC

MOC help

  • s → stop the music.
  • b → previous track.
  • n → next track.
  • q → hide the MOC interface.
  • Q → stop and exit MOC.

For more help on usage after running MOC, there will be nothing but press the 'h' key. For more information about this program, you can consult the project website.


2 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Daniel said

    Very good, I'm testing it right now. Thank you very much compadre. Greetings.

  2.   Davino sieger said

    Very good recommendation, it works excellent.