jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
532 stars 67 forks source link

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

Closed BurlyLlama28 closed 1 year ago

BurlyLlama28 commented 2 years ago

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?

qbe commented 2 years ago

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

BurlyLlama28 commented 2 years ago

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

qbe commented 2 years ago

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

BurlyLlama28 commented 2 years ago

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

qbe commented 2 years ago

can't check right now, get a current version

BurlyLlama28 commented 2 years ago

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

BurlyLlama28 commented 2 years ago

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

qbe commented 2 years ago

have you checked deb-multimedia ?

qbe commented 2 years ago

or check any other repository than the default raspbian one

BurlyLlama28 commented 2 years ago

@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

qbe commented 2 years ago

i cannot help you any further then

BurlyLlama28 commented 2 years ago

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

BurlyLlama28 commented 2 years ago

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

neinseg commented 2 years ago

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)'