tcpclientsrc and mpegtsdemux

Nathanael D. Noblet nathanael at gnat.ca
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='192.168.1.3' 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.

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html

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