summaryrefslogtreecommitdiff
path: root/voctocore
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
parent422100a6e0ae05f0a6cf0225a36b179fc7225178 (diff)
replace bg-img with dynamic generated background
Diffstat (limited to 'voctocore')
-rw-r--r--voctocore/quadmix-bg.pngbin336733 -> 0 bytes
-rw-r--r--voctocore/videomix.py8
2 files changed, 7 insertions, 1 deletions
diff --git a/voctocore/quadmix-bg.png b/voctocore/quadmix-bg.png
deleted file mode 100644
index 55ec3b5..0000000
--- a/voctocore/quadmix-bg.png
+++ /dev/null
Binary files differ
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