[gst-devel] Capsfilter problem for rtp streaming
Zhang, Boning
boning.zhang at intel.com
Tue Aug 25 05:35:50 CEST 2009
I write a cmd line for receiving the rtp stream :
gst-launch udpsrc port=5000 caps=application/x-rtp ! rtph263pdepay ! ffdec_h263 ! filesink location=./abc.out
and it runs ok.
But I change it to C code, the application cannot run.
c code:
{
pipeline = gst_pipeline_new ("Video-DERTP");
rtpsrc = gst_element_factory_make ("udpsrc", "sourcer");
vidCaps = gst_element_factory_make("capsfilter", "capsfilter");
rtpdepay = gst_element_factory_make ("rtph263pdepay", "H263+ depayload");
decoder = gst_element_factory_make ("ffdec_h263", "h263+ decode");
filesink = gst_element_factory_make ("filesink", "filesink");
g_object_set(G_OBJECT(vidCaps), "caps",gst_caps_new_simple("application/x-rtp",
"media",G_TYPE_STRING,"video",
"payload",G_TYPE_INT,96,
"clock-rate",G_TYPE_INT,90000,
"encoding-name", G_TYPE_STRING, "ffenc_h263p",
NULL), NULL);
g_object_set (G_OBJECT (rtpsrc), "port",5000, NULL);
g_object_set (G_OBJECT (filesink), "location","./abc.out", NULL);
gst_bin_add_many (GST_BIN (pipeline),rtpsrc,vidCaps,rtpdepay,decoder,filesink,NULL);
gst_element_link_many (rtpsrc,vidCaps,rtpdepay,decoder,filesink,NULL);
}
error:
gst_capsfilter_prepare_buf:assertion 'out_caps != NULL' failed
Error Internal data flow error
Thanks
------------------------------------
Boning,Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090825/26c50843/attachment.htm>
More information about the gstreamer-devel
mailing list