|
|
@ -13,7 +13,7 @@ from utils.console import print_step
|
|
|
|
W, H = 1080, 1920
|
|
|
|
W, H = 1080, 1920
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_final_video(number_of_clips):
|
|
|
|
def make_final_video(number_of_clips, name):
|
|
|
|
print_step("Creating the final video...")
|
|
|
|
print_step("Creating the final video...")
|
|
|
|
VideoFileClip.reW = lambda clip: clip.resize(width=W)
|
|
|
|
VideoFileClip.reW = lambda clip: clip.resize(width=W)
|
|
|
|
VideoFileClip.reH = lambda clip: clip.resize(width=H)
|
|
|
|
VideoFileClip.reH = lambda clip: clip.resize(width=H)
|
|
|
@ -54,7 +54,7 @@ def make_final_video(number_of_clips):
|
|
|
|
image_concat.audio = audio_composite
|
|
|
|
image_concat.audio = audio_composite
|
|
|
|
final = CompositeVideoClip([background_clip, image_concat])
|
|
|
|
final = CompositeVideoClip([background_clip, image_concat])
|
|
|
|
final.write_videofile(
|
|
|
|
final.write_videofile(
|
|
|
|
"assets/final_video.mp4", fps=30, audio_codec="aac", audio_bitrate="192k"
|
|
|
|
"output/" + name + ".mp4", fps=30, audio_codec="aac", audio_bitrate="64k"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
for i in range(0, number_of_clips):
|
|
|
|
for i in range(0, number_of_clips):
|
|
|
|