ArvinderKang.com header image 2

Installing command line MP3 player

June 28th, 2008 by { Arvinder Kang } · 2 Comments · Hacks

Mpg 123 Player

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

Tags: ·····

2 responses so far ↓

Leave a Comment