title: Find the correct FFmpeg path in php
body: <p>I am using FFmpeg with PHP on CentOS server.
  the php code is </p>
  
  <pre><code>$thumbnail = $this-&gt;generateRandomString(25);
  $ffmpeg = "/usr/bin/man"; // or /usr/share/ffmpeg {not working}
  $videoFile = $_FILES['file']['tmp_name'];
  $imageFile = "uploads/images/video_thumbnail/$thumbnail.jpg";
  $size = '340x250';
  $getFrom = 10;
  $cmd = "$ffmpeg -i $videoFile -an -ss $getFrom -s $size $imageFile";
  shell_exec($cmd);
  </code></pre>
  
  <p>When running command <code>$whereis FFmpeg</code></p>
  
  <p>output is : <code>ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz</code></p>
  
  <p>So what's the correct path.</p>