<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Mick F</title><description>Notes for myself and fellow programmers, with a focus on iOS, Swift and web frontend development. Since 2009.</description><link>https://www.mickf.net/tech/</link><item><title>Converting .flac files to .mp3</title><link>https://www.mickf.net/tech/converting-flac-files-to-mp3/</link><guid isPermaLink="true">https://www.mickf.net/tech/converting-flac-files-to-mp3/</guid><description>How I managed to convert `.flac` files to `.mp3` files on Mac OS X.</description><pubDate>Sat, 09 Jan 2010 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A solution to convert &lt;code&gt;.flac&lt;/code&gt; files to &lt;code&gt;.mp3&lt;/code&gt; files from the command line:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;install &lt;code&gt;lame&lt;/code&gt; and &lt;code&gt;flac&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;move the &lt;code&gt;.flac&lt;/code&gt; files into one directory;&lt;/li&gt;
&lt;li&gt;from that directory, run the following bash script:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; file &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; *.flac&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  do&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; $(flac&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; -cd&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; lame&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; -h&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;${&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;flac&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}.mp3&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;done&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On Mac OS X, the most convenient options to install &lt;code&gt;lame&lt;/code&gt; and &lt;code&gt;flac&lt;/code&gt; are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;compiling from source to install &lt;a href=&quot;https://lame.sourceforge.io/&quot;&gt;lame&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;the &lt;a href=&quot;https://sourceforge.net/projects/flac/files/flac-darwin/&quot;&gt;Flac tools package&lt;/a&gt; to install &lt;code&gt;flac&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><category>Bash</category></item></channel></rss>