<?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>Nicolás Brailovsky &#187; php</title>
	<atom:link href="http://nicolasb.com.ar/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://nicolasb.com.ar</link>
	<description>A modern blog</description>
	<lastBuildDate>Tue, 20 Dec 2011 09:00:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Splitting flac and ape files in Debian / Ubuntu</title>
		<link>http://nicolasb.com.ar/2008/10/splitting-flac-and-ape-files/</link>
		<comments>http://nicolasb.com.ar/2008/10/splitting-flac-and-ape-files/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 00:54:38 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/blog/?p=44</guid>
		<description><![CDATA[I keep forgetting this one, so I&#8217;ll keep it here. What to do when you get a cue file with a single huge flac file, or even worse, an ape file? With the right packages it&#8217;s an easy task (getting the packages right may be hard tough). There are three parts to this problem: getting [...]]]></description>
			<content:encoded><![CDATA[<p>I keep forgetting this one, so I&#8217;ll keep it here.</p>
<p>What to do when you get a <strong>cue</strong> file with a single huge <strong>flac</strong> file, or even worse, an <strong>ape</strong> file? With the right packages it&#8217;s an easy task (getting the packages right may be hard tough).</p>
<p>There are three parts to this problem: getting the ape file to a more user friendly format (flac), splitting it and then renaming the splitted files.</p>
<h3>Needed packages</h3>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http://members.iinet.net.au/~aidanjm/mac<span class="nu0">-3.99</span>-u4_b3-1_i386.deb &amp;amp;&amp;amp; \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw2">sudo</span> dpkg -i mac<span class="nu0">-3.99</span>-u4_b3-1_i386.deb &amp;amp;&amp;amp; \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw2">rm</span> -f mac<span class="nu0">-3.99</span>-u4_b3-1_i386.deb</div>
</li>
</ol>
</div>
<p align="right">Source: <a href="http://aidanjm.wordpress.com/2007/01/26/using-monkeys-audio-ape-files-in-ubuntu/">http://aidanjm.wordpress.com/2007/01/26/using-monkeys-audio-ape-files-in-ubuntu/</a></p>
<p>Now install cuetools:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"> &nbsp;<span class="kw2">sudo</span> apt-get <span class="kw2">install</span> cuetools</div>
</li>
</ol>
</div>
<h3>Splitting the file</h3>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"> &nbsp;cuebreakpoints *.cue|shnsplit *.ape -o flac</div>
</li>
</ol>
</div>
<h3>Renaming the splitted parts</h3>
<p>In the cue file there should be a list of the original file names. I hacked a script to parse &amp; rename the files from the previous step, you can get it here: <a href="/archivos/2008/10/cue-rename.php.gz">cue-rename</a></p>
<p>For this script to run you&#8217;ll need php-cli package. Just run it in the same folder the cue file is, as any other bash script. There&#8217;s a flag to get a preview instead of a complete rename; it&#8217;s somewhere in the file and I don&#8217;t have much plans to clean it up anytime soon. Drop me a line if you do.</p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2008/10/splitting-flac-and-ape-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

