错误:ffmpeg以代码1退出:找不到选项帧速率。 我正在为图像添加音频,但出现错误,请帮助我
ffmpeg().addInput(__dirname + "/images/FullSizeRender-%1d.jpg")
.complexFilter([
// " -framerate 1",
{
filter: "zoompan",
options: {
x: "iw/2-(iw/zoom/2)",
y: "ih/2-(ih/zoom/2)",
z: "if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0040))",
d: "125",
s: "200x200"
}
}])
// here we will give the audio path
.addInput('audio path')
.addInputOption(["-framerate 1" ])
.addOutputOption(["-c:v libx264", "-r 30", "-pix_fmt yuv420p"])
.addOption("-crf", 26)
.format("mp4")
.videoBitrate("1024k")
.videoCodec("mpeg4")
.on("error", function (er) {
console.log("error occured: " + er.message, er);
})
.on("end", function (data) {
console.log("created video has been completed");
new ffmpeg({
source: finalVideoPath,
nolog: true,
})
.mergeAdd(__dirname + "/video/video.mp4")
.mergeAdd(__dirname + "/video/video2.mp4")
.mergeToFile(margeVideoPath, function (data) {
console.log("marge video", data);
});
setTimeout(() => {
//UploadVideoS3(margeVideoPath);
}, 10000);
}).save(finalVideoPath);
我正在添加音频和图像,但出现错误,请帮助我