[gst-devel] no video with rtpjpegpay and udpsink

Thabelo Mmbengeni thabelo at gmail.com
Fri Jun 12 15:50:00 CEST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090612/bdb45167/attachment.htm>


More information about the gstreamer-devel mailing list