alliedvision / gst-vmbsrc

Official vmbsrc element for use of Vimba X with GStreamer
Other
4 stars 5 forks source link

ERROR: gst_parse_error: no element "vmbsrc" #5

Closed AhmedL99 closed 6 months ago

AhmedL99 commented 6 months ago

System infos:

Bug description:

After the installation of gst-vmbsrc and successfully running this command in CLI

gst-launch-1.0 vmbsrc camera=<cam_ID> num-buffers=1 ! pngenc ! filesink location=out.png

I attempted to execute the same command using Python and the gi library, but encountered this error:

  File "fpd_metrics_checker.py", line 34, in <module>
    pipeline = Gst.parse_launch(pipeline_str)
gi.repository.GLib.Error: gst_parse_error: no element "vmbsrc" (1)

Gst global variables GST_PLUGIN_SYSTEM_PATH & GST_PLUGIN_PATH are set to the appropriate plugin folder and we had even used the Gst.Registry.scan_path() option.

The goal is to launch the GStreamer command and extract certain metrics ( no need for VmbPy)

Looking forward to hearing from you, Ahmed

Teresa-AlliedVision commented 6 months ago

Hello Ahmed, what camera model are you using? Specifically the interface. Next: Do you have the python plugin loader installed? Check with gst-inspect-1.0 python. If not, install with sudo apt install gstreamer1.0-python3-plugin-loader. What folder is the plugin in, is it specifically plugins/python?

AhmedL99 commented 6 months ago

The problem was solved by installing the plugin loader, thanks a lot!

Teresa-AlliedVision commented 6 months ago

Great, thank you for the feedback. The missing plugin loader is a general issue in the current gstreamer python module version it seems.