|
|
@ -43,7 +43,7 @@ def make_final_video(number_of_clips, length):
|
|
|
|
# Gather all images
|
|
|
|
# Gather all images
|
|
|
|
image_clips = []
|
|
|
|
image_clips = []
|
|
|
|
for i in range(0, number_of_clips):
|
|
|
|
for i in range(0, number_of_clips):
|
|
|
|
if opacity is None or opacity >= 1: # opacity not set or is set to one OR MORE
|
|
|
|
if opacity is None or int(opacity) >= 1: # opacity not set or is set to one OR MORE
|
|
|
|
image_clips.append(
|
|
|
|
image_clips.append(
|
|
|
|
ImageClip(f"assets/temp/png/comment_{i}.png")
|
|
|
|
ImageClip(f"assets/temp/png/comment_{i}.png")
|
|
|
|
.set_duration(audio_clips[i + 1].duration)
|
|
|
|
.set_duration(audio_clips[i + 1].duration)
|
|
|
@ -58,7 +58,7 @@ def make_final_video(number_of_clips, length):
|
|
|
|
.resize(width=W - 100)
|
|
|
|
.resize(width=W - 100)
|
|
|
|
.set_opacity(float(opacity)),
|
|
|
|
.set_opacity(float(opacity)),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if opacity is None or opacity >= 1: # opacity not set or is set to one OR MORE
|
|
|
|
if opacity is None or int(opacity) >= 1: # opacity not set or is set to one OR MORE
|
|
|
|
image_clips.insert(
|
|
|
|
image_clips.insert(
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
ImageClip(f"assets/temp/png/title.png")
|
|
|
|
ImageClip(f"assets/temp/png/title.png")
|
|
|
|