AW: tcpclientsrc and mpegtsdemux

Bernhard Graaf bernhard.graaf at gmx.de
Sat Jun 4 08:24:01 PDT 2011


Hi Nathanael,

I've solved this problem!!!!

The trick is, to check the dynamic-pads 'name' with using the
gst_pad_get_name - function. If I use this in my pipe, I get two names back
from the mpegtsdemux: one for the video- and one for the audio-stream. 
I compare and link this to the associated queue (I use one for video and one
for audio in my pipe).
So it's works very well and I'm a little bit proud for solving this.

Thanks a lot for your help. Without your tip, I never try this way.
It's a lot of fun, to work with you!

Bernhard

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
Im Auftrag von Bernhard Graaf
Gesendet: Samstag, 4. Juni 2011 11:04
An: 'Discussion of the development of and with GStreamer'
Betreff: AW: tcpclientsrc and mpegtsdemux

Hi,

thanks' a lot for helping. I've change the code with handle the dynamic-pads
between muxer/audio-dec and audio-dec/audio-sink and it work great with only
audio data. 
If I try to use the queue-pad, I have a problem to understand this.
Should I define two queues? One for video and one for audio? Or is there
only one queue and I link this to both? But then, how could I handle the
dynamic-pads? Do you have an example for using the queue-element to split a
stream (e.g Mpeg2) to video/audio-data in a C-program?

I know: there are a lot of questions about using the queue-element.
But I'm sure that there is a person, who can help me to fix this problem!

Thanks a lot!!
Bernhard 

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
Im Auftrag von Nathanael D. Noblet
Gesendet: Freitag, 3. Juni 2011 17:20
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: tcpclientsrc and mpegtsdemux

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
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list