title: How to set ffmpeg for matplotlib in mac os x
body: <p>I want to animate some plots with matplotlib. The version I have is the Enthough Canopy distribution (Version: 1.1.0.1371), running in a mac os x 10.8 (Mountain Lion). I have used the FuncAnimation routine from the animation package of matplotlib. My problem comes saving the animation. I want to save in mp4 format:</p>
  
  <pre><code>anim.save('test.mp4',fps=30)
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>UserWarning: MovieWriter ffmpeg unavailable 
  warnings.warn("MovieWriter %s unavailable" % writer)
  </code></pre>
  
  <p>So I installed ffmpeg via Macports. But I am still having the same error. Do you know how to setup matplotlib in order to recognise ffmpeg? Do I have to change the matplotlibrc file?
  Thanks.</p>
  
  <p>EDIT: I have realized that I can manually put '/opt/local/bin' in the PYTHONPATH, but it does not change the PATH in Enthough Canopy. Do anyone know how to change the PATH in canopy?</p>