formating

This commit is contained in:
j 2023-10-30 20:25:46 +01:00
parent 21d3225269
commit b09b7f14d4

View file

@ -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):