[gst-devel] Building a gstrtpbin pipeline in C/C++
Lassi Väätämöinen
lassi.vaatamoinen at tut.fi
Thu Oct 23 17:08:03 CEST 2008
Hi!
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=127.0.0.1 ts-offset=0 name=vrtpsink rtpbin.send_rtcp_src_0 ! udpsink
host=127.0.0.1 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=127.0.0.1 port=8236 ts-offset=0
name=artpsink rtpbin.send_rtcp_src_1 ! udpsink port=8237 host=127.0.0.1
sync=false async=false name=artcpsink udpsrc port="5007 name=artpsrc !
rtpbin.recv_rtcp_sink_1";
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
--
Lassi Väätämöinen
M.Sc., Researcher
Tampere University of Technology / Department of Communications Engineering
Room TH209, tel. 03-3115 5124
More information about the gstreamer-devel
mailing list