I am attempting to overlay another video on the current one but the bitrate always gets set to 72 kbps. I notice that I only get this with libx264 and libx265 but works with other encoders. The input videos are correct and have a total bitrate of about 8000.
new ffmpeg("./Temp/Downloaded-Vod.mp4")
.input("./Temp/RenderedChat.mp4")
.complexFilter([
'[0:v]scale=' + VodDimensionsX + ':' + VodDimensionsY + '[0scaled]',
'[1:v]scale=' + BoxDimensionsX + ':' + BoxDimensionsY + '[1scaled]',
'[0scaled]pad=' + String(VodDimensionsX + BoxDimensionsX) + ':' + VodDimensionsY + '[0padded]',
'[0padded][1scaled]overlay=shortest=1:x=' + VodDimensionsX + '[output]',
])
.outputOptions([
"-map 0:a",
"-map [output]"
])
.audioCodec("copy")
.videoCodec("libx264")
.videoBitrate(8000)
.outputFPS(FPS)
.output("FinishedVod.mp4")
.on("end", function() {
Completed = true
})
.on("progress", function(progress) {
console.log("Processing final video: " + Math.floor(progress.percent) + "% done")
})
.run()
question from:
https://stackoverflow.com/questions/66054979/setting-fluent-ffmpeg-video-bitrate-gives-72-kbps-instead-of-8000-kbps 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…