Saturday, August 8, 2009

How to play mp3 from terminal

In one of my previous post I have written about how to play multimedia files using vlc and real player. But playing mp3 from terminal in ubuntu is also possible. To do that only one software needs to be installed called xmms2. To install xmms2 in ubuntu open terminal and type

$ sudo apt-get install xmms2

Once installed you can use xmms to play mp3s. Suppose the the file is in the directory /home/username/mp3 and the file name is example.mp3 To play the file you need to type

$ xmms2 play /home/username/mp3/example.mp3

To add a file to the playlist
$ xmms2 add

To view the playlist
$ xmms2 list

To play the playlist
$xmms2 play

To stop
$ xmms2 stop

Be sure that you have necessary codecs installed to play mp3 files. You can also install xmms2 and necessary codecs offline.

Related Posts:
1.
Linux partition form windows.
2.KDE 4.3
Share/Save/Bookmark

No comments: