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 <<a href="mailto:wi-tom@gmx.de">wi-tom@gmx.de</a>> 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've attached my sample-application for Sender and Receiver.<br>
<br>
PS: My problem was, that I've forgotten to create a capsfilter on my<br>
Server-Side and I've exchanged the pad_requests<br>
<br>
From:<br>
ps->send_rtp_src0 = gst_element_get_static_pad(rtpbin, "send_rtp_src_0");<br>
ps->send_rtp_sink0 = gst_element_get_request_pad(rtpbin, "send_rtp_sink_0");<br>
<br>
To:<br>
ps->send_rtp_sink0 = gst_element_get_request_pad(rtpbin, "send_rtp_sink_0");<br>
ps->send_rtp_src0 = gst_element_get_static_pad(rtpbin, "send_rtp_src_0");<br>
<br>
because in the Reference it's described that the "send_rtp_src_%d" pad is<br>
automatically created if a pad_request to "send_rtp_sink_%d" 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'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>
> -----Ursprüngliche Nachricht-----<br>
> 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>> <a href="mailto:devel-bounces@lists.sourceforge.net">devel-bounces@lists.sourceforge.net</a>] Im Auftrag von Thomas Winkler<br>
> Gesendet: Freitag, 27. Juni 2008 10:46<br>
<div><div></div><div class="Wj3C7c">> An: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> Betreff: Re: [gst-devel] How to specify type of sink or src pad in<br>
> gstrtpbin<br>
><br>
> Hi,<br>
> I've added my little (dirty) test-application.<br>
> Sender: Sender.cpp, CRtpSender.cpp, CRtpSender.h<br>
> Receiver: Receiver.cpp, CRtpReceiver.cpp, CRtpReceiver.h<br>
><br>
> Here's a sample of my Signalimplementation for my Sender:<br>
><br>
> Signal connect:<br>
> g_signal_connect (m_gstrtpbin, "pad-added", G_CALLBACK (cb_new_pad),<br>
> NULL);<br>
><br>
> Method:<br>
> void CRtpSender::cb_new_pad(GstElement* element, GstPad* pad, gpointer<br>
> data)<br>
> {<br>
> gchar* name;<br>
><br>
> name = gst_pad_get_name(pad);<br>
> g_print("A new pad %s was created\n", name);<br>
> g_free(name);<br>
><br>
> GstPad* rtpudpsinkSrc = gst_element_get_static_pad(m_udpsink_rtp,<br>
> "src");<br>
> gst_pad_link(rtpudpsinkSrc, pad);<br>
> }<br>
><br>
><br>
> But I never get this signal called (have a look into the source)<br>
> I don't know what's wrong in my code...<br>
><br>
> Greetings,<br>
> Thomas<br>
><br>
><br>
> > -----Ursprüngliche Nachricht-----<br>
> > 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>
> > <a href="mailto:devel-bounces@lists.sourceforge.net">devel-bounces@lists.sourceforge.net</a>] Im Auftrag von Sreejesh<br>
> > Gesendet: Freitag, 27. Juni 2008 07:37<br>
> > An: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> > Betreff: Re: [gst-devel] How to specify type of sink or src pad in<br>
> > gstrtpbin<br>
> ><br>
> > Hi Thomas,<br>
> ><br>
> > You need to connect "pad-added" signal to "gstrtpbin".<br>
> > Inside the pad-added signal handler, you need to link this pad to<br>
> > "depayloader" pad. As you said,<br>
> "recv_rtp_src_(id)_(ssrc)_(payload_type)"<br>
> > is<br>
> > a dynamic pad.<br>
> ><br>
> > You may also set proper "caps" for "udpsrc".<br>
> ><br>
> > Regards<br>
> > Sreejesh R B<br>
> > Sr. Project Lead.<br>
> > Multitech Software Systems India Pvt. Ltd.<br>
> > Bangalore, India<br>
> ><br>
> ><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net">gstreamer-devel-bounces@lists.sourceforge.net</a><br>
> > [mailto:<a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net">gstreamer-devel-bounces@lists.sourceforge.net</a>] On Behalf Of<br>
> > <a href="mailto:wi-tom@gmx.de">wi-tom@gmx.de</a><br>
> > Sent: Friday, June 27, 2008 6:02 AM<br>
> > To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> > Subject: Re: [gst-devel] How to specify type of sink or src pad in<br>
> > gstrtpbin<br>
> ><br>
> > Yes I had.<br>
> > But after I've startet my Receiver and Sender, this Signal was never<br>
> sent.<br>
> ><br>
> > I will send my Sender and Receiver SampleCode as soon as I'm at work<br>
> > tomorrow.<br>
> ><br>
> > greetings,<br>
> > Thomas<br>
> ><br>
> > -------- Original-Nachricht --------<br>
> > > Datum: Thu, 26 Jun 2008 16:40:46 -0400<br>
> > > Von: Tristan Matthews <<a href="mailto:tristan@sat.qc.ca">tristan@sat.qc.ca</a>><br>
> > > An: Thomas Winkler <<a href="mailto:wi-tom@gmx.de">wi-tom@gmx.de</a>><br>
> > > CC: "<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>"<br>
> > <<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
> > > Betreff: Re: [gst-devel] How to specify type of sink or src pad in<br>
> > gstrtpbin<br>
> ><br>
> > > Hi Thomas,<br>
> > ><br>
> > > Thomas Winkler wrote:<br>
> > > ><br>
> > > > But what signal is the right signal for my pad-creation?<br>
> > > ><br>
> > > > gstrtbin has only: "request-pt-map", "on-new-ssrc",<br>
> > > > "on-ssrc-collision", "on-ssrc-validated", "on-ssrc-active",<br>
> > > > "on-ssrc-sdes", "on-bye-ssrc", "on-bye-timeout",<br>
> > > "on-timeout"<br>
> > > ><br>
> > ><br>
> > > Did you try "pad-added"? This is usually the signal to watch for when<br>
> > > pads are created dynamically.<br>
> > ><br>
> > ><br>
> > > Best,<br>
> > ><br>
> > > Tristan<br>
> ><br>
> > --<br>
> > Psssst! Schon vom neuen GMX MultiMessenger gehört?<br>
> > 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>
> ><br>
> > ------------------------------------------------------------------------<br>
> -<br>
> > Check out the new SourceForge.net Marketplace.<br>
> > It'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>
> ><br>
> > ------------------------------------------------------------------------<br>
> -<br>
> > Check out the new SourceForge.net Marketplace.<br>
> > It'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>
> > __________ NOD32 3222 (20080626) Information __________<br>
> ><br>
> > Diese E-Mail wurde vom NOD32 antivirus system geprüft<br>
> > <a href="http://www.nod32.com" target="_blank">http://www.nod32.com</a><br>
><br>
><br>
><br>
><br>
> __________ NOD32 3222 (20080626) Information __________<br>
><br>
> Diese E-Mail wurde vom NOD32 antivirus system geprüft<br>
> <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'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>