From 3690337092ab95972a8e82ad51e7b0496cffa0da Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Sat, 12 Feb 2022 05:14:00 +0000 Subject: [PATCH] fixed FFmpeg memory exhaustion issue by limiting the queue size --- video2x/video2x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video2x/video2x.py b/video2x/video2x.py index 4c1b6a4..73b476c 100755 --- a/video2x/video2x.py +++ b/video2x/video2x.py @@ -27,7 +27,7 @@ __ __ _ _ ___ __ __ Name: Video2X Creator: K4YT3X Date Created: Feb 24, 2018 -Last Modified: February 8, 2022 +Last Modified: February 12, 2022 Editor: BrianPetkovsek Last Modified: June 17, 2019 @@ -145,7 +145,7 @@ class Video2X: ): # initialize values self.processor_processes = [] - self.processing_queue = multiprocessing.Queue() + self.processing_queue = multiprocessing.Queue(maxsize=processes * 10) processed_frames = multiprocessing.Manager().list([None] * total_frames) self.processed = multiprocessing.Value("I", 0)