Update final_video.py

This commit is contained in:
Vaughn Bosu authored and GitHub committed 2022-06-24 18:32:16 -07:00
1 parent 0db05aa683
commit 0d6e1238a7
1 file changed
+2 -1
+2 -1
View File
@@ -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}"
)