How to set specific caps on source and sink pads?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set specific caps on source and sink pads?

Siber
Hello everybody! Sorry for my incompetence. I'm trying to make an element which allow user to set caps on both pads. For example, if user set element properties: input_cap=yuy2 output_cap=yvyu, - so my element should set such caps on pads and only them. If other elements in pipeline not allow to have such caps so my element should ignore user specified caps. How can I make it if it's possible? For my_element template I've chosen videocrop from gst-plugins-good.

Thank you!
Reply | Threaded
Open this post in threaded view
|

Re: How to set specific caps on source and sink pads?

Stefan Sauer
On 07/20/11 10:58, Siber wrote:

> Hello everybody! Sorry for my incompetence. I'm trying to make an element
> which allow user to set caps on both pads. For example, if user set element
> properties: input_cap=yuy2 output_cap=yvyu, - so my element should set such
> caps on pads and only them. If other elements in pipeline not allow to have
> such caps so my element should ignore user specified caps. How can I make it
> if it's possible? For my_element template I've chosen videocrop from
> gst-plugins-good.
>
> Thank you!
>
What are you trying to do? You can use a capsfilter element to constrain
the caps a link should use.

Stefan
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to set specific caps on source and sink pads?

Siber
Thank you, it helped. The problem is solved now.