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

ValueError: ('Invalid value for mpv parameter', -4, ...

Open BurlyLlama28 opened this issue 3 years ago • 14 comments
trafficstars

when I run a couple of video on raspberry pi and then turn by key .playlist_play_index(0) - it gives me that error Can you help me please?

BurlyLlama28 avatar Dec 25 '21 11:12 BurlyLlama28

Same Issue here,

pi@raspberrypi:~ $ mpv -V
mpv 0.34.0 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
FFmpeg library versions:
   libavutil       56.70.100
   libavcodec      58.134.100
   libavformat     58.76.100
   libswscale      5.9.100
   libavfilter     7.110.100
   libswresample   3.9.100
FFmpeg version: 4.4.1
pi@raspberrypi:~ $ sudo lsof -p 489 | grep mpv
python3 489   pi  mem    REG      179,2  1767868  41489 /usr/lib/arm-linux-gnueabihf/libmpv.so.1.107.0

turns out my libmpv was outdated, so i had to manually add the deb-multimedia repository and install libmpv1 even tho it was already installed. The Joy of working with debian.

check out my project for context

qbe avatar Jan 02 '22 12:01 qbe

@qbe I have this issue on raspberry pi os, do you know how to update libmpv1 there?

BurlyLlama28 avatar Jan 12 '22 22:01 BurlyLlama28

check what version of libmpv1 your distro has in which repository, add that repository, manually install libmpv1 to update libmpv1, and thats probably it

qbe avatar Jan 12 '22 23:01 qbe

@qbe I have libmpv1 version 0.32.0-3. What version of libmpv1 worked for you?

BurlyLlama28 avatar Feb 13 '22 20:02 BurlyLlama28

can't check right now, get a current version

qbe avatar Feb 13 '22 20:02 qbe

It seems kinda a problem, because 0.32.0 is the latest version for raspberry pi os

BurlyLlama28 avatar Feb 13 '22 20:02 BurlyLlama28

Like really I don't know what to do :(

BurlyLlama28 avatar Feb 13 '22 20:02 BurlyLlama28

have you checked deb-multimedia ?

qbe avatar Feb 13 '22 20:02 qbe

or check any other repository than the default raspbian one

qbe avatar Feb 13 '22 20:02 qbe

@qbe I somehow updated MPV by the Debian package, have this version right now

mpv 0.34.1 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
 built on Thu Jan 13 00:55:51 UTC 2022
FFmpeg library versions:
   libavutil       56.70.100
   libavcodec      58.134.100
   libavformat     58.76.100
   libswscale      5.9.100
   libavfilter     7.110.100
   libswresample   3.9.100
FFmpeg version: 4.4.1

But still have the same issue

BurlyLlama28 avatar Feb 13 '22 20:02 BurlyLlama28

i cannot help you any further then

qbe avatar Feb 13 '22 20:02 qbe

@jaseg Maybe you can explain: why I have this issue?

BurlyLlama28 avatar Feb 13 '22 21:02 BurlyLlama28

@jaseg I really need your help. It's important to me

BurlyLlama28 avatar Feb 16 '22 23:02 BurlyLlama28

Hey there, The guess by @qbe that this may be due to a version mismatch is probably right.

Could it be that you updated your mpv package (that has the mpv binary) but did not update your libmpv package (that has libmpv.so)? If I remember correctly debian has these two in two separate packages that can be updated independently.

You can check the libmpv version your python script is loading by printing the return value of mpv.MPV().mpv_version, e.g. using:

python3 -c 'import mpv; print(mpv.MPV().mpv_version)'

neinseg avatar Feb 23 '22 22:02 neinseg