<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Courier New" size="2">
<div>I write a cmd line for receiving the rtp stream :</div>
<div> </div>
<div><font color="#0000FF">gst-launch udpsrc port=5000 caps=application/x-rtp ! rtph263pdepay ! ffdec_h263 ! filesink location=./abc.out</font></div>
<div> </div>
<div>and it runs ok.</div>
<div> </div>
<div>But I change it to C code, the application cannot run.</div>
<div> </div>
<div><font color="#0000FF">c code:</font></div>
<div><font color="#0000FF">{</font></div>
<div><font color="#0000FF"> pipeline = gst_pipeline_new ("Video-DERTP");</font></div>
<div><font color="#0000FF"> rtpsrc = gst_element_factory_make ("udpsrc", "sourcer");</font></div>
<div><font color="#0000FF"> vidCaps = gst_element_factory_make("capsfilter", "capsfilter");</font></div>
<div><font color="#0000FF"> rtpdepay = gst_element_factory_make ("rtph263pdepay", "H263+ depayload");</font></div>
<div><font color="#0000FF"> decoder = gst_element_factory_make ("ffdec_h263", "h263+ decode");</font></div>
<div><font color="#0000FF"> filesink = gst_element_factory_make ("filesink", "filesink");</font></div>
<div><font color="#0000FF"> </font></div>
<div><font color="#0000FF"> </font></div>
<div><font color="#0000FF"> </font></div>
<div><font color="#0000FF"> g_object_set(G_OBJECT(vidCaps), "caps",gst_caps_new_simple("application/x-rtp", </font></div>
<div><font color="#0000FF"> "media",G_TYPE_STRING,"video", </font></div>
<div><font color="#0000FF"> "payload",G_TYPE_INT,96,</font></div>
<div><font color="#0000FF"> "clock-rate",G_TYPE_INT,90000,</font></div>
<div><font color="#0000FF"> "encoding-name", G_TYPE_STRING, "ffenc_h263p",</font></div>
<div><font color="#0000FF"> NULL), NULL);</font></div>
<div><font color="#0000FF"> </font></div>
<div><font color="#0000FF"> g_object_set (G_OBJECT (rtpsrc), "port",5000, NULL);</font></div>
<div><font color="#0000FF"> g_object_set (G_OBJECT (filesink), "location","./abc.out", NULL);</font></div>
<div><font color="#0000FF"> </font></div>
<div><font color="#0000FF"> </font></div>
<div><font color="#0000FF"> gst_bin_add_many (GST_BIN (pipeline),rtpsrc,vidCaps,rtpdepay,decoder,filesink,NULL);</font></div>
<div><font color="#0000FF"> gst_element_link_many (rtpsrc,vidCaps,rtpdepay,decoder,filesink,NULL);</font></div>
<div><font color="#0000FF">}</font></div>
<div><font color="#0000FF"> </font></div>
<div><font color="#FF0000">error:</font></div>
<div><font color="#FF0000">gst_capsfilter_prepare_buf:assertion 'out_caps != NULL' failed</font></div>
<div><font color="#FF0000">Error Internal data flow error</font></div>
<div> </div>
<div> </div>
<div>Thanks</div>
<div><font face="Arial, sans-serif">------------------------------------</font></div>
<div><font face="Arial, sans-serif">Boning,Zhang</font></div>
<div><font face="Arial, sans-serif"> </font></div>
<div><font face="Arial, sans-serif"> </font></div>
<div><font face="Arial, sans-serif"> </font></div>
<div><font face="Arial, sans-serif"> </font></div>
<div><font face="Arial, sans-serif"> </font></div>
<div><font face="宋体, sans-serif"> </font></div>
</font>
</body>
</html>