Avoiding usage of specific plugins in decodebin

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

Avoiding usage of specific plugins in decodebin

Alexander Yanin
Hi!

My purpose is to build pipeline with decoding and encoding plugins. For encoding purposes I want to use vaapi plugin, while for decoding I want to use decodebin, but without hw acceleration. It seems that when vaapi plugins are installed, decodebin automatically uses them for decoding if possible. How can I forbid decodebin to use these vaapi plugins?

Thanks in advance!

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

Re: Avoiding usage of specific plugins in decodebin

Jan Alexander Steffens

On Fri, Jul 28, 2017 at 8:57 AM Alexander Yanin <[hidden email]> wrote:
How can I forbid decodebin to use these vaapi plugins?

One possibility is to globally forbid autoplugging from considering the elements by setting the rank of the factory to GST_RANK_NONE. Use gst_element_factory_find and gst_plugin_feature_set_rank; the factory is a feature.

Another possibility is to use decodebin's autoplug-select signal to skip the elements when they are considered.


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

Re: Avoiding usage of specific plugins in decodebin

Julien Isorce
Note that gst_plugin_feature_set_rank is per process, in case you were wondering if it affects the registry. So it does not affect other processes.
To support "per pipeline" there is: https://bugzilla.gnome.org/show_bug.cgi?id=705976 

On 28 July 2017 at 08:26, Jan Alexander Steffens <[hidden email]> wrote:

On Fri, Jul 28, 2017 at 8:57 AM Alexander Yanin <[hidden email]> wrote:
How can I forbid decodebin to use these vaapi plugins?

One possibility is to globally forbid autoplugging from considering the elements by setting the rank of the factory to GST_RANK_NONE. Use gst_element_factory_find and gst_plugin_feature_set_rank; the factory is a feature.

Another possibility is to use decodebin's autoplug-select signal to skip the elements when they are considered.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel