From 22d88fec3317ae59ee51ec4ebc706140fd2218bb Mon Sep 17 00:00:00 2001 From: Zen Date: Sun, 6 Dec 2020 02:59:22 +0200 Subject: [PATCH] removed segment reduction on windows --- Chunks/chunk_queue.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Chunks/chunk_queue.py b/Chunks/chunk_queue.py index 47bd695..e4297b9 100644 --- a/Chunks/chunk_queue.py +++ b/Chunks/chunk_queue.py @@ -84,14 +84,6 @@ def create_encoding_queue(project: Project, split_locations: List[int]) -> List[ return chunk_queue -def reduce_segments(scenes: List[int]) -> List[int]: - """Windows terminal can't handle more than ~400 segments in length.""" - count = len(scenes) - interval = int(count / 400 + (count % 400 > 0)) - scenes = scenes[::interval] - return scenes - - def create_video_queue_hybrid(project: Project, split_locations: List[int]) -> List[Chunk]: """ Create list of chunks using hybrid segment-select approach @@ -108,10 +100,6 @@ def create_video_queue_hybrid(project: Project, split_locations: List[int]) -> L segments_list = list(zip(splits, splits[1:])) to_split = [x for x in keyframes if x in splits] - - if os.name == 'nt': - to_split = reduce_segments(to_split) - segments = [] # Make segments