Revert "no need that much room now that we have exact audio bitrate"
we need
This reverts commit b391e05ed3
.
This commit is contained in:
parent
c22a9c295d
commit
f2b04f0cea
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue