tcpclientsrc and mpegtsdemux

Nathanael D. Noblet nathanael at
Fri Jun 3 08:20:07 PDT 2011

On 06/03/2011 04:20 AM, Bernhard Graaf wrote:
> Hi,
> I need help to generate my own ‚C’-Program from a running pipe:
> gst-launch-0.10 tcpclientsrc host='' port=8080 ! mpegtsdemux
> name=demux ! queue ! mpeg2dec ! xvimagesink force-aspect-ratio=TRUE
> demux. ! queue ! mad ! alsasink
> With this pipe, I have no problem. It’s running very well.
> But if I try to compile this pipe in my own program, I’ll get no results.

Some elements have 'special' sinks. Such as a demuxer. A file could 
conceivably have multiple video/audio streams but you don't know that 
until it starts getting processed. So gst-launch does some magic that 
you need to do the same.

gives an example of handling this with the on_pad_added signal handler.

Nathanael d. Noblet
t 403.875.4613

More information about the gstreamer-devel mailing list