aligh gap with frames
This commit is contained in:
parent
5567aa5560
commit
7fd38a091a
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,6 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
||||||
scene_duration = int(get_scene_duration(scene) * fps)
|
scene_duration = int(get_scene_duration(scene) * fps)
|
||||||
voice_overs = []
|
voice_overs = []
|
||||||
sub_offset = 0
|
sub_offset = 0
|
||||||
vo_min = 0
|
|
||||||
subs = []
|
subs = []
|
||||||
print("--")
|
print("--")
|
||||||
print("Voice Over:")
|
print("Voice Over:")
|
||||||
|
|
@ -221,6 +220,7 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
||||||
gap = (5 * fps + random_int(seq, 10 * fps)) / fps
|
gap = (5 * fps + random_int(seq, 10 * fps)) / fps
|
||||||
else:
|
else:
|
||||||
gap = (2 * fps + random_int(seq, 5 * fps)) / fps
|
gap = (2 * fps + random_int(seq, 5 * fps)) / fps
|
||||||
|
gap = format_duration(gps, fps)
|
||||||
if int((sub_offset + gap)* fps) > scene_duration:
|
if int((sub_offset + gap)* fps) > scene_duration:
|
||||||
gap = format_duration((scene_duration - int(sub_offset * fps)) / fps, fps)
|
gap = format_duration((scene_duration - int(sub_offset * fps)) / fps, fps)
|
||||||
scene['audio-center']['A1'].append({
|
scene['audio-center']['A1'].append({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue