From 12dda681148139f9eb3a27a0417f647b19ac492a Mon Sep 17 00:00:00 2001 From: RapidStoned Date: Mon, 22 Aug 2022 17:58:22 +0200 Subject: [PATCH] Update video.py --- utils/video.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/utils/video.py b/utils/video.py index 4ef4914..928a211 100644 --- a/utils/video.py +++ b/utils/video.py @@ -59,17 +59,3 @@ class Video: # Overlay the img clip on the first video clip self.video = CompositeVideoClip([self.video, img_clip]) return self.video - - def add_overlay(self): - # Get duration for the entire video to place the overlay at the correct time - video_duration = self.video.duration - - overlayName = settings.config["settings"]["sub_overlay_name"] - - subOverlayClip = VideoFileClip((f"assets/subOverlay/{overlayName}.mov"), has_mask=True) - subOverlayClip.set_pos('center') - - placeTime = math.floor(video_duration - subOverlayClip.duration) - 3 - - self.video = CompositeVideoClip([self.video, subOverlayClip.set_start(placeTime)]) - return self.video