mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 11:43:17 +01:00
parent
550c3d1a78
commit
3b823a2ba4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user