title: Python use ffmpeg not running when using os.system
body: <p>I have been trying to convert mp3 audio to wav file using subprocess. I have installed ffmpeg and libav using home-brew. However whenever I run my code.</p>
  
  <pre><code>import subprocess
  
  subprocess.call(['ffmpeg', '-i', 'input.mp3',
                 'output.wav'])
  </code></pre>
  
  <p>I get this error</p>
  
  <blockquote>
    <p>FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg': 'ffmpeg'</p>
  </blockquote>
  
  <ol>
  <li>I have tried to use pydub but always get ffprobe errors </li>
  <li>I have tried
      using os.system alternatively</li>
  </ol>
  
  <p>For reference I am using macOS Mojave, python 3.7</p>
  
  <p>Edit: </p>
  
  <p>Instead of using ['ffmpeg', '-i', 'input.mp3', 'output.wav']</p>
  
  <p>Use ['path/to/ffmpeg', '-i', 'input.mp3', 'output.wav']</p>
  
  <p>Ways to find the path to ffmpeg-----------------------</p>
  
  <p>Unix(Linux, Mac): find ffmpeg</p>
  
  <p>Windows: Where ffmpeg</p>