<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lindesk &#187; mpg321</title>
	<atom:link href="http://lindesk.com/tag/mpg321/feed/" rel="self" type="application/rss+xml" />
	<link>http://lindesk.com</link>
	<description>Linux - on the Desktop</description>
	<lastBuildDate>Tue, 23 Jun 2009 14:03:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mpg123/mpg321 &#8211; The Command Line MP3 Players</title>
		<link>http://lindesk.com/2008/02/mpg123mpg321-the-command-line-mp3-players/</link>
		<comments>http://lindesk.com/2008/02/mpg123mpg321-the-command-line-mp3-players/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 20:07:20 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Audio]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mpg123]]></category>
		<category><![CDATA[mpg321]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://lindesk.com/2008/02/mpg123mpg321-the-command-line-mp3-players/</guid>
		<description><![CDATA[
So far we looked at the GUI MP3 Players for linux &#8211; like Amarok, Exile, XMMS etc. Most linux users need only that &#8211; but there are some people who want a simpler system &#8211; command line players. The two top players in this area are mpg123 and mpg321.
mpg123
mpg123 is a fast, free, minimalist, console [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://lindesk.com/2008/02/mpg123mpg321-the-command-line-mp3-players/terminal/' rel='attachment wp-att-96' title='Terminal'><img src='http://lindesk.com/wp-content/uploads/2008/02/terminal.png' alt='Terminal' class="intro" align="right" /></a></p>
<p class="intro">So far we looked at the GUI MP3 Players for linux &#8211; like <a href="http://lindesk.com/2007/09/amarok-mp3-player/">Amarok</a>, <a href="http://lindesk.com/2008/01/exaile-music-player-for-gtk/">Exile</a>, <a href="http://lindesk.com/2007/09/xmms-x-multimedia-system/">XMMS</a> etc. Most linux users need only that &#8211; but there are some people who want a simpler system &#8211; command line players. The two top players in this area are mpg123 and mpg321.</p>
<h2>mpg123</h2>
<p>mpg123 is a fast, free, minimalist, console MPEG audio player software program for UNIX and Linux operating systems. The development on this project ceased for a long time &#8211; but now it has a new maintainer.</p>
<ul>
<li><a href="http://www.mpg123.de/">mpg123 Homepage</a></li>
<li><a href="http://en.wikipedia.org/wiki/Mpg123">Wikipedia Page</a></li>
</ul>
<h2>mpg321</h2>
<p>mpg321 is a clone of mpg123. </p>
<ul>
<li><a href="http://mpg321.sourceforge.net/">Homepage</a></li>
<li><a href="http://en.wikipedia.org/wiki/Mpg321">Wikipedia Page</a></li>
</ul>
<h3>Installation</h3>
<p>Most distros have mpg321 in their repositories(not all have mpg123) &#8211; so just log in as root and use these commands to install it&#8230;<br />
<code>yum install mpg321</code> &#8211; For RedHat, Fedora, CentOS etc.<br />
OR<br />
<code>apt-get install mpg321</code> &#8211; For Debian, Ubuntu, etc.</p>
<h3>Using mpg321</h3>
<p>Using mpg321 is straight forward. Since it has no GUI, just go to the folder with the song and just execute the command&#8230;</p>
<pre><code class="cli">mpg321 MP3_FILE_NAME</code></pre>
<p>If you want to play all the songs in a folder, you have to create a list of files in that folder. Then you have to specify this list as an argument for the mpg321 command. These commands can get the job done&#8230;</p>
<p>Create a list of all MP3 Files in the current folder&#8230;</p>
<pre><code class="cli">find . -name "*.mp3"|sed 's/\.\///;'|sort>List.lst</code></pre>
<p>Use this list as the play list for mpg321</p>
<pre><code class="cli">mpg123 --list List.lst</code></pre>
<h3>Why Use Command Line Players?</h3>
<p>If we have a number of shiny GUI players, why should one use a command line player? Unless you are an anti-GUI command line guru, chances are you don&#8217;t need it. But still, it has its uses.</p>
<p>For example, if you have to restart the X Server often for some reason, then mpg321 is the best player for you. All other player will stop playing when X server is down.</p>
<p>This actually happend to me &#8211; when I bought my <a href="http://blog.binnyva.com/2007/10/dual-monitors-the-realization-of-a-dream/">second LCD screen</a>, it took me some time to configure it. And that meant editing the <code>xorg.conf</code> file and restarting the X Server to see if it worked. At that time, I opened a virtual terminal(Ctrl+Alt+F1) and opened mpg321 with a bunch of MP3s in the list. It kept playing even if the X server is down. This is propably the reason that I was still sane after around six hours of XOrg configuration. <img src='http://lindesk.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2008/02/mpg123mpg321-the-command-line-mp3-players/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
