我试着用fluent-ffmpeg库连接音频和视频,但它不工作。有人能帮我吗?
var proc = ffmpeg(firstFile)
.input(secondFile)
.input(thirdFile)
.input("./musicas/1.wav")
//.input(...)
.on('end', function() {
console.log('files have been merged succesfully');
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
})
.mergeToFile(outPath);发布于 2021-03-27 01:14:19
在调用mergeToFile方法之后使用事件。
var proc = ffmpeg(firstFile)
.input(secondFile)
.input(thirdFile)
.input("./musicas/1.wav")
.mergeToFile(outPath);
.on('end', function() {
console.log('files have been merged succesfully');
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
})https://stackoverflow.com/questions/66821294
复制相似问题