feat:修改逻辑

This commit is contained in:
fanxb 2022-12-04 21:34:51 +08:00
parent cf9f168bce
commit cfd7162a27

View File

@ -82,10 +82,7 @@ async function deal (basePath, maxBitRate = 2500, changeName = false, hardType)
} }
let is10Bit = res.streams.filter(item => item.bits_per_raw_sample === '10').length > 0; let is10Bit = res.streams.filter(item => item.bits_per_raw_sample === '10').length > 0;
let originBitRate = Math.round(parseInt(bitRate) / 1000); let originBitRate = Math.round(parseInt(bitRate) / 1000);
bitRate = originBitRate > maxBitRate * 2 ? maxBitRate : originBitRate / 2; bitRate = originBitRate > maxBitRate ? maxBitRate : originBitRate * 0.7;
if (bitRate < 1000) {
bitRate = originBitRate * 0.75;
}
let newName = null; let newName = null;
replaceTextArr.forEach(item => { replaceTextArr.forEach(item => {