title: FFMPEG works in command line but not in exec(), it returns 127
body: <p>The command is</p>
  
  <pre><code>ffmpeg -i path/to/video.avi path/to/video.mpg
  </code></pre>
  
  <p>and it works fine from the command line. However, when I call it with PHPs <code>exec()</code>, the return value is 127, it doesn't seem to detect FFMPEG. What am I doing wrong?  I'm in localhost and the safe mode is off, but I'm new to both FFMPEG and <code>exec()</code>, so it may be a noob mistake. Thanks in advance.</p>