no need that much room now that we have exact audio bitrate
Some checks failed
Upload release / build (push) Has been cancelled
Some checks failed
Upload release / build (push) Has been cancelled
This commit is contained in:
parent
a74bb33967
commit
b391e05ed3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue