2

I was trying to install a gstreamer plugin in my Raspberry Pi. I have downloaded the Gstreamer plugin from a repository, then I build the binaries. After building I did a

sudo make install to install the gstreamer openmax plugin.

But the plugin (gst-openmax) that have hardware decoder elements(omxh264dec etc) are not being listed in gst-inspect.

I think it is because I have not register the plugin ? How do I register this plugin ?

I have gone through the code and found a function called plugin_init() inside which they have written code to register the plugin. How to invoke this function ? I tried setting the environmental variables such as GST_PLUGIN_PATH, GST_OMX_CONFIG_DIR, LD_LIBRARY_PATH etc But that too didnt work. How to Register this open max plugin so that I can use it in different pipelines ?

4

1 回答 1

3

要让 gstreamer 检测您的插件(即 .dll 或 .so 文件),您只需将其放在插件目录中即可。您不需要调用任何函数调用,例如 plugin_init 等。如果 Gstreamer 在插件目录中检测到插件,它将自动调用它。

于 2013-03-12T13:00:16.483 回答