From b09b7f14d4f8dd7d8b484297871e14d710a96477 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 30 Oct 2023 20:25:46 +0100 Subject: [PATCH] formating --- render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render.py b/render.py index db35c72..460206f 100644 --- a/render.py +++ b/render.py @@ -77,6 +77,7 @@ def compose(clips, target=150, base=1024, voice_over=None): vo2 = vo_keys.pop(chance(seq, len(vo_keys))) voice_overs.append(voice_over[vo1]) if voice_over[vo1]["duration"] + voice_over[vo2]["duration"] < target: + print("adding second vo") voice_overs.append(voice_over[vo2]) vo_min = sum([vo['duration'] for vo in voice_overs]) if vo_min > target: @@ -207,7 +208,7 @@ def compose(clips, target=150, base=1024, voice_over=None): 'duration': clip['duration'], 'src': foley, }) - print("scene duration %0.3f (target: %0.3f)" % (length, target)) + print("scene duration %0.3f (target: %0.3f, vo_min: %0.3f)" % (length, target, vo_min)) return scene def get_scene_duration(scene):