Element.link

Links src to dest. The link must be from source to destination; the other direction will not be tried. The function looks for existing pads that aren't linked yet. It will request new pads if necessary. Such pads need to be released manually when unlinking. If multiple links are possible, only one is established.

Make sure you have added your elements to a bin or pipeline with gst.bin.Bin.add before trying to link them.

class Element
bool
link

Parameters

dest gst.element.Element

the #GstElement containing the destination pad.

Return Value

Type: bool

true if the elements could be linked, false otherwise.