[英]Concat audio and video on fluent-ffmpeg
我尝试使用库 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);
在调用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);
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.