From 665a8de8f95395707e690e82403c8f14cab9e8f4 Mon Sep 17 00:00:00 2001 From: RapidStoned Date: Wed, 17 Aug 2022 20:57:13 +0200 Subject: [PATCH] Subscribe overlay to end of video Add subscribe overlay --- video_creation/final_video.py | 5 +++++ video_creation/subOverlay.py | 1 + 2 files changed, 6 insertions(+) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index c6295aa..ee106ee 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -108,6 +108,11 @@ def make_final_video( .crossfadeout(new_transition) ) + #Subscribe Overlay + if settings.config["settings"]["sub_overlay"]: + subOverlayClip = VideoFileClip((f"assets/subOverlay/subOverlayClip.mov"), has_mask=True) + subOverlayClip.set_pos('center') + # if os.path.exists("assets/mp3/posttext.mp3"): # image_clips.insert( # 0, diff --git a/video_creation/subOverlay.py b/video_creation/subOverlay.py index 39d99fd..d498267 100644 --- a/video_creation/subOverlay.py +++ b/video_creation/subOverlay.py @@ -2,6 +2,7 @@ import requests from os import makedirs from os import path + from fileinput import filename from utils.console import print_step, print_substep from utils import settings