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

Nicolas Dufresne nicolas at ndufresne.ca
Thu Jul 5 17:53:39 UTC 2018


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
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list