Update final_video.py

pull/690/head
Vaughn Bosu 2 years ago committed by GitHub
parent 0db05aa683
commit 0d6e1238a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}"
)

Loading…
Cancel
Save