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

MailingList SVR lists at svrinformatica.it
Mon May 25 23:59:31 CEST 2009


In data lunedì 25 maggio 2009 20:28:19, Tim-Philipp Müller ha scritto:
: > 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(....)

Yes works fine with gst.parse_launch

thanks
Nicola

> 
> Cheers
>  -Tim
> 
> 
> 
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090525/742145c3/attachment.htm>


More information about the gstreamer-devel mailing list