From f4b38e0039097667754713f48f2b4ec263fc0f62 Mon Sep 17 00:00:00 2001 From: Chev <11602755+chev2@users.noreply.github.com> Date: Wed, 30 Sep 2020 21:34:44 -0700 Subject: [PATCH] Remove bad quality video effect --- ShitpostGenerator.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ShitpostGenerator.py b/ShitpostGenerator.py index a83cc0e..4e301ca 100644 --- a/ShitpostGenerator.py +++ b/ShitpostGenerator.py @@ -77,10 +77,6 @@ def ShuffleVideo(clip): #take a clip, split it into multiple parts, shuffle thos return finalClip -def BadQuality(clip): - w, h = clip.size - return clip.resize((rng.randint(32, w), rng.randint(32, h))).resize((w, h)) - videoEffects = [ lambda v: fx.speedx.speedx(v, rng.uniform(0.7, 3)), #speed up/slow down lambda v: fx.mirror_x.mirror_x(v), #mirror on the x axis @@ -89,8 +85,7 @@ videoEffects = [ lambda v: RepeatVideo(v), #repeat the video multiple times lambda v: ShuffleVideo(v), #shuffle up parts of the video for a glitch-like effect lambda v: ContinuousFlipVideo(v), #flip the video on the x and y axis multiple times - lambda v: fx.lum_contrast.lum_contrast(v, lum=0, contrast=rng.uniform(0.3, 2)), #change contrast - lambda v: BadQuality(v) + lambda v: fx.lum_contrast.lum_contrast(v, lum=0, contrast=rng.uniform(0.3, 2)) #change contrast ] videoObjects = []