From ff818836dd2221c544afe1fcc17369b17f90b0db Mon Sep 17 00:00:00 2001
From: tassaron
Date: Thu, 18 May 2017 19:14:27 -0400
Subject: added ability to use an mp4 as the background
might not be the best way to do this (dumping all the video frames to a temp location), but it works for clips of a few minutes or less
---
preview_thread.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
(limited to 'preview_thread.py')
diff --git a/preview_thread.py b/preview_thread.py
index 9dc7e4c..5bad653 100644
--- a/preview_thread.py
+++ b/preview_thread.py
@@ -43,8 +43,17 @@ class Worker(QtCore.QObject):
except Empty:
continue
+ bgImage = self.core.parseBaseImage(\
+ nextPreviewInformation["backgroundImage"],
+ preview=True
+ )
+ if bgImage == []:
+ bgImage = ''
+ else:
+ bgImage = bgImage[0]
+
im = self.core.drawBaseImage(
- nextPreviewInformation["backgroundImage"],
+ bgImage,
nextPreviewInformation["titleText"],
nextPreviewInformation["titleFont"],
nextPreviewInformation["fontSize"],
--
cgit v1.2.3
ody>
| Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|