add extra room

This commit is contained in:
Mylloon 2024-10-16 01:08:17 +02:00
parent 21b39e80bf
commit ecb03ded2a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -153,7 +153,7 @@ app.whenReady().then(() => {
audioTracks: number[]
) => {
const audioBitrate = Math.ceil(
audioTracks.reduce((sum, current) => current + sum, 0)
audioTracks.reduce((sum, current) => current + sum, 50) // initial value > 0 for extra room
);
const videoBitrate = bitrate - audioBitrate;
let finalFile;