rtpL16pay payload type
Johannes Bauer
bauer.hannes.jo at gmail.com
Wed Sep 20 15:22:51 UTC 2017
Hi amsts!
You can solve this using a capsfilter.
This one is for a MPA pipeline (pt=14):
rtpaudio = gst_element_factory_make("rtpmpapay", "rtpaudio");
caps_rtp = gst_caps_new_simple("application/x-rtp", "media",
G_TYPE_STRING, "audio", "clock-rate", G_TYPE_INT, 90000,
"encoding-name", G_TYPE_STRING, "MPA", "channels", G_TYPE_INT, 1,
"payload", G_TYPE_INT, 14, NULL);
rtpbin = gst_element_factory_make("rtpbin", "rtpbin");
then u have to link the payloader and the rtpbin with this function:
ret = gst_element_link_pads_filtered(rtpaudio, "src", rtpbin,
"send_rtp_sink_0", caps_rtp);
if (ret != TRUE) {
Log(LOG_TYPE_ERROR, "RTP", "Streaming Elements rtpaudio and rtpbin
could not be linked!");
return -1;
}
Hope this helps
Kind regards
JB
More information about the gstreamer-devel
mailing list