configuring plugin priority

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

configuring plugin priority

Sachin Pandhare
Hi,
is there any method by which i can prioritize plugins?
e.g. there are X, Y, Z plugins. and i want my playbin to use Y rather than other 2.

Can i use gst_plugin_feature_set_rank for this?
will it work properly?

as i read from the manual i can set any value apart from GST_RANK_NONE, GST_RANK_MARGINAL, GST_RANK_SECONDARY, GST_RANK_PRIMARY ?

Sachin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: configuring plugin priority

Tim-Philipp Müller-2
On Thu, 2008-08-28 at 14:56 +0530, Sachin Pandhare wrote:

> is there any method by which i can prioritize plugins?
> e.g. there are X, Y, Z plugins. and i want my playbin to use Y rather
> than other 2.
>
> Can i use gst_plugin_feature_set_rank for this?

Yes. (Or pass the rank you want to gst_element_register in your plugin's
plugin_init function).

> will it work properly?

It should if your plugin behaves as expected.

> as i read from the manual i can set any value apart from
> GST_RANK_NONE, GST_RANK_MARGINAL, GST_RANK_SECONDARY,
> GST_RANK_PRIMARY ?

Yes, you may use e.g. GST_RANK_SECONDARY+5 or GST_RANK_PRIMARY*2 if you
want, it's just a number. Decoders/demuxers neeed to have at least a
rank of MARGINAL though to be used by playbin/decodebin.

Cheers
 -Tim



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: configuring plugin priority

Sachin Pandhare
A playbin i think will try to use the higher rank plugin (amongst all) for a given processing.
i think init for the plugin will be called from playbin but playbin can't change the rank. is this understanding correct?

In this case, how can i use "rank changing" to make playbin to select a given plugin?


On Thu, Aug 28, 2008 at 3:36 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Thu, 2008-08-28 at 14:56 +0530, Sachin Pandhare wrote:

> is there any method by which i can prioritize plugins?
> e.g. there are X, Y, Z plugins. and i want my playbin to use Y rather
> than other 2.
>
> Can i use gst_plugin_feature_set_rank for this?

Yes. (Or pass the rank you want to gst_element_register in your plugin's
plugin_init function).

> will it work properly?

It should if your plugin behaves as expected.

> as i read from the manual i can set any value apart from
> GST_RANK_NONE, GST_RANK_MARGINAL, GST_RANK_SECONDARY,
> GST_RANK_PRIMARY ?

Yes, you may use e.g. GST_RANK_SECONDARY+5 or GST_RANK_PRIMARY*2 if you
want, it's just a number. Decoders/demuxers neeed to have at least a
rank of MARGINAL though to be used by playbin/decodebin.

Cheers
 -Tim



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel