hoyon / mpv-mpris

MPRIS plugin for mpv
MIT License
594 stars 35 forks source link

libavformat.so.58: cannot open shared object file: No such file or directory #99

Open Jinsung-L opened 11 months ago

Jinsung-L commented 11 months ago
[mpris] C plugin error: 'libavformat.so.58: cannot open shared object file: No such file or directory'
[mpris] Could not load SO plugin /home/jinsung/snap/mpv/50/.config/mpv/scripts/mpris.so

OS: Ubuntu 23.04 x86_64

'ffmpeg' is installed with apt and 'mpv' is installed with snap.

It seems like my system has installed 'libavformat59'.

$ whereis libavformat.so.59
libavformat.so.59: /usr/lib/x86_64-linux-gnu/libavformat.so.59

Any solution or workarounds?

akashpal-21 commented 10 months ago

+1 Debian 12 same error!!!

akashpal-21 commented 10 months ago

+1 Debian 12 same error!!!

I got it working by installing the plugin from the repo!

hoyon commented 10 months ago

Are you using the version from the GitHub releases page? That's the version built in GitHub Actions which uses Ubuntu 22.04 which must be using an older version of libavformat.

Maybe it'd be better to use static linking for the direct download version while versions in distros repos can continue to use shared linking which will presumably be rebuilt whenever libavformat is updated.

JustMaris commented 9 months ago

I'm using Manjaro 23.1.0 and checking the ffmpeg package, it says that libavformat dependency is 60-64. Can't find the specific version, but it seems to be above 58 for sure.

limaceous-bushwhacker commented 4 months ago

+1, same issue on LMDE.

EDIT: Package mpv-mpris from Debian repositories seem to work fine.