Building a gstrtpbin pipeline in C/C++

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Building a gstrtpbin pipeline in C/C++

Lassi Väätämöinen


I have been trying to build a gstrtpbin pipeline using
gst_parse_bin_from_description. I have previously used gst_parse_launch
successfully to create non-bin pipelines, but creating a pipeline that is a
bin seems not to work. The code below builds the pipeline without errors, but
no RTP is sent, I can only see RTCP RR packets to ports 8235 and 8237.

std::string descTemp = "gstrtpbin name=rtpbin v4l2src !
video/x-raw-yuv,width=176,height=144,framerate=(fraction)15/1 ! queue !
videorate ! ffmpegcolorspace ! ffenc_h263p ! rtph263ppay !
rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink udpsink  port=8234
host= ts-offset=0 name=vrtpsink rtpbin.send_rtcp_src_0 ! udpsink
host= port=8235 sync=false async=false name=vrtcpsink udpsrc
port=5005 name=vrtpsrc ! rtpbin.recv_rtcp_sink_0 alsasrc device=hw:1,0 !
audio/x-raw-int,rate=16000,channels=1,depth=16 ! queue ! audioresample !
audioconvert ! mulawenc ! rtppcmupay ! rtpbin.send_rtp_sink_1
rtpbin.send_rtp_src_1 ! udpsink host= port=8236 ts-offset=0
name=artpsink rtpbin.send_rtcp_src_1 ! udpsink port=8237 host=
sync=false  async=false name=artcpsink udpsrc port="5007 name=artpsrc !
pipeline_ = gst_parse_bin_from_description(descTemp.c_str(), TRUE /*autocreate
ghost pads for unlinked src and sink, FALSE did not work*/, &error_);

I got the same pipeline working using gst-launch-0.10 before trying to do this
in C/C++ source code. Where am I going wrong here?

Does anyone have a working example on gstrtpbin as a code and would like to
contribute? :)

Best Regards,

Lassi Väätämöinen
M.Sc., Researcher
Tampere University of Technology / Department of Communications Engineering
Room TH209, tel. 03-3115 5124

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
gstreamer-devel mailing list
[hidden email]