From 0d6e1238a7a563263b513bd614da313fccd0feab Mon Sep 17 00:00:00 2001 From: Vaughn Bosu <76852813+null3000@users.noreply.github.com> Date: Fri, 24 Jun 2022 18:32:16 -0700 Subject: [PATCH] Update final_video.py --- video_creation/final_video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 37b1ac2..9ecb4d1 100755 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -2,6 +2,7 @@ import json import os import time +import multiprocessing from os.path import exists from moviepy.editor import ( @@ -134,7 +135,7 @@ def make_final_video(number_of_clips, length): print_substep("the results folder didn't exist so I made it") os.mkdir("./results") - final.write_videofile("assets/temp/temp.mp4", fps=30, audio_codec="aac", audio_bitrate="192k") + final.write_videofile("assets/temp/temp.mp4", verbose=False, logger=None, threads=multiprocessing.cpu_count(), fps=30, audio_codec="aac", audio_bitrate="192k") ffmpeg_tools.ffmpeg_extract_subclip( "assets/temp/temp.mp4", 0, length, targetname=f"results/{filename}" )