title: Converting Video to mp3 node.js
body: <p>I'm trying below code. can anyone tell me whats wrong in the code</p>
  
  <pre><code>     var ffmpeg = require('fluent-ffmpeg');
  
       var proc = new ffmpeg({ source: 'C:/Users/Public/Videos/Sample 
  
       Videos/Wildlife.wmv', nolog: true })
  
       proc.setFfmpegPath("C:\\nodejs\\ffmpeg")
  
  
       .toFormat('mp3')
  
       .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/Public/Videos/Sample Videos/Wildlife.mp3');
  </code></pre>
  
  <p>C:\nodejs>node test.js
  an error happened: spawn C:\nodejs\ffmpeg ENOENT</p>