From c33502fad64d85984cdcc04525d41ab4ecb3759f Mon Sep 17 00:00:00 2001 From: j Date: Thu, 29 Jan 2026 11:54:51 +0100 Subject: [PATCH] don't let subtitles run close to the end of a segment --- render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render.py b/render.py index ef74e1b..5464b23 100644 --- a/render.py +++ b/render.py @@ -251,7 +251,8 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non else: vo_b = None - while int((vo['duration'] + sub_offset) * fps) > scene_duration: + min_end = 2 + while int((vo['duration'] + sub_offset + min_end) * fps) > scene_duration: if not vo_keys: vo = None break