
mpg123 is a real time MPEG 1.0/2.0/2.5 audio player for layers 1,2 and 3.
I was playing with Ruby scripts and needed a command line mp3 player which was not a resource hog.
Steps I took for my OS X (Should work on Linux/Unix box):
Download the latest version from the website.
Untar the archive
tar -xvf mpg123-1.4.3.tar
Compile and install the player
./configure --prefix=/usr/local/mpg123
make
make install
Add the path to .bash_profile
echo 'export PATH=/usr/local/mpg123/bin:$PATH' >> ~/.bash_profile
Load the new path
source ~/.bash_profile
Enjoy playing music from command-line!
mpg123 ~/Music/Bagho_Bagh_Gippy_Grewal.mp3
Pingback: Jukebox in a single line | ArvinderKang.com
Exactly what I needed! Thanks!