diff options
author | MaZderMind <peter@mazdermind.de> | 2014-08-14 12:59:56 +0200 |
---|---|---|
committer | MaZderMind <peter@mazdermind.de> | 2014-08-14 12:59:56 +0200 |
commit | 019aebc7c323f3b7d77aba74814b98cc6d18d0ea (patch) | |
tree | 3811c7f683e02fbbb72c74ae171a272b8d7a744c /voctocore/experiments/videodisplay.py | |
parent | ffa8be1c236bcdf1904915ecb77f38c42319edd8 (diff) |
switch to RGB feeding, maybe there's a FEFEFE-Bug in videomixer
Diffstat (limited to 'voctocore/experiments/videodisplay.py')
-rw-r--r-- | voctocore/experiments/videodisplay.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/voctocore/experiments/videodisplay.py b/voctocore/experiments/videodisplay.py index 57087da..57f8903 100644 --- a/voctocore/experiments/videodisplay.py +++ b/voctocore/experiments/videodisplay.py @@ -9,7 +9,6 @@ class VideomixerWithDisplay(Gst.Bin): self.secondsrc = Gst.ElementFactory.make('videotestsrc', None) self.mixer = Gst.ElementFactory.make('videomixer', None) self.ident = Gst.ElementFactory.make('identity', None) - self.conv = Gst.ElementFactory.make('videoconvert', None) self.q1 = Gst.ElementFactory.make('queue', None) self.q2 = Gst.ElementFactory.make('queue', None) self.display = Gst.ElementFactory.make('ximagesink', None) @@ -18,7 +17,6 @@ class VideomixerWithDisplay(Gst.Bin): self.add(self.secondsrc) self.add(self.mixer) self.add(self.ident) - self.add(self.conv) self.add(self.display) self.add(self.q1) self.add(self.q2) @@ -41,11 +39,10 @@ class VideomixerWithDisplay(Gst.Bin): self.q1.get_static_pad('src').link(self.firstpad) self.q2.get_static_pad('src').link(self.secondpad) - self.secondsrc.link_filtered(self.ident, Gst.Caps.from_string('video/x-raw,format=BGRA,width=400,height=400,framerate=25/1')) + self.secondsrc.link_filtered(self.ident, Gst.Caps.from_string('video/x-raw,width=400,height=400,framerate=25/1,format=RGB')) self.ident.link(self.q2) - self.mixer.link(self.conv) - self.conv.link(self.display) + self.mixer.link(self.display) # Add Ghost Pads self.add_pad( |