Pad negotiation at udpsrc element

debruyn debruynels1 at gmail.com
Mon Nov 14 13:11:18 UTC 2016


So i have now replaced the tee element with rtpssrcdemux (As i believe the
camera muxes it together via ssrc) but seem to have problems connecting to
the queue elemets after it: 

*                     |  queue | rtph264depay | h264parse | queue        \
udpsrc | rtpssrcdemux <                                                                          
| mp4mux | filesink
                     | queue | rtpmpadepay | mpegaudioparse | queue /*

I am trying to link it  manually through the pads src_%u pad(of the demuxer)
and the sink pad(of the queue) like follows:
//* Link the elements created prior */
    GstPadTemplate *templateVTeePad;

    templateVTeePad =
gst_element_class_get_pad_template(GST_ELEMENT_GET_CLASS (mgstTee),
"src_%u");
    mpadVRecTee = gst_element_request_pad(mgstTee, templateVTeePad, NULL,
NULL);
    debug("Obtained request pad %s for %s viceo record tee branch",
gst_pad_get_name (mpadVRecTee),moProfileInstance->getCamLabel());
    mpadVRecPreQueue =
gst_element_get_static_pad(mgstRecVideoPreQueue,"sink");

    if (gst_pad_link (mpadVRecTee, mpadVRecPreQueue) != GST_PAD_LINK_OK )
    {
        debug ("tee could not be linked at %s video
queue",moProfileInstance->getCamLabel());
        return FALSE;
    }/

but i get the following errors: 
*(vsr:7691): GStreamer-CRITICAL **: gst_element_request_pad: assertion
'templ->presence == GST_PAD_REQUEST' failed

(vsr:7691): GStreamer-CRITICAL **: gst_object_get_name: assertion
'GST_IS_OBJECT (object)' failed
1479129666 DEBUG CamPipeline : Obtained request pad (null) for TestCam viceo
record tee branch

(vsr:7691): GStreamer-CRITICAL **: gst_pad_link_full: assertion 'GST_IS_PAD
(srcpad)' failed
*

Thanks for the help so far sebastian, i seem to be understanding this a bit
more
regards
DB



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pad-negotiation-at-udpsrc-element-tp4680664p4680686.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list