let ffmpeg = require("fluent-ffmpeg")
ffmpeg.setFfmpegPath(pathToFfmpeg)
var command = ffmpeg(file)
command.on('end', function() {
return console.log("done");
});
command.on('error', function(err) {
return console.log(err);
});
command.on('progress', function(progress) {
console.log('Processing: ' + progress.percent + '% done');
});
command.save(output+filename+sel);
somehow it return
Processing: undefined% done
Processing: undefined% done
Processing: undefined% done
why ? i followed the fluent-ffmpeg docs