Merge pull request #690 from null3000/MultiThreading

Multithreaded Processing
pull/731/head
Jason 3 years ago committed by GitHub
commit 03ab16eba8
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 (
@ -132,6 +133,7 @@ def make_final_video(number_of_clips:int, length:int):
audio_codec="aac",
audio_bitrate="192k",
verbose=False,
threads=multiprocessing.cpu_count(),
)
ffmpeg_tools.ffmpeg_extract_subclip(
"assets/temp/temp.mp4", 0, length, targetname=f"results/{filename}"

Loading…
Cancel
Save