From c66f9bb251900d1c16ff28f0cc5286836d6033db Mon Sep 17 00:00:00 2001 From: j Date: Thu, 15 Jan 2026 16:41:29 +0000 Subject: [PATCH] trim --- render.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/render.py b/render.py index 5b92c8e..b0f7b7d 100644 --- a/render.py +++ b/render.py @@ -811,6 +811,10 @@ def generate_clips(options): clip[type_] = target durations.append(e.files.filter(selected=True)[0].duration) clip["duration"] = min(durations) + # trim to a multiple of the output fps + d1 = int(clip["duration"] * 24) / 24 + if d1 != clip["duration"]: + clip["duration"] = d1 if not clip["duration"]: print('!!', durations, clip) continue