title: an error happened: spawn ENOENT, node.js & FFmpeg
body: <p>I am having a nightmare of a time trying figure this out. I asked a question about this yesterday but only got so far, long story short, I cannot for the life of me figure this out.</p>
  
  <p>All i want to do, is transcode a .avi file to a .flv file using FFmpeg in a node.js app, this works just using the command line for FFmpeg but not in the app, here's the code:</p>
  
  <pre><code>var ffmpeg = require('fluent-ffmpeg');
  
  //make sure you set the correct path to your video file
  var proc = new ffmpeg({ source: 'C:/Users/Jay/Documents/movie/drop.avi', nolog: true });
  
  //Set the path to where FFmpeg is installed
  proc.setFfmpegPath("C:\\Users\\Jay\\Documents\\FFMPEG\\bin");
  
  proc
  //set the size
  //.withSize('50%') &lt;-- error appears after this line
  
  // set fps
  //.withFps(24)
  
  // set output format to force
  //.toFormat('flv')
  
  // setup event handlers
  .on('end', function() {
      console.log('file has been converted successfully');
  })
  .on('error', function(err) {
      console.log('an error happened: ' + err.message);
  })
  // save to file &lt;-- the new file I want --&gt;
  .saveToFile('C:/Users/Jay/Documents/movie/drop.flv');
  </code></pre>
  
  <p>The error appears on the line specified above, it's not an error with red writing, but it simply says:</p>
  
  <pre><code>an error happened: spawn ENOENT
  </code></pre>
  
  <p>Has anyone come across this?</p>