don't let subtitles run close to the end of a segment
This commit is contained in:
parent
364c22f676
commit
c33502fad6
1 changed files with 2 additions and 1 deletions
|
|
@ -251,7 +251,8 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
||||||
|
|
||||||
else:
|
else:
|
||||||
vo_b = None
|
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:
|
if not vo_keys:
|
||||||
vo = None
|
vo = None
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue