Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What are popular audio players for the command line?

  • How to play a single sound file?
  • Are there command line players that also index the music library like Banshee, Exaile, etc.?
share|improve this question

10 Answers 10

up vote 17 down vote accepted

I have compiled a complete list of commandline and other lightweight tools for linux. It also have list of music players too, check it out Command Line Tools.

Here is my personal favorite CMUS CMUS

share|improve this answer
    
Thanks, CMUS looks great, do u know also MOC and if why do you prefer CMUS? Cheers –  type May 22 '11 at 13:36
    
i never used MOC before, but it looks good I will check it out. –  Harbhag May 22 '11 at 13:39
1  
@Harbhag could you please add a picture and a small description (makes a 1st impresssion comparison with other answers easier) –  Rinzwind May 22 '11 at 13:49
1  
cheers, i guess screen/byobu is similar and available from the ubuntu repository if not installed by default yet --- interesting nevertheless: wikivs.com/wiki/Screen_vs_tmux / tmux.cvs.sourceforge.net/viewvc/tmux/tmux/FAQ –  type May 22 '11 at 14:05
1  
@type I've written a wiki page that explains how to add a little extra sugar to cmus so that it is automatically detachable/re-attachable: cmus.sourceforge.net/wiki/doku.php?id=detachable_cmus –  jmuc Dec 12 '11 at 13:56

mpg123 Install mpg123

mpg123 is a fast, free and console MPEG audio player software program for UNIX and Linux operating systems. mpg123 was ported to the Windows platform using Cygwin and MinGW. It supports MPEG-1 and -2, layers 1, 2 and 3. Its most common use is to play MP3 files. It also comes as a Winamp plugin.

im1

share|improve this answer
1  
Let's not forget ogg123! –  daithib8 May 25 '11 at 20:50
    
make it an answer! I get 1 to name so you can make that one :D –  Rinzwind May 25 '11 at 20:51
    
who ever it was: care to explain the downvote? –  Rinzwind Aug 3 '12 at 21:05

MOC Install moc

With MOC we have a powerful commandline player that is capable of browsing directories, generates playlist can can even be extended with plugins, e.g. for lastFM streams.

enter image description here

share|improve this answer
    
Thanks, also looks great, do u know also CMUS and if why do you prefer MOC? Cheers –  type May 22 '11 at 13:37
    
I found MOC a bit easier to handle, but that's maybe only my personal taste. –  Takkat May 22 '11 at 13:48
    
MOC's default config is more 'directory' oriented behavior as opposed to other players and launch daemon at first time, you can keep playing while quitting moc interface. –  Mait Dec 21 '13 at 4:57

mpd (daemon) + ncmpcpp (client/interface):

ncmpcpp

MPD is able to scan a directory and create a music library from its ID3 tags. Ncmpcpp has a library view which lets you add songs/albums/artists to the current playlist, search for tags and edit them in place.

share|improve this answer
    
Yes, I like mpd too... but let's be fair and point out tha's basically the vim of the music players. Can support just about anything on could think of, eg. in terms of controlls and multiple in- and outputs, varying freely in in format and transport as needed. But - right, when combined with ncmpcpp as you show, it more like gvim - in a pretty good way! –  Volker Siegel Jun 27 at 3:59

I like mplayer. It's very basic player, but sometimes I find it very useful (for example, I can specify it manually the audio driver I want it to use).

To play a file: mplayer file

As far as I know it cannot manage playlists.

share|improve this answer

ogg123 Install vorbis-tools (probably already installed)

ogg123 reads Ogg Vorbis audio files and decodes them to the devices specified on the command line. By default, ogg123 writes to the standard sound device, but output can be sent to any number of devices. Files can be read from the file system, or URLs can be streamed via HTTP. If a directory is given, all of the files in it or its subdirectories will be played.

im1

share|improve this answer

I've used mp3blaster in the past. It supports Playlists, Groups, Repeat, Search. Not many special features.

share|improve this answer
    
any features worth mentioning? –  type Jul 4 '11 at 21:44
1  
Playlists, Groups, Repeat, Search. Not many special features. –  RobinJ Jul 4 '11 at 21:48

VLC has a command line interface. MPlayer has also a command line interface, but I am not sure if it can play audio as well.

share|improve this answer
1  
VLS has a great ncurses interface cvlc -I ncurses musique/* –  meduz Oct 15 '13 at 8:22

mpg123 (http://www.mpg123.org/)

it's in the universe repositories, supports playlists and streaming from web-sources. When startet with -C you can also skip tracks in playlist etc. edit: not sure about ogg support.


music123

A command-line shell for programs like mpg123 and ogg123, music123 plays a variety of sound files using a mpg123/ogg123-like interface. With all the Recommends installed, music123 plays wav, mp3 and ogg files. By simply changing the config file, music123 can play any sound file you have a player for.

(If you install a recent version of vorbis-tools, music123 will handle Ogg Flac and Ogg Speex files too.)

share|improve this answer

cmus

Plugins Input: Ogg Vorbis, MP3, FLAC, Musepack, WavPack, WAV, AAC, MP4, and everything supported by ffmpeg (WMA, APE, MKA, TTA, SHN, ...) and libmodplug Output: PulseAudio, ALSA, OSS, RoarAudio, libao, aRts, Sun, and WaveOut (Windows)

http://cmus.sourceforge.net/#features

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.