0
我在下面的代碼嘗試。誰能告訴我什麼是錯的代碼轉換視頻爲mp3 node.js
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 <-- the new file I want -->
.saveToFile('C:/Users/Public/Videos/Sample Videos/Wildlife.mp3');
C:\的NodeJS>節點test.js 錯誤發生了:產卵C:\的NodeJS \ ffmpeg的ENOENT
它的工作
嘗試! 謝謝。 –