<?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>Brett Hutley's Blog &#187; conversion</title>
	<atom:link href="http://www.bretthutley.com/tag/conversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bretthutley.com</link>
	<description>Home on the Digital Range</description>
	<lastBuildDate>Wed, 08 Sep 2010 19:52:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Converting WMA files to MP3</title>
		<link>http://www.bretthutley.com/2009/09/04/convert-wma-files-to-mp3/</link>
		<comments>http://www.bretthutley.com/2009/09/04/convert-wma-files-to-mp3/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 13:17:12 +0000</pubDate>
		<dc:creator>brett</dc:creator>
				<category><![CDATA[Useful]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[sox]]></category>
		<category><![CDATA[wma]]></category>

		<guid isPermaLink="false">http://www.bretthutley.com/?p=198</guid>
		<description><![CDATA[I recently needed to convert a bunch of WMA files to MP3 on my macbook. The easiest way to do it was to open up a terminal window, change directory to the directory with the files, and then use mplayer to convert each file to a WAV, and then sox to convert the file to [...]


Related posts:<ol><li><a href='http://www.bretthutley.com/2007/11/29/using-gpg-to-encrypt-files-on-a-web-server/' rel='bookmark' title='Permanent Link: Using gpg to encrypt files on a web server'>Using gpg to encrypt files on a web server</a></li><li><a href='http://www.bretthutley.com/2009/11/17/emacs-and-rails/' rel='bookmark' title='Permanent Link: Emacs and Ruby on Rails'>Emacs and Ruby on Rails</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I recently needed to convert a bunch of WMA files to MP3 on my macbook. The easiest way to do it was to open up a terminal window, change directory to the directory with the files, and then use mplayer to convert each file to a WAV, and then sox to convert the file to an MP3. The command line I used is described below:</p>
<p><span id="more-198"></span></p>
<p><pre class="bash">&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> *.wma ; <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #007800;">MN=</span>`<span style="color: #c20cb9; font-weight: bold;">basename</span> <span style="color: #ff0000;">&quot;$i&quot;</span> .wma`.mp3
  mplayer -vo null -vc null -af <span style="color: #007800;">resample=</span><span style="color: #000000;">44100</span> -ao pcm:waveheader <span style="color: #ff0000;">&quot;$i&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">sox</span> audiodump.wav <span style="color: #ff0000;">&quot;${MN}&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">rm</span> audiodump.wav
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;</pre>
</p>
<p>I probably can just output straight to MP3 from mplayer, but I couldn't be bothered reading through the mplayer man page to work out how to do it!</p>


<p>Related posts:<ol><li><a href='http://www.bretthutley.com/2007/11/29/using-gpg-to-encrypt-files-on-a-web-server/' rel='bookmark' title='Permanent Link: Using gpg to encrypt files on a web server'>Using gpg to encrypt files on a web server</a></li><li><a href='http://www.bretthutley.com/2009/11/17/emacs-and-rails/' rel='bookmark' title='Permanent Link: Emacs and Ruby on Rails'>Emacs and Ruby on Rails</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bretthutley.com/2009/09/04/convert-wma-files-to-mp3/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
