[gst-devel] no video with rtpjpegpay and udpsink

Edward Hervey bilboed at gmail.com
Sat Jun 13 01:19:59 CEST 2009


Don't 'hijack' a thread if you're asking a new question. Post a fresh
new post to the group next time.

  Not only will it stop bothering people that dislike that kind of
hijacking but it will also increase the likeliness of actually getting a
reply to your questions

  Edward

On Fri, 2009-06-12 at 15:50 +0200, Thabelo Mmbengeni wrote:
> Hi I am also working on the similar thing but it seems I have a
> problem that I cannot Identify.
> 
> I am trying to link gstrtpbin to rtptheoradepay on the Client side
> I am now on the recieving side of the gstrtobin
> 
> heres my link:
> --------------------------------------------------------------------------------------------------------------------------------------------------------
> static void pad_added_cb (GstElement * rtpbin, GstPad * new_pad,
> GstElement * depay)
> {
>       GstPad *sinkpad;
>       GstPadLinkReturn lres;
> 
>       g_print ("new payload on pad: %s\n", GST_PAD_NAME (new_pad));
> 
>       sinkpad = gst_element_get_static_pad (depay, "sink");
>       g_assert (sinkpad);
> 
>       lres = gst_pad_link (new_pad, sinkpad);
>       g_assert (lres == GST_PAD_LINK_OK);
>       gst_object_unref (sinkpad);
> }
> 
> and I call it using:
> g_signal_connect (rtpbin, "pad-added", G_CALLBACK (pad_added_cb),
> videodepay);
> 
> --------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> and the error i get:
> ~bash$ ./client_video_stream
> (client_video_stream:26694): GStreamer-CRITICAL **: gst_pad_link:
> assertion `GST_IS_PAD (srcpad)' failed
> **
> ERROR:client_video_stream.c:148:main: assertion failed: (lres ==
> GST_PAD_LINK_OK)
> Aborted
> ~bash $
> 
> ------------------------------------------------------------------------------------------------------------------------------------------------------
> caps are: g_object_set (G_OBJECT (rtpsrc), "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,"THEORA",
>                             "delivery-method",G_TYPE_STRING,"inline",
>                             NULL), NULL);
> --------------------------------------------------------------------------------------------------------------------------------------------------------
> I will appreciate your help
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list