formating
This commit is contained in:
parent
21d3225269
commit
b09b7f14d4
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue