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