the spawn system call ends with error ENOENT if the program cannot be found. In this case, ffmpeg
is not found, so you have to tell it where it is:
proc = new ffmpeg({source:mp4})
.setFfmpegPath("wherever ffmpeg is installed ") <-- this is the new line
.toFormat('mp3')
.saveToFile(mp3, (stdout, stderr)->
return console.log stderr if err?
return console.log 'done'
)
More info is available in a related issue