no need that much room now that we have exact audio bitrate
Some checks failed
Upload release / build (push) Has been cancelled

This commit is contained in:
Mylloon 2024-09-18 01:20:22 +02:00
parent a74bb33967
commit b391e05ed3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -120,7 +120,7 @@ const main = async () => {
// Compress video if needed
if (newFile.size > maxSizeDiscord) {
const targetSize = maxSizeDiscord - 2; // keep some room
const targetSize = maxSizeDiscord - 1; // keep some room
// https://trac.ffmpeg.org/wiki/Encode/H.264#twopass
const bitrate = Math.floor((targetSize * 8388.608) / newFile.duration);