title: How to use afconvert to convert from .caf to .mp3 format?
body: <p>I am using the afconvert command line utility to convert an audio file from <code>.caf</code> to <code>.mp3</code> format. I have used <code>afconvert</code>:</p>
  
  <pre><code>afconvert -f 'MPG3 ' -d '.mp3' -v input.caf output.mp3 
  </code></pre>
  
  <p>But this gives me the following error:</p>
  
  <pre><code>Input file: input.caf, 19008 frames
  Error: ExtAudioFileSetProperty ('cfmt') failed ('fmt?')
  </code></pre>
  
  <p>I have also tried the following:</p>
  
  <pre><code>afconvert -f 'MPG3 ' -d LEI32@44100 -v input.caf  output.mp3
  </code></pre>
  
  <p>This also gives me the error:</p>
  
  <pre><code>Input file: min.caf, 19008 frames
  Error: ExtAudioFileCreateWithURL failed ('fmt?')
  </code></pre>
  
  <p>I couldn't figure out why is this giving error.</p>
  
  <p>Can anybody guide me in solving this problem?</p>
  
  <p>Thanks in an advance.</p>