title: Creating a thumbnail image from video by ffmpeg
body: <pre><code>$video_name    = $_FILES['video_file']['name'];
  
  $video_tmp_name    = $_FILES['video_file']['tmp_name'];
  
  $video_size    = $_FILES['video_file']['size'];
  // where ffmpeg is located  
  $ffmpeg = 'C:\\ffmpeg\bin\\ffmepg';  
  //video dir  
  $video = $video_tmp_name;  
  //where to save the image  
  $image = 'video/image.jpg';  
  //time to take screenshot at  
  $interval = 5;  
  //screenshot size  
  $size = '640x480';  
  //ffmpeg command  
  echo $cmd = $ffmpeg ."-i". $video ." -an -ss".$interval."  -s ".$size . "-vcodec mjpeg ".$image ." 2&gt;&amp;1";               
  shell_exec($cmd);
  </code></pre>
  
  <p>I write down that code. But it's not creating any thumbnail from video. I can't understand what's wrong is with this code.</p>