diff options
Diffstat (limited to 'voctocore')
-rw-r--r-- | voctocore/quadmix-bg.png | bin | 336733 -> 0 bytes | |||
-rw-r--r-- | voctocore/videomix.py | 8 |
2 files changed, 7 insertions, 1 deletions
diff --git a/voctocore/quadmix-bg.png b/voctocore/quadmix-bg.png Binary files differdeleted file mode 100644 index 55ec3b5..0000000 --- a/voctocore/quadmix-bg.png +++ /dev/null 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 |