Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

GStreamer-WARNING **: 16:23:19.467: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so' #178

Open
AntonGrishin opened this issue Aug 16, 2019 · 10 comments

Comments

@AntonGrishin
Copy link

Hi, i try to use gstreamer and plugin failed to load:

gst-inspect-1.0 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so

(gst-inspect-1.0:30311): GStreamer-WARNING **: 16:15:08.127: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so': /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so: undefined symbol: xcb_dri3_pixmap_from_buffer_checked
Could not load plugin file: Opening module failed: /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so: undefined symbol: xcb_dri3_pixmap_from_buffer_checked

This symbol contains in libxcb-dri3.so

If I use LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libxcb-dri3.so gst-inspect-1.0 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so, then all works

Plugin Details:
  Name                     mfx
  Description              MFX encoder/decoder/video post-processing plugins
  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so
  Version                  1.4.0.rc9
  License                  LGPL
  Source module            gstmfx
  Binary package           gstmfx
  Origin URL               http://www.intel.com

  mfxh264dec: MFX H264 decoder
  mfxhevcdec: MFX HEVC decoder
  mfxmpeg2dec: MFX MPEG2 decoder
  mfxvc1dec: MFX VC1 decoder
  mfxvp8dec: MFX VP8 decoder
  mfxjpegdec: MFX JPEG decoder
  mfxdecode: MFX Video Decoder
  mfxvpp: MFX video postprocessing
  mfxsinkelement: MFX sink
  mfxsink: MFX Sink Bin
  mfxh264enc: MFX H.264 encoder
  mfxhevcenc: MFX H.265 encoder
  mfxjpegenc: MFX JPEG encoder
  mfxvc1parse: VC1 parser

  14 features:
  +-- 14 elements

Why plugin didnt works on default?
make link list didnt contains above lib

-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 
-lglib-2.0 -lgstallocators-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lgstgl-1.0 -lgstvideo-1.0 
-lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lva -ldrm -ldrm_intel -ldrm -lva-drm -lva 
-ludev -lwayland-cursor -lEGL -lwayland-egl -lwayland-client -lXrandr -lEGL -lgstcodecparsers-1.0
-lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lgstpbutils-1.0 -lgstaudio-1.0 -lgstvideo-1.0
-lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lstdc++ /opt/intel/mediasdk/lib/libmfx.so 
-lgstallocators-1.0 -lgstgl-1.0 -lva -ldrm -ldrm_intel -lva-drm -ludev -lwayland-cursor -lEGL 
-lwayland-egl -lwayland-client -lXrandr -lgstcodecparsers-1.0 -lgstpbutils-1.0 -lgstaudio-1.0 
-lstdc++ 
@pichikaudaykiran
Copy link

@AntonGrishin
I have done the below steps to compile and install the gstreamer-media-sdk.
mkdir build && cd build && cmake ..
make && make install

After executing make install command, libgstmfx.so is installed in /usr/local/gstreamer-1.0/.
Below is the output when i run gst-inspect.

pkiran@clr-linux~/user/gstreamer-media-sdk/build $ gst-inspect-1.0 /usr/local/gstreamer-1.0/libgstmfx.so
Plugin Details:
Name mfx
Description MFX encoder/decoder/video post-processing plugins
Filename /usr/local/gstreamer-1.0/libgstmfx.so
Version 1.4.0.rc9
License LGPL
Source module gstmfx
Binary package gstmfx
Origin URL http://www.intel.com

mfxh264dec: MFX H264 decoder
mfxhevcdec: MFX HEVC decoder
mfxmpeg2dec: MFX MPEG2 decoder
mfxvc1dec: MFX VC1 decoder
mfxvp8dec: MFX VP8 decoder
mfxjpegdec: MFX JPEG decoder
mfxdecode: MFX Video Decoder
mfxvpp: MFX video postprocessing
mfxsinkelement: MFX sink
mfxsink: MFX Sink Bin
mfxh264enc: MFX H.264 encoder
mfxhevcenc: MFX H.265 encoder
mfxjpegenc: MFX JPEG encoder
mfxvc1parse: VC1 parser

14 features:
+-- 14 elements

Please let us know if your compilation procedure is different than the above ?

@samuelba
Copy link

samuelba commented Nov 5, 2019

I have the same issue (Ubuntu 18.04). I did the same build steps as @pichikaudaykiran but when I do gst-inspect-1.0 /usr/local/gstreamer-1.0/libgstmfx.so I get:

(gst-inspect-1.0:16999): GStreamer-WARNING **: 15:24:00.036: Failed to load plugin '/usr/local/gstreamer-1.0/libgstmfx.so': /usr/local/gstreamer-1.0/libgstmfx.so: undefined symbol: xcb_dri3_pixmap_from_buffer_checked
Could not load plugin file: Opening module failed: /usr/local/gstreamer-1.0/libgstmfx.so: undefined symbol: xcb_dri3_pixmap_from_buffer_checked

@ishantbansal
Copy link

same issue with me and unable to use mfx functions - it says No such element or plugin 'mfxvpp'

I have the same issue (Ubuntu 18.04). I did the same build steps as @pichikaudaykiran but when I do gst-inspect-1.0 /usr/local/gstreamer-1.0/libgstmfx.so I get:

(gst-inspect-1.0:16999): GStreamer-WARNING **: 15:24:00.036: Failed to load plugin '/usr/local/gstreamer-1.0/libgstmfx.so': /usr/local/gstreamer-1.0/libgstmfx.so: undefined symbol: xcb_dri3_pixmap_from_buffer_checked
Could not load plugin file: Opening module failed: /usr/local/gstreamer-1.0/libgstmfx.so: undefined symbol: xcb_dri3_pixmap_from_buffer_checked

@jbolduc01
Copy link

I am running into the same exact issue. Were you able to get out of this?

@ishantbansal
Copy link

export GST_PLUGIN_PATH=/gstreamer-1.0/
try exporting path

@jbolduc01
Copy link

No effect. I still need to do LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libxcb-dri3.so gst-inspect-1.0 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmfx.so to see plugins details.

@ishantbansal
Copy link

export LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri/ && LIBVA_DRIVER_NAME=i965

@jbolduc01
Copy link

When I should do this, before cmake?
However, I see that when I check blacklisted files:

up@up:~/gstreamer-media-SDK/build$ gst-inspect-1.0 -b
Blacklisted files:
  libgstomx-generic.so
  libgstmfx.so
  libgstomx.so

Any idea?

@1subodh
Copy link

1subodh commented Nov 26, 2020

I am having same issue.

@lnogueir
Copy link

lnogueir commented Feb 1, 2021

I had the same problem. Started working for me again after:

sudo apt-get install --reinstall gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer1.0-0

leopck added a commit to leopck/gstreamer-media-SDK that referenced this issue Apr 26, 2021
The appending of the library in the CMakeLists wasn't set correctly.
This fix will append the LIBRARIES in the CMake for XCB to ${libs} properly

Resolves:
- intel#178
- intel#175

Signed-off-by: Phoong, Stanley Cheong Kwan <[email protected]>
leopck added a commit to leopck/gstreamer-media-SDK that referenced this issue Apr 26, 2021
The appending of the library in the CMakeLists wasn't set correctly.
This fix will append the LIBRARIES in the CMake for XCB to ${libs} properly

Resolves:
- intel#178
- intel#175

Signed-off-by: Phoong, Stanley Cheong Kwan <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants