mpv-mpris icon indicating copy to clipboard operation
mpv-mpris copied to clipboard

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

Open Jinsung-L opened this issue 2 years ago • 6 comments

[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?

Jinsung-L avatar Oct 13 '23 05:10 Jinsung-L

+1 Debian 12 same error!!!

akashpal-21 avatar Oct 18 '23 08:10 akashpal-21

+1 Debian 12 same error!!!

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

akashpal-21 avatar Oct 18 '23 08:10 akashpal-21

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.

hoyon avatar Oct 18 '23 16:10 hoyon

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.

JustMaris avatar Dec 09 '23 19:12 JustMaris

+1, same issue on LMDE.

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

limaceous-bushwhacker avatar Apr 28 '24 00:04 limaceous-bushwhacker