Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't load plugin. #42

Closed
vsellen opened this issue Dec 11, 2018 · 4 comments
Closed

Couldn't load plugin. #42

vsellen opened this issue Dec 11, 2018 · 4 comments

Comments

@vsellen
Copy link

vsellen commented Dec 11, 2018

When I run the example app I get the message "Couldn't load plugin." in the middle of the electron window. Perhaps I am using incompatible versions?
Thanks!

Environment:

Ubuntu 18.04.1 LTS 64bit
$ electron --version v3.0.10
$ node --version v10.11.0

$ mpv --version
mpv 0.27.2 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
ffmpeg library versions:
   libavutil       55.78.100
   libavcodec      57.107.100
   libavformat     57.83.100
   libswscale      4.8.100
   libavfilter     6.107.100
   libswresample   2.9.100
ffmpeg version: 3.4.4-0ubuntu0.18.04.1

$ readelf -d node_modules/electron/dist/libffmpeg.so
Dynamic section at offset 0xe40 contains 22 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libavformat.so.57]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x460
 0x000000000000000d (FINI)               0x57c
 0x0000000000000019 (INIT_ARRAY)         0x200e30
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x200e38
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x1b8
 0x0000000000000005 (STRTAB)             0x2e0
 0x0000000000000006 (SYMTAB)             0x1f0
 0x000000000000000a (STRSZ)              161 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000003 (PLTGOT)             0x201000
 0x0000000000000007 (RELA)               0x3b8
 0x0000000000000008 (RELASZ)             168 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x398
 0x000000006fffffff (VERNEEDNUM)         1
 0x000000006ffffff0 (VERSYM)             0x382
 0x000000006ffffff9 (RELACOUNT)          3
 0x0000000000000000 (NULL)               0x0
@vsellen
Copy link
Author

vsellen commented Dec 11, 2018

I found my issue. For others:
I rebuilt with the proper node version by changing the following npm target in package.json.

"prebuild-posix": "rm -rf prebuilds && prebuild -t 10.11.0 -a x64 --strip",

Plugin looks great. Thanks!

@vsellen vsellen closed this as completed Dec 11, 2018
@YzwOnO
Copy link

YzwOnO commented May 17, 2021

@vsellen I had this problem at Ubuntu 18.04.I'd like to try your method. Can you elaborate on the implementation steps?Thank you.

@YzwOnO
Copy link

YzwOnO commented May 17, 2021

If it's convenient, can I have a look at your example app code

@vsellen
Copy link
Author

vsellen commented May 20, 2021

@YzwOnO It's been quite a while so I don't really remember the details, but I did find a local copy of this project in what I think is the state just after I got the example working. I pushed it to https://github.com/vsellen/mpv_test.js

good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants