From 62d6e11506a68beec3e70aff9541affe6f51cb1d Mon Sep 17 00:00:00 2001 From: n00mkrad <61149547+n00mkrad@users.noreply.github.com> Date: Sat, 28 Jun 2025 22:38:59 +0200 Subject: [PATCH] Dedupe: Require at least 240 frames as input to consider disabling it based on percentage --- CodeLegacy/Magick/Dedupe.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeLegacy/Magick/Dedupe.cs b/CodeLegacy/Magick/Dedupe.cs index ddf5181..d11e612 100644 --- a/CodeLegacy/Magick/Dedupe.cs +++ b/CodeLegacy/Magick/Dedupe.cs @@ -309,7 +309,7 @@ namespace Flowframes.Magick Logger.Log($"Dedupe: Factor is 1, will not redupe; overriding factor to {frameCount}/{inputFrames.Count} = {Interpolate.currentSettings.interpFactor.ToString("0.######")}", true); } - if (keepPercentage > 85f) + if (inputFrames.Count > 240 && keepPercentage > 85f) { Logger.Log("Deduplication: Less than 15% duplicate frames detected; disabling for this video."); Interpolate.currentSettings.dedupe = false;