Find Plugin at Runtime (gst-inspect-1.0?)

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

Find Plugin at Runtime (gst-inspect-1.0?)

David Manpearl
a) Does anyone know how to determine at runtime if a plugin is available (such as "vaapih264dec")?
b) And if a supporting library is properly installed (such as "vainfo")?
I think this falls into the territory of how to execute gst-inspect-1.0 programmatically.


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

Re: Find Plugin at Runtime (gst-inspect-1.0?)

Nicolas Dufresne-5
Le jeudi 05 juillet 2018 à 10:27 -0700, David Manpearl a écrit :
> a) Does anyone know how to determine at runtime if a plugin is
> available (such as "vaapih264dec")?

You can do gst_element_factory_make ("vaapih264dec", NULL), and if it
returns NULL it does not exist. This of course assumes you'll be using
it. If not, then use gst_element_factory_find("vaapih264dec").

See GstElementFactory in general to find out how to query the plugins
database.

> b) And if a supporting library is properly installed (such as
> "vainfo")?
> I think this falls into the territory of how to execute gst-inspect-
> 1.0 programmatically.
>
> _______________________________________________
> 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