1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 11:43:17 +01:00

multiply estimated bitrate by 8

fixes #1778
#126
This commit is contained in:
Mikael Finstad 2023-11-15 16:42:23 +09:00
parent 550c3d1a78
commit 3b823a2ba4
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -43,7 +43,7 @@ export async function getSmartCutParams({ path, videoDuration, desiredCutFrom, s
if (Number.isNaN(videoBitrate)) {
console.warn('Unable to detect input bitrate');
const stats = await stat(path);
videoBitrate = stats.size / videoDuration;
videoBitrate = (stats.size * 8) / videoDuration;
}
// to account for inaccuracies and quality loss