I found the problem in my code: I did not set the port to listen to. But I'm not able to get the stuff up. If I write:<br>
gint value = 1234;<br>g_object_get_property(G_OBJECT(udpsrc), &quot;port&quot;, &amp;value);<br>
I get a seg fault.<br>
<br>
What is the correct way to set the port of the udpsrc?<br>
<br>
Thanks,<br>
Deeptendu<br>
<br><div><span class="gmail_quote">On 8/9/06, <b class="gmail_sendername">Charles, Daniel</b> &lt;<a href="mailto:dcharles@ti.com">dcharles@ti.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>









<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hi,</span></font></p>



<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;I wrote an application as well.&nbsp; I used a
hash table, </span></font></p>







<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;Guint32 pt = 96;<br>
GHashTable *pt_map = g_hash_table_new_full
(g_direct_hash, g_direct_equal,
NULL, (GDestroyNotify)gst_caps_unref);</span></font></p>



<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">then established the caps filter</span></font></p>



<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;caps = gst_caps_new_simple("application/x-rtp",
"clock-rate",G_TYPE_INT, 90000, NULL);</span></font></p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">insert &nbsp;into the hash table </span></font>



<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;g_hash_table_insert (pt_map,
GINT_TO_POINTER(pt), (gpointer) caps);</span></font></p>



<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;then when connecting the rtpbin and the depayloader,
link them with the caps</span></font></p>



<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;That worked for me pretty well.</span></font></p>



<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;Regards,</span></font> <br>
</p></div></div></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div link="blue" vlink="blue" lang="EN-US"><div><p>
Daniel.</p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gstreamer-devel-bounces@lists.sourceforge.net</a>
[mailto:<a href="mailto:gstreamer-devel-bounces@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gstreamer-devel-bounces@lists.sourceforge.net</a>] <b><span style="font-weight: bold;">
On Behalf Of </span></b>Deeptendu Bikash<br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 09, 2006
4:33 AM<br>
<b><span style="font-weight: bold;">To:</span></b>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gstreamer-devel@lists.sourceforge.net</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [gst-devel] I need
help with RTP pipeline</span></font></p>

</div></div><div><span class="e" id="q_10cf36e3ae28c7a3_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I am trying to do the same thing by writing an application. For the
receiver, I am creating a udpsrc,&nbsp; depayloader, decoder and videosink, and
linking them together. I am creating them like this:<br>
<br>
depayloader = gst_element_factory_make(&quot;rtph263pdepay&quot;,
&quot;testrtpplayer_depay&quot;);<br>
decoder = gst_element_factory_make(&quot;ffdec_h263&quot;,
&quot;testrtpplayer_dec&quot;);<br>
<br>
My question is, how do I set the caps of the rtph263pdepay sink pads to accept <span><span>&quot;application/x-rtp,
clock-rate=90000,pt=97&quot;?</span><br>
<br>
<span>Thanks,</span><br>
<span>Deeptendu </span><br>
<br>
<br>
</span></span></font></p>



<div>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On 8/8/06, <b><span style="font-weight: bold;">M M</span></b>
&lt;<a href="mailto:mikel_m01@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mikel_m01@yahoo.com</a>&gt; wrote:</span></font></span></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
Hi,<br>
Thanks!!!, That solved the problem.<br>
<br>
Regards,<br>
Michael</span></font></p>

</div>

<div><span>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<span><b><i><span style="font-weight: bold; font-style: italic;">Philippe
Khalaf &lt;<a href="mailto:burgerman@users.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
burgerman@users.sourceforge.net</a>&gt;</span></i></b> wrote:</span></span></font></p></span>

</div>

<div><span>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,</span></font></span><br>
<br>
<span>Try this :</span><br>
<br>
<span>gst-launch udpsrc port=4000 ! application/x-rtp,
clock-rate=90000,</span><br>
<span>pt=97 ! rtph263pdepay ! ffdec_h263 ! xvimagesink</span><br>
<br>
<span>Regards,</span><br>
<span>Philippe</span><br>
<br>
<span>M M wrote:</span><br>
<span>&gt; Hi,</span><br>
<span>&gt; Please I need help on RTP pipeline, I have this pipeline: </span><br>
<span>&gt; </span><br>
<span>&gt; Sender:</span><br>
<span>&gt; gst-launch videotestsrc ! ffenc_h263p ! rtph263ppay !
udpsink port=4000</span><br>
<span>&gt; Setting pipeline to PAUSED ...</span><br>
<span>&gt; Pipeline is PREROLLING ...</span><br>
<span>&gt; Pipeline is PREROLLED ...</span><br>
<span>&gt; Setting pipeline to PLAYING ... </span><br>
<span>&gt; New clock: GstSystemClock</span><br>
<span>&gt; </span><br>
<span>&gt; Works fine!!! but the Receiver:</span><br>
<span>&gt; </span><br>
<span>&gt; gst-launch udpsrc port=4000 ! rtph263pdepay ! ffdec_h263 !
xvimagesink</span><br>
<span>&gt; OR even</span><br>
<span>&gt; gst-launch udpsrc port=4000 ! rtph263pdepay ! fakesink</span><br>
<span>&gt; </span><br>
<span>&gt; Setting pipeline to PAUSED ...</span><br>
<span>&gt; Pipeline is live and does not need PREROLL ...</span><br>
<span>&gt; Setting pipeline to PLAYING ...</span><br>
<span>&gt; New clock: GstSystemClock </span><br>
<span>&gt; </span><br>
<span>&gt; ** (gst-launch-0.10:29039): CRITICAL **:
gst_base_rtp_depayload_chain:</span><br>
<span>&gt; assertion `filter-&gt;clock_rate &gt; 0' failed</span><br>
<span>&gt; ERROR: from element /pipeline0/udpsrc0: Internal data flow
error.</span><br>
<span>&gt; Additional debug info:</span><br>
<span>&gt; gstbasesrc.c(1569): gst_base_src_loop ():
/pipeline0/udpsrc0:</span><br>
<span>&gt; streaming task paused, reason error (-5)</span><br>
<span>&gt; Execution ended after 2564000 ns.</span><br>
<span>&gt; Setting pipeline to PAUSED ... </span><br>
<span>&gt; Setting pipeline to READY ...</span><br>
<span>&gt; Setting pipeline to NULL ...</span><br>
<span>&gt; FREEING pipeline ...</span><br>
<span>&gt; </span><br>
<span>&gt; I traced the error to gstrtph263pdepay.c and
gstbasertpdepayload.c and</span><br>
<span>&gt; tried to fix the clockrate, by commenting out checking the structure
(in </span><br>
<span>&gt; gstrtph263pdepay.c setcaps), that didn't work. This error
unfortunately</span><br>
<span>&gt; exists in all the RTP depayloaders. Maybe I am doing
something wrong!.</span><br>
<span>&gt; Please help.</span><br>
<span>&gt; </span><br>
<span>&gt; Regards,</span><br>
<span>&gt; Michael</span><br>
<span>&gt; </span><br>
<span>&gt; ------------------------------------------------------------------------</span><br>
<span>&gt; See the all-new, redesigned <a href="http://Yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Yahoo.com </a>. Check it out.</span><br>
<span>&gt; </span><br>
<span>&gt; </span><br>
<span>&gt; </span><br>
<br>
</p>

</span></div>



<div>

<p style="margin-bottom: 12pt;"><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&gt;
------------------------------------------------------------------------</span></font></span><br>
<span>&gt; </span><br>
<span>&gt; -------------------------------------------------------------------------
</span><br>
<span>&gt; Using Tomcat but need to do more? Need to support web
services, security?</span><br>
<span>&gt; Get stuff done quickly with pre-integrated technology to
make your job easier</span><br>
<span>&gt; Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo</span><br>
<span>&gt; <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642
</a></span><br>
<span>&gt; </span><br>
<span>&gt; </span><br>
<span>&gt;
------------------------------------------------------------------------</span><br>
<span>&gt; </span><br>
<span>&gt; _______________________________________________</span><br>
<span>&gt; gstreamer-devel mailing list</span><br>
<span>&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gstreamer-devel@lists.sourceforge.net</a></span><br>
<span>&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel </a></span>
</p>

</div>

<div>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></span></p>

<div style="text-align: center;" align="center"><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="1" width="100%">

</span></font></span></div>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Do you Yahoo!?</span></font></span><br>
<span>Get on board. <a href="http://us.rd.yahoo.com/evt=40791/*http:/advision.webevents.yahoo.com/handraisers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">You're invited</a> to try the new Yahoo! Mail Beta. 
</span></p>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
-------------------------------------------------------------------------<br>
Using Tomcat but need to do more? Need to support web services, security?<br>
Get stuff done quickly with pre-integrated technology to make your job easier <br>
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br>
<a href="http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642
</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel </a><br>
<br>
</span></font></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</span></div><div></div>

</div>



</div></blockquote></div><br>