Revert "no need that much room now that we have exact audio bitrate"

we need

This reverts commit b391e05ed3.
This commit is contained in:
Mylloon 2024-09-18 19:02:16 +02:00
parent c22a9c295d
commit f2b04f0cea
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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