summaryrefslogtreecommitdiff
path: root/voctocore/videomix.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2014-07-30 14:30:38 +0200
committerMaZderMind <github@mazdermind.de>2014-07-30 14:30:38 +0200
commitfa48b7ea7600e7f912344a315e3c8a5d3c5cd4a4 (patch)
treed57d634ac2b698fc6e37fc46ef7b191d7c07629e /voctocore/videomix.py
parent422100a6e0ae05f0a6cf0225a36b179fc7225178 (diff)
replace bg-img with dynamic generated background
Diffstat (limited to 'voctocore/videomix.py')
-rw-r--r--voctocore/videomix.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/voctocore/videomix.py b/voctocore/videomix.py
index 6d3cca8..7fa392a 100644
--- a/voctocore/videomix.py
+++ b/voctocore/videomix.py
@@ -49,8 +49,14 @@ class Videomix:
videomixer name=livevideo ! autovideosink
input-selector name=liveaudio ! autoaudiosink
- filesrc location=quadmix-bg.png ! decodebin ! imagefreeze ! videomixer name=quadmix ! autovideosink
+ videotestsrc pattern="solid-color" foreground-color=0x808080 ! capsfilter name=filter ! videomixer name=quadmix ! autovideosink
""", False)
+
+ quadmixcaps = Gst.Caps.new_empty_simple('video/x-raw')
+ quadmixcaps.set_value('width', round(self.monitorSize[0]))
+ quadmixcaps.set_value('height', round(self.monitorSize[1]))
+ mixerbin.get_by_name('filter').set_property('caps', quadmixcaps)
+
mixerbin.set_name('mixerbin')
self.pipeline.add(mixerbin)
return mixerbin