From b592f09ac552af10c25e722bffe61ef4cd700ff9 Mon Sep 17 00:00:00 2001 From: Jacob Chambers Date: Sat, 4 Jun 2022 01:12:24 +0100 Subject: [PATCH] Customised path for loops --- video_creation/final_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index e1f71ff..6eabff1 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -13,7 +13,7 @@ from utils.console import print_step 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...") VideoFileClip.reW = lambda clip: clip.resize(width=W) VideoFileClip.reH = lambda clip: clip.resize(width=H) @@ -54,7 +54,7 @@ def make_final_video(number_of_clips): image_concat.audio = audio_composite final = CompositeVideoClip([background_clip, image_concat]) 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):