[gst-devel] pad linking

Benjamin Otte in7y118 at public.uni-hamburg.de
Tue May 3 06:49:01 CEST 2005


On Tue, 3 May 2005, Jérôme Patey wrote:

> Hi,
>
>     I wondered something. When trying to link 2 pads that have the same
> capabilities, for example :
>        audio/x-raw-int, width = [8, 16], rate = [8000 - 48000], channels
> = [1, 2]
>
>     how do GStreamer choose the correct rate ?
>
>     For example, if I want to link a resampler with alsa, alsa accepts
> many frequencies, and the resampler accepts every frequency, how will
> the choice be made ?
>
Currently it choses one format more or less randomly.
And yes, we're all aware that that is suboptimal.

You can however use filtercaps when linking your pipeline to have some
control over the used formats.

Benjamin





More information about the gstreamer-devel mailing list