[gst-devel] which element to playback PCM-LE16-48k audio?

G.B gbzbz at yahoo.com
Thu Jul 1 00:13:56 CEST 2010


I have the following code to receive the L16 PCM

    audiodepay = gst_element_factory_make ("rtpL16depay", "adepay");
    g_assert (audiodepay);
    if(1){
      GstCaps *adoCaps = gst_caps_new_simple ("application/x-rtp",
                                              "rate", G_TYPE_INT, 48000,
                                              "channels", G_TYPE_INT, 2,
                                              "width", G_TYPE_INT, 16,
                                              "depth", G_TYPE_INT, 16,
                                              "endianness", G_TYPE_INT,
1234,
                                              "signed", G_TYPE_BOOLEAN,
TRUE,
                                              NULL);

      GstPad * tmppad = NULL;
      tmppad = gst_element_get_pad(audiodepay, "src");
      gst_pad_set_caps(tmppad, adoCaps);
      gst_caps_unref(adoCaps);
    }

But the program always complains about
0:00:03.314339777  1662    0xc0d88 ERROR            rtpL16depay
gstrtpL16depay.c:218:gst_rtp_L16_depay_setcaps:<adepay> no channels
specified

I am new to GST programming here, so please help. Thanks
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/which-element-to-playback-PCM-LE16-48k-audio-tp2272692p2274407.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list