我已经成功创建了包含图像和音频的视频,但我已合并视频,但出现错误ffmpeg错误退出,代码为1:在过滤器Parsed_concat_0上找不到未标记输入板3的匹配流–
var mergedVideo = ffmpeg();
var videoNames = [finalVideoPath,__dirname + "/video/video.mp4"];
videoNames.forEach(function(videoName){
mergedVideo = mergedVideo.addInput(videoName);
});
mergedVideo.mergeToFile(margeVideoPath)
.on('error', function(err) {
console.log('Error ' + err.message);
})
.on('end', function() {
console.log('Finished!');
});