[gst-devel] Very simple rtsp pipeline exit with error: Could not find a compatible pad to link

Tim-Philipp Müller t.i.m at zen.co.uk
Mon May 25 20:28:19 CEST 2009


On Sat, 2009-05-23 at 09:00 +0200, MailingList SVR wrote:

> this pipeline works just fine so I decided to assemble it as python
> code, here is the relevant portion:
> 
> self.pipeline = gst.Pipeline("rtsp-pipeline")
> source=gst.element_factory_make("rtspsrc","rtsp-source")
> source.set_property("location","rtsp://<rtspip>")
> source.set_property("latency",100)
> destination=gst.element_factory_make("udpsink")
> destination.set_property("host","<destinationhost>")
> destination.set_property("port",5000)
> self.pipeline.add(source,destination)
> gst.element_link_many(source,destination)
>
> but this code does't work, there is an error in linking source with
> destination:
>
> gst.LinkError: failed to link rtsp-source with udpsink0

rtspsrc has 'dynamic pads' which will only appear once the data starts
flowing through the pipeline. You might find this helpful:

http://www.jonobacon.org/2006/11/03/gstreamer-dynamic-pads-explained/

(also the application development manual).

FWIW, there's also gst.parse_launch(....)

Cheers
 -Tim






More information about the gstreamer-devel mailing list