Hi Thomas, <br><br>Even though it is too late to suggest anything but to help others, here are some things:<br><br>1. On UDPSRC u need to set the caps as a property.<br>2. In the code u request a pad then link it before u request another<br>
3. You need not to request source pad, you will get a call back in that you check the direction of PAD and link it to the next bin you want to link.<br><br>Please correct me if i am wrong.<br>As well apologies for replying late, but was stuck up with some things.<br>
<br>Thanks and Regards<br>Manish<br><br><br><div class="gmail_quote">On Fri, Jun 27, 2008 at 5:34 AM, Thomas Winkler &lt;<a href="mailto:wi-tom@gmx.de">wi-tom@gmx.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks to all who helped to solve my problem.<br>
<br>
Now I have a Receiver and a Sender which works fine.<br>
<br>
I&#39;ve attached my sample-application for Sender and Receiver.<br>
<br>
PS: My problem was, that I&#39;ve forgotten to create a capsfilter on my<br>
Server-Side and I&#39;ve exchanged the pad_requests<br>
<br>
From:<br>
ps-&gt;send_rtp_src0 = gst_element_get_static_pad(rtpbin, &quot;send_rtp_src_0&quot;);<br>
ps-&gt;send_rtp_sink0 = gst_element_get_request_pad(rtpbin, &quot;send_rtp_sink_0&quot;);<br>
<br>
To:<br>
ps-&gt;send_rtp_sink0 = gst_element_get_request_pad(rtpbin, &quot;send_rtp_sink_0&quot;);<br>
ps-&gt;send_rtp_src0 = gst_element_get_static_pad(rtpbin, &quot;send_rtp_src_0&quot;);<br>
<br>
because in the Reference it&#39;s described that the &quot;send_rtp_src_%d&quot; pad is<br>
automatically created if a pad_request to &quot;send_rtp_sink_%d&quot; is called.<br>
<br>
Thanks to all people who helped.<br>
<br>
For all people who are looking for a rtp pipeline for gst-launch, I&#39;ve<br>
attached a gstrtp_pipe file which includes sender and receiver<br>
pipeline-command.<br>
<div class="Ih2E3d"><br>
Greetings,<br>
Thomas<br>
<br>
&gt; -----Ursprüngliche Nachricht-----<br>
&gt; Von: <a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net">gstreamer-devel-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:gstreamer-">gstreamer-</a><br>
</div>&gt; <a href="mailto:devel-bounces@lists.sourceforge.net">devel-bounces@lists.sourceforge.net</a>] Im Auftrag von Thomas Winkler<br>
&gt; Gesendet: Freitag, 27. Juni 2008 10:46<br>
<div><div></div><div class="Wj3C7c">&gt; An: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; Betreff: Re: [gst-devel] How to specify type of sink or src pad in<br>
&gt; gstrtpbin<br>
&gt;<br>
&gt; Hi,<br>
&gt; I&#39;ve added my little (dirty) test-application.<br>
&gt; Sender: Sender.cpp, CRtpSender.cpp, CRtpSender.h<br>
&gt; Receiver: Receiver.cpp, CRtpReceiver.cpp, CRtpReceiver.h<br>
&gt;<br>
&gt; Here&#39;s a sample of my Signalimplementation for my Sender:<br>
&gt;<br>
&gt; Signal connect:<br>
&gt; g_signal_connect (m_gstrtpbin, &quot;pad-added&quot;, G_CALLBACK (cb_new_pad),<br>
&gt; NULL);<br>
&gt;<br>
&gt; Method:<br>
&gt; void CRtpSender::cb_new_pad(GstElement* element, GstPad* pad, gpointer<br>
&gt; data)<br>
&gt; {<br>
&gt; &nbsp; &nbsp; &nbsp; gchar* name;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; name = gst_pad_get_name(pad);<br>
&gt; &nbsp; &nbsp; &nbsp; g_print(&quot;A new pad %s was created\n&quot;, name);<br>
&gt; &nbsp; &nbsp; &nbsp; g_free(name);<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; GstPad* rtpudpsinkSrc = gst_element_get_static_pad(m_udpsink_rtp,<br>
&gt; &quot;src&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; gst_pad_link(rtpudpsinkSrc, pad);<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; But I never get this signal called (have a look into the source)<br>
&gt; I don&#39;t know what&#39;s wrong in my code...<br>
&gt;<br>
&gt; Greetings,<br>
&gt; Thomas<br>
&gt;<br>
&gt;<br>
&gt; &gt; -----Ursprüngliche Nachricht-----<br>
&gt; &gt; Von: <a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net">gstreamer-devel-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:gstreamer-">gstreamer-</a><br>
&gt; &gt; <a href="mailto:devel-bounces@lists.sourceforge.net">devel-bounces@lists.sourceforge.net</a>] Im Auftrag von Sreejesh<br>
&gt; &gt; Gesendet: Freitag, 27. Juni 2008 07:37<br>
&gt; &gt; An: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; &gt; Betreff: Re: [gst-devel] How to specify type of sink or src pad in<br>
&gt; &gt; gstrtpbin<br>
&gt; &gt;<br>
&gt; &gt; Hi Thomas,<br>
&gt; &gt;<br>
&gt; &gt; You need to connect &quot;pad-added&quot; signal to &quot;gstrtpbin&quot;.<br>
&gt; &gt; Inside the pad-added signal handler, you need to link this pad to<br>
&gt; &gt; &quot;depayloader&quot; pad. As you said,<br>
&gt; &quot;recv_rtp_src_(id)_(ssrc)_(payload_type)&quot;<br>
&gt; &gt; is<br>
&gt; &gt; a dynamic pad.<br>
&gt; &gt;<br>
&gt; &gt; You may also set proper &quot;caps&quot; for &quot;udpsrc&quot;.<br>
&gt; &gt;<br>
&gt; &gt; Regards<br>
&gt; &gt; Sreejesh R B<br>
&gt; &gt; Sr. Project Lead.<br>
&gt; &gt; Multitech Software Systems India Pvt. Ltd.<br>
&gt; &gt; Bangalore, India<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: <a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net">gstreamer-devel-bounces@lists.sourceforge.net</a><br>
&gt; &gt; [mailto:<a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net">gstreamer-devel-bounces@lists.sourceforge.net</a>] On Behalf Of<br>
&gt; &gt; <a href="mailto:wi-tom@gmx.de">wi-tom@gmx.de</a><br>
&gt; &gt; Sent: Friday, June 27, 2008 6:02 AM<br>
&gt; &gt; To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; &gt; Subject: Re: [gst-devel] How to specify type of sink or src pad in<br>
&gt; &gt; gstrtpbin<br>
&gt; &gt;<br>
&gt; &gt; Yes I had.<br>
&gt; &gt; But after I&#39;ve startet my Receiver and Sender, this Signal was never<br>
&gt; sent.<br>
&gt; &gt;<br>
&gt; &gt; I will send my Sender and Receiver SampleCode as soon as I&#39;m at work<br>
&gt; &gt; tomorrow.<br>
&gt; &gt;<br>
&gt; &gt; greetings,<br>
&gt; &gt; Thomas<br>
&gt; &gt;<br>
&gt; &gt; -------- Original-Nachricht --------<br>
&gt; &gt; &gt; Datum: Thu, 26 Jun 2008 16:40:46 -0400<br>
&gt; &gt; &gt; Von: Tristan Matthews &lt;<a href="mailto:tristan@sat.qc.ca">tristan@sat.qc.ca</a>&gt;<br>
&gt; &gt; &gt; An: Thomas Winkler &lt;<a href="mailto:wi-tom@gmx.de">wi-tom@gmx.de</a>&gt;<br>
&gt; &gt; &gt; CC: &quot;<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&quot;<br>
&gt; &gt; &lt;<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>
&gt; &gt; &gt; Betreff: Re: [gst-devel] How to specify type of sink or src pad in<br>
&gt; &gt; gstrtpbin<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi Thomas,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thomas Winkler wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; But what signal is the right signal for my pad-creation?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; gstrtbin has only: "request-pt-map", "on-new-ssrc",<br>
&gt; &gt; &gt; &gt; "on-ssrc-collision", "on-ssrc-validated", "on-ssrc-active",<br>
&gt; &gt; &gt; &gt; "on-ssrc-sdes", "on-bye-ssrc", "on-bye-timeout",<br>
&gt; &gt; &gt; "on-timeout"<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Did you try &quot;pad-added&quot;? This is usually the signal to watch for when<br>
&gt; &gt; &gt; pads are created dynamically.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Best,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Tristan<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Psssst! Schon vom neuen GMX MultiMessenger gehört?<br>
&gt; &gt; Der kann`s mit allen: <a href="http://www.gmx.net/de/go/multimessenger" target="_blank">http://www.gmx.net/de/go/multimessenger</a><br>
&gt; &gt;<br>
&gt; &gt; ------------------------------------------------------------------------<br>
&gt; -<br>
&gt; &gt; Check out the new SourceForge.net Marketplace.<br>
&gt; &gt; It&#39;s the best place to buy or sell services for<br>
&gt; &gt; just about anything Open Source.<br>
&gt; &gt; <a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; gstreamer-devel mailing list<br>
&gt; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------------------------------------------------<br>
&gt; -<br>
&gt; &gt; Check out the new SourceForge.net Marketplace.<br>
&gt; &gt; It&#39;s the best place to buy or sell services for<br>
&gt; &gt; just about anything Open Source.<br>
&gt; &gt; <a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; gstreamer-devel mailing list<br>
&gt; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt; &gt;<br>
&gt; &gt; __________ NOD32 3222 (20080626) Information __________<br>
&gt; &gt;<br>
&gt; &gt; Diese E-Mail wurde vom NOD32 antivirus system geprüft<br>
&gt; &gt; <a href="http://www.nod32.com" target="_blank">http://www.nod32.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; __________ NOD32 3222 (20080626) Information __________<br>
&gt;<br>
&gt; Diese E-Mail wurde vom NOD32 antivirus system geprüft<br>
&gt; <a href="http://www.nod32.com" target="_blank">http://www.nod32.com</a><br>
</div></div><br>-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It&#39;s the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>