How can I create a mosaic in Gstreamer? How can I set "sink_0::xpos=0 sink_0::ypos=0 sink_0::alpha=0" in Python?
Thiago Santos
thiagoss at osg.samsung.com
Wed Aug 5 07:45:40 PDT 2015
On 08/05/2015 07:46 AM, Giacomo D wrote:
> Thanks Thiago!!
>
> I tried it
>
> self.videotestsrc.link(self.camerafilter0)
> self.camerafilter0.link(self.videomixer.get_static_pad("sink_0")
>
> but I got
>
> "self.camerafilter0.link(self.videomixer.get_static_pad("sink_0"))
> TypeError: argument dest: Expected Gst.Element, but
> got__main__.__main__.GstVideoMIxer2Pad"
>
> Can someone help me??
Ah sorry. The error is pretty clear though, it expects an element but
you are providing a pad.
You can do:
self.camerafilter0.link(self.videomixer)
and it will try to find a pad for you, or you can explicitly say which
pads you want to use with:
self.camerafilter0.get_static_pad("src").link(self.videomixer.get_static_pad("sink_0"))
I'm assuming that camerafilter0 has a pad named 'src' to be linked.
> Thanks
> Giacomo
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-can-I-create-a-mosaic-in-Gstreamer-How-can-I-set-sink-0-xpos-0-sink-0-ypos-0-sink-0-alpha-0-in-P-tp4672943p4672983.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley
More information about the gstreamer-devel
mailing list