<div dir="ltr">Getting same error even if linking with audio and video depay<div>error logs:</div><div><div><br></div><div>0:00:00.526193431  2163 0xb440e180 WARN         rtpjitterbuffer rtpjitterbuffer.c:185:rtp_jitter_buffer_set_clock_rate: Clock rate changed from 0 to 90000</div><div>0:00:00.552156505  2163 0xb440e230 WARN         rtpjitterbuffer rtpjitterbuffer.c:185:rtp_jitter_buffer_set_clock_rate: Clock rate changed from 0 to 44100</div><div>name of caps struct string: application/x-rtp </div><div>name of caps string: application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)42801e, sprop-parameter-sets=(str</div><div>ing)"Z0KAHpZWDY/yf/gACAAKhAAAD6QAA6mDgAAC3GAAFuNvxjg7QsXc\,aMqNSA\=\=", a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-charset=(string)UTF-8, ssrc=(uint)3625393740, clock-base=(uint)27</div><div>09244179, seqnum-base=(uint)46478, npt-start=(guint64)60293455191000, play-speed=(double)1, play-scale=(double)1 </div><div>name of caps struct string: application/x-rtp </div><div>name of caps string: application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)44100, encoding-name=(string)MPEG4-GENERIC, encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)15, m</div><div>ode=(string)AAC-hbr, config=(string)1210, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, profile=(string)1, a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-ch</div><div>arset=(string)UTF-8, ssrc=(uint)3051532542, clock-base=(uint)3346164277, seqnum-base=(uint)2401, npt-start=(guint64)60293455191000, play-speed=(double)1, play-scale=(double)1 </div><div>here .....2 </div><div>here .....1 </div><div>0:00:00.714840440  2163 0xb440e180 WARN                 basesrc gstbasesrc.c:2933:gst_base_src_loop:<udpsrc4> error: Internal data flow error.</div><div>0:00:00.733348867  2163 0xb440e180 WARN                 basesrc gstbasesrc.c:2933:gst_base_src_loop:<udpsrc4> error: streaming task paused, reason not-linked (-1)</div><div>^C</div></div><div><br></div><div><br><div>code snippet: </div></div><div><div>static void onPadAdded(GstElement *element, GstPad *pad, gpointer data)</div><div>{</div><div>#if 1</div><div>        GstCaps *caps;</div><div>        const char *name;</div><div>        char *capsName;</div><div>        caps = gst_pad_get_current_caps(pad);</div><div>        GstStructure *str = gst_caps_get_structure(caps, 0);</div><div>        name = gst_structure_get_name(str);</div><div>        g_print("name of caps struct string: %s \n", name);</div><div>        capsName = gst_caps_to_string(caps);</div><div>        g_print("name of caps string: %s \n", capsName);</div><div>#endif</div><div>        if (g_strrstr(capsName,"audio"))</div><div>        {</div><div>                g_print("here .....1 \n");</div><div>                GstPad *dynamic_pad = gst_element_get_static_pad(audioDepay, "sink");</div><div>                gst_pad_link(pad, dynamic_pad);</div><div>        }</div><div><br></div><div>        else if (g_strrstr(capsName, "video"))</div><div>        {</div><div>                g_print("here .....2 \n");</div><div>                GstPad *video_dynamic_pad= gst_element_get_static_pad(videoDepay, "sink");</div><div>                gst_pad_link(pad, video_dynamic_pad);</div><div>        }</div><div>        g_free(capsName);</div><div><br></div><div>}</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 10:30 AM, Tarun Tej K [via GStreamer-devel] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4681626&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        <div dir="auto">The pad gets created and that is what you see after the 'name of caps string' in your debug info.<div dir="auto"><br><div dir="auto"><span style="font-family:sans-serif">In the code snippet  you've linked audioQueue and videoQueue with the pads. Have you tried linking the respective pads with audioDepay and videoDepay directly without using the queues at all? Since you're not reading the audio and video into different sinks (audiosink and ximagesink), we don't need the queue anymore. Us</span></div><div dir="auto"><span style="font-family:sans-serif">e the pads of rtspsrc to link with the respective depayloders.</span><br></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Tarun</span></div><div dir="auto"><br><div dir="auto"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 25-Jan-2017 9:33 AM, "rajvik" <<a href="http:///user/SendEmail.jtp?type=node&node=4681625&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:<br type="attribution"></span><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="m_-2698758371948032478quote"><span class=""><div dir="ltr">When I try to get the name of the pad, it says EMPTY.<div>I do not know how do we find that a pad has been created or not.</div><div><br></div><div>Rajvi</div></div></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote"><div class="m_-2698758371948032478elided-text">On Tue, Jan 24, 2017 at 10:45 PM, Ian Davidson [via GStreamer-devel] <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=4681624&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div class="m_-2698758371948032478elided-text">

        I may be way off course here - but when you are notified that a pad has 
<br>been added, don't you want to find the name of the PAD, not the name of 
<br>the CAPS?
<br><br>(See 
<br><a href="https://gstreamer.freedesktop.org/documentation/application-development/basics/pads.html" rel="nofollow" link="external" target="_blank">https://gstreamer.freedesktop.<wbr>org/documentation/application-<wbr>development/basics/pads.html</a>)
<br><br>Ian
<br><br><br>On 24/01/2017 14:45, rajvik wrote:
<br>> SNIP SNIP
<br><div><div class="m_-2698758371948032478m_8956883991239427564h5"><div class="m_-2698758371948032478m_8956883991239427564m_624516158085767003shrinkable-quote"><div class="m_-2698758371948032478m_8956883991239427564shrinkable-quote"><div class="m_-2698758371948032478shrinkable-quote"><div class='shrinkable-quote'><br>> Any idea as to how to move forward with this?
<br>> Code snippet:
<br>>
<br>> GstElement *audioQueue, *videoQueue;
<br>> GstElement *source, *audio, *video, *convert, *pipeline, *audioDepay,
<br>>            *audioParse, *audioDecode, *audioConvert, *audioResample, 
<br>> *audioSink, *videoDepay, *videoParser, *videoDecode, *videoConvert, 
<br>> *videoScale, *videoSink;
<br>>
<br>> static void onPadAdded(GstElement *element, GstPad *pad, gpointer data)
<br>> {
<br>>         GstCaps *caps;
<br>>         const char *name;
<br>>         char *capsName;
<br>>         caps = gst_pad_get_current_caps(pad);
<br>>         GstStructure *str = gst_caps_get_structure(caps, 0);
<br>>         name = gst_structure_get_name(str);
<br>>         g_print("name of caps struct string: %s \n", name);
<br>>         capsName = gst_caps_to_string(caps);
<br>>         g_print("name of caps string: %s \n", capsName);
<br>>         if (g_strrstr(capsName,"audio"))
<br>>         {
<br>>                 GstPad *dynamic_pad = 
<br>> gst_element_get_static_pad(aud<wbr>ioQueue, "sink");
<br>>                 gst_pad_link(pad, dynamic_pad);
<br>>         }
<br>>
<br>>         else if (g_strrstr(capsName, "video"))
<br>>         {
<br>>                 GstPad *video_dynamic_pad = 
<br>> gst_element_get_static_pad(vid<wbr>eoQueue, "sink");
<br>>                 gst_pad_link(pad, video_dynamic_pad);
<br>>         }
<br>>         g_free(capsName);
<br>>
<br>>
</div></div></div></div></div></div><span>______________________________<wbr>_________________
</div>gstreamer-devel mailing list
<br><div class="m_-2698758371948032478quoted-text"><a href="http:///user/SendEmail.jtp?type=node&node=4681620&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div></span><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="m_-2698758371948032478quoted-text"><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span></div><a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681620.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Gstreamer-RTSP-s<wbr>rc-element-name-tp4681595p4681<wbr>620.html</a>
        </div><div class="m_-2698758371948032478quoted-text"><div class="m_-2698758371948032478m_8956883991239427564HOEnZb"><div class="m_-2698758371948032478m_8956883991239427564h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Gstreamer RTSP src element name, <a rel="nofollow" link="external" target="_top">click here</a>.<br>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></div></div></div></blockquote></div><br></div></div></div><div class="m_-2698758371948032478elided-text">


        
        
        
<br><span class=""><hr align="left" width="300">
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681624.html" rel="nofollow" link="external" target="_blank">Re: Gstreamer RTSP src element name</a><br>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="nofollow" link="external" target="_blank">GStreamer-devel mailing list archive</a> at Nabble.com.<br></span></div><br><span class="">______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="http:///user/SendEmail.jtp?type=node&node=4681625&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br></span></blockquote></div><br></div></div></div></div></div><span class="">
<br>______________________________<wbr>_________________
<br>gstreamer-devel mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4681625&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </span><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span class="">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span><a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681625.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Gstreamer-RTSP-<wbr>src-element-name-<wbr>tp4681595p4681625.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Gstreamer RTSP src element name, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681626.html">Re: Gstreamer RTSP src element name</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>