fixes desyncing issue

part of the credit goes to https://github.com/RebelPorp
pull/503/head
Jason 2 years ago
parent ef9ac9de17
commit 809bae88c9

@ -88,20 +88,21 @@ def make_final_video(number_of_clips, length):
.resize(width=W - 100)
.set_opacity(float(opacity)),
)
if os.path.exists("assets/mp3/posttext.mp3"):
image_clips.insert(
0,
ImageClip("assets/png/title.png")
.set_duration(audio_clips[0].duration + audio_clips[1].duration)
.set_position("center")
.resize(width=W - 100)
.set_opacity(float(opacity)),
)
else:
image_clips.insert(
#if os.path.exists("assets/mp3/posttext.mp3"):
# image_clips.insert(
# 0,
# ImageClip("assets/png/title.png")
# .set_duration(audio_clips[0].duration + audio_clips[1].duration)
# .set_position("center")
# .resize(width=W - 100)
# .set_opacity(float(opacity)),
# )
#else:
image_clips.insert(
0,
ImageClip("assets/temp/png/title.png")
.set_duration(audio_clips[0].duration)
#.set_duration(audixc vcco_clips[0].duration)
.set_position("center")
.resize(width=W - 100)
.set_opacity(float(opacity)),

Loading…
Cancel
Save