[gst-devel] converting a gst-launch pipeline into source code problem
Tim Müller
t.i.m at zen.co.uk
Sat Oct 20 12:03:15 CEST 2007
On Thu, 2007-10-18 at 15:55 +0800, Terry Leung wrote:
> I got a problem when i convert a pipeline into source code
> The pipeline is
>
> gst-launch -m ffmux_3gp name=mux ! filesink location=/home/video/receive.3gp \
> { udpsrc num-buffers=500 port=8100 name=audioudp
> caps="application/x-rtp, media=(string)audio, payload=(int)98,
> clock-rate=(int)8000, encoding-name=(string)AMR,
> encoding-params=(string)1, octet-align=(string)1" ! rtpamrdepay
> queue-delay=0 ! queue } ! mux.audio_0
>
> The code is shown below:
>
> m_pPipe = gst_pipeline_new ( (string("VideoPipe").append(sId)).c_str());
Just in case you haven't seen it yet: there's also gst_parse_launch(),
which will give you a pipeline from a gst-launch pipeline description
and do all the magic things gst-launch does for you too.
Cheers
-Tim
More information about the gstreamer-devel
mailing list