title: How do I programmatically convert mp3 to an itunes-playable aac/m4a file?
body: <p>I've been looking for a way to convert an mp3 to aac programmatically or via the command line with no luck.  Ideally, I'd have a snippet of code that I could call from my rails app that converts an mp3 to an aac.  I installed ffmpeg and libfaac and was able to create an aac file with the following command:</p>
  
  <p><code>ffmpeg -i test.mp3 -acodec libfaac -ab 163840 dest.aac</code></p>
  
  <p>When i change the output file's name to dest.m4a, it doesn't play in iTunes.  </p>
  
  <p>Thanks!  </p>