alumae / gst-kaldi-nnet2-online

GStreamer plugin around Kaldi's online neural network decoder
Apache License 2.0
185 stars 101 forks source link

Gstreamer Kaldi plugin is blacklisted #67

Open alerenato opened 6 years ago

alerenato commented 6 years ago

Hello, I installed the last version of Gstreamer (1.14) on Ubuntu 17.10 with apt-get install. Gstreamer doesn't recognize the plugin because is on the blacklist. The offset of gst-inspect-1.0 command is: /*** Plugin Details: Name libgstkaldionline2.so Description Plugin for blacklisted file Filename ./libgstkaldionline2.so Version 0.0.0 License BLACKLIST Source module BLACKLIST Binary package BLACKLIST Origin URL BLACKLIST

0 features: ****/ There are several problems related to the blacklist. I do not know if the problems mentioned above are the cause or there may be others. Thanks in advance.

gramonov commented 6 years ago

in gstreamer 1.14, name of the built .so library should match plugin name since symlinks are extracted automatically

in this case, it should be called libgstkaldinnet2onlinedecoder.so

this unmerged pull request fixes it https://github.com/alumae/gst-kaldi-nnet2-online/pull/65

FYI, you can debug these kinda problems as follows

GST_DEBUG=5 gst-inspect-1.0 ./libgstkaldionline2.so

and the output will tell you that it can't find plugin entry point

0:00:00.073175985 19005 0x55ff33b08800 INFO                GST_INIT gst.c:807:init_post: GLib runtime version: 2.56.0
0:00:00.073180553 19005 0x55ff33b08800 INFO                GST_INIT gst.c:809:init_post: GLib headers version: 2.56.0
0:00:00.073184477 19005 0x55ff33b08800 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.073188030 19005 0x55ff33b08800 DEBUG                default gsttracerutils.c:79:_priv_gst_tracing_init: Initializing GstTracer
0:00:00.073208577 19005 0x55ff33b08800 DEBUG     GST_PLUGIN_LOADING gstplugin.c:760:_priv_gst_plugin_load_file_for_registry: attempt to load plugin "./libgstkaldionline2.so"
0:00:00.176731128 19005 0x55ff33b08800 DEBUG     GST_PLUGIN_LOADING gstplugin.c:811:_priv_gst_plugin_load_file_for_registry: Could not find symbol 'gst_plugin_kaldionline2_get_desc', falling back to gst_plugin_desc
0:00:00.176773190 19005 0x55ff33b08800 DEBUG     GST_PLUGIN_LOADING gstplugin.c:818:_priv_gst_plugin_load_file_for_registry: Could not find plugin entry point in "./libgstkaldionline2.so"
Could not load plugin file: File "./libgstkaldionline2.so" is not a GStreamer plugin
alerenato commented 6 years ago

Thanks very much.