Aw: Re: link demux

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Jun 26 12:45:35 PDT 2013


On Wed, 2013-06-26 at 21:37 +0200, "Simon Krütt" wrote:
>   
> I replaced the pad-names like see below. Now they should be right,
> butI'm still not able to link them

Did you read the section about 'dynamic pads' (not 'request pads') in
the documentation I linked?

Cheers
 -Tim

> 
>   sinkpad = gst_element_get_request_pad ( queue, "sink");
>   srcpad = gst_element_get_static_pad (demux, "video_%u");
>   if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK)
>     g_error ("Failed to link video queue to demux");
>   gst_object_unref (srcpad);
>  
> but thanks so far! ;)
> Gesendet: Mittwoch, 26. Juni 2013 um 21:17 Uhr
> Von: "Tim-Philipp Müller" <t.i.m at zen.co.uk>
> An: gstreamer-devel at lists.freedesktop.org
> Betreff: Re: link demux
> On Wed, 2013-06-26 at 20:52 +0200, "Simon Krütt" wrote:
> 
> Hi,
> 
> > can someone help me please to link my demuxer to another element.
> > so far I tried to link the pads like this:
> >
> > gst_bin_add_many (GST_BIN (pipeline), videosrc, demux, queue,
> > videoenc, rtppayload,
> > NULL);
> > sinkpad = gst_element_get_request_pad ( queue, "queue_sink");
> > srcpad = gst_element_get_static_pad (demux, "src");
> > if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK)
> > g_error ("Failed to link video queue to demux");
> > gst_object_unref (srcpad);
> >
> >
> > and I'm getting this error:
> >
> > (mp4test:32152): GStreamer-CRITICAL **: gst_pad_link_full: assertion
> > `GST_IS_PAD (srcpad)' failed
> > ** (mp4test:32152): ERROR **: Failed to link video queue to demux
> > Trace/breakpoint trap (core dumped)
> 
> It would be nice if you told us what demuxer this is exactly!
> 
> I think you need to read up on 'dynamic pads' - most demuxers have
> dynamic source pads which will only be created once data flow has
> started:
> 
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-pads.html#section-pads
> 
> Cheers
> -Tim
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list