intel / gstreamer-media-SDK

GNU Lesser General Public License v2.1
90 stars 53 forks source link

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 5 years ago

AntonGrishin commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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

ishantbansal commented 4 years ago

export GST_PLUGIN_PATH=/gstreamer-1.0/
try exporting path

jbolduc01 commented 4 years ago

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 commented 4 years ago

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

jbolduc01 commented 4 years ago

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 commented 3 years ago

I am having same issue.

lnogueir commented 3 years ago

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