jellyfin-mpv-shim icon indicating copy to clipboard operation
jellyfin-mpv-shim copied to clipboard

[macOS] Unable to set video playback filters

Open glottisfaun0000 opened this issue 1 year ago • 3 comments

After installing on macOS using the installation steps with brew and pip3, the one feature I can't get working is the filters like Anime4k. Here's what the output says when I try to select a filter in the c menu:

2023-12-19 18:00:55,903 [ WARNING] player: Error when processing client-message.
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/player.py", line 445, in handle_client_message
    self.menu.menu_action("ok")
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/menu.py", line 247, in menu_action
    self.menu_list[self.menu_selection][1]()
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/video_profile.py", line 179, in menu_handle
    settings_were_successful = self.load_profile(profile_name)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/video_profile.py", line 148, in load_profile
    setattr(self.player, key, value)
  File "/opt/homebrew/lib/python3.11/site-packages/python_mpv_jsonipc.py", line 648, in __setattr__
    return self.command("set_property", name.replace("_", "-"), value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/python_mpv_jsonipc.py", line 639, in command
    return self.mpv_inter.command(command, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/python_mpv_jsonipc.py", line 347, in command
    raise MPVError(data["error"])
python_mpv_jsonipc.MPVError: unsupported format for accessing property

Tried in and out of a venv, same result. Any ideas?

glottisfaun0000 avatar Dec 20 '23 02:12 glottisfaun0000

Interestingly I have the same issue on Windows, just with a different error of "Could not open file ''".

L3tum avatar Mar 15 '24 22:03 L3tum

After installing on macOS using the installation steps with brew and pip3, the one feature I can't get working is the filters like Anime4k. Here's what the output says when I try to select a filter in the c menu:

2023-12-19 18:00:55,903 [ WARNING] player: Error when processing client-message.
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/player.py", line 445, in handle_client_message
    self.menu.menu_action("ok")
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/menu.py", line 247, in menu_action
    self.menu_list[self.menu_selection][1]()
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/video_profile.py", line 179, in menu_handle
    settings_were_successful = self.load_profile(profile_name)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/jellyfin_mpv_shim/video_profile.py", line 148, in load_profile
    setattr(self.player, key, value)
  File "/opt/homebrew/lib/python3.11/site-packages/python_mpv_jsonipc.py", line 648, in __setattr__
    return self.command("set_property", name.replace("_", "-"), value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/python_mpv_jsonipc.py", line 639, in command
    return self.mpv_inter.command(command, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/python_mpv_jsonipc.py", line 347, in command
    raise MPVError(data["error"])
python_mpv_jsonipc.MPVError: unsupported format for accessing property

Tried in and out of a venv, same result. Any ideas?

Had same issue. I was able to get the shaders like anime4k working by going to jellyfin-mpv-shim folder and using the anime4k input as normal to change to correct shader. Seems like it will remember the one you changed to previously. Not ideal solution, but good enough at least for me.

Ryptahi avatar Apr 15 '24 05:04 Ryptahi