mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
parent
b426023d51
commit
c01f0cf4b2
@ -46,6 +46,10 @@ export async function getSmartCutParams({ path, videoDuration, desiredCutFrom, s
|
||||
videoBitrate = stats.size / videoDuration;
|
||||
}
|
||||
|
||||
// to account for inaccuracies and quality loss
|
||||
// see discussion https://github.com/mifi/lossless-cut/issues/126#issuecomment-1602266688
|
||||
videoBitrate = Math.floor(videoBitrate * 1.2);
|
||||
|
||||
const { codec_name: videoCodec } = videoStream;
|
||||
if (videoCodec == null) throw new Error('Unable to determine codec for smart cut');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user