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), "port", &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> <<a href="mailto:dcharles@ti.com">dcharles@ti.com</a>> 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;"> I wrote an application as well. 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;"> 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;"> 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 into the hash table </span></font>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> 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;"> 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;"> 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;"> 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;"> </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;"> </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, depayloader, decoder and videosink, and
linking them together. I am creating them like this:<br>
<br>
depayloader = gst_element_factory_make("rtph263pdepay",
"testrtpplayer_depay");<br>
decoder = gst_element_factory_make("ffdec_h263",
"testrtpplayer_dec");<br>
<br>
My question is, how do I set the caps of the rtph263pdepay sink pads to accept <span><span>"application/x-rtp,
clock-rate=90000,pt=97"?</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>
<<a href="mailto:mikel_m01@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mikel_m01@yahoo.com</a>> 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 <<a href="mailto:burgerman@users.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
burgerman@users.sourceforge.net</a>></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>> Hi,</span><br>
<span>> Please I need help on RTP pipeline, I have this pipeline: </span><br>
<span>> </span><br>
<span>> Sender:</span><br>
<span>> gst-launch videotestsrc ! ffenc_h263p ! rtph263ppay !
udpsink port=4000</span><br>
<span>> Setting pipeline to PAUSED ...</span><br>
<span>> Pipeline is PREROLLING ...</span><br>
<span>> Pipeline is PREROLLED ...</span><br>
<span>> Setting pipeline to PLAYING ... </span><br>
<span>> New clock: GstSystemClock</span><br>
<span>> </span><br>
<span>> Works fine!!! but the Receiver:</span><br>
<span>> </span><br>
<span>> gst-launch udpsrc port=4000 ! rtph263pdepay ! ffdec_h263 !
xvimagesink</span><br>
<span>> OR even</span><br>
<span>> gst-launch udpsrc port=4000 ! rtph263pdepay ! fakesink</span><br>
<span>> </span><br>
<span>> Setting pipeline to PAUSED ...</span><br>
<span>> Pipeline is live and does not need PREROLL ...</span><br>
<span>> Setting pipeline to PLAYING ...</span><br>
<span>> New clock: GstSystemClock </span><br>
<span>> </span><br>
<span>> ** (gst-launch-0.10:29039): CRITICAL **:
gst_base_rtp_depayload_chain:</span><br>
<span>> assertion `filter->clock_rate > 0' failed</span><br>
<span>> ERROR: from element /pipeline0/udpsrc0: Internal data flow
error.</span><br>
<span>> Additional debug info:</span><br>
<span>> gstbasesrc.c(1569): gst_base_src_loop ():
/pipeline0/udpsrc0:</span><br>
<span>> streaming task paused, reason error (-5)</span><br>
<span>> Execution ended after 2564000 ns.</span><br>
<span>> Setting pipeline to PAUSED ... </span><br>
<span>> Setting pipeline to READY ...</span><br>
<span>> Setting pipeline to NULL ...</span><br>
<span>> FREEING pipeline ...</span><br>
<span>> </span><br>
<span>> I traced the error to gstrtph263pdepay.c and
gstbasertpdepayload.c and</span><br>
<span>> tried to fix the clockrate, by commenting out checking the structure
(in </span><br>
<span>> gstrtph263pdepay.c setcaps), that didn't work. This error
unfortunately</span><br>
<span>> exists in all the RTP depayloaders. Maybe I am doing
something wrong!.</span><br>
<span>> Please help.</span><br>
<span>> </span><br>
<span>> Regards,</span><br>
<span>> Michael</span><br>
<span>> </span><br>
<span>> ------------------------------------------------------------------------</span><br>
<span>> 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>> </span><br>
<span>> </span><br>
<span>> </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;">>
------------------------------------------------------------------------</span></font></span><br>
<span>> </span><br>
<span>> -------------------------------------------------------------------------
</span><br>
<span>> Using Tomcat but need to do more? Need to support web
services, security?</span><br>
<span>> Get stuff done quickly with pre-integrated technology to
make your job easier</span><br>
<span>> Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo</span><br>
<span>> <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
</a></span><br>
<span>> </span><br>
<span>> </span><br>
<span>>
------------------------------------------------------------------------</span><br>
<span>> </span><br>
<span>> _______________________________________________</span><br>
<span>> gstreamer-devel mailing list</span><br>
<span>> <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>> <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;"> </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&kid=120709&bid=263057&dat=121642" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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;"> </span></font></p>
</span></div><div></div>
</div>
</div></blockquote></div><br>