jellyfin / jellyfin-mpv-shim

MPV Cast Client for Jellyfin
Other
1.5k stars 88 forks source link

[linux system] jellyfin-mpv-shim fails to play subsequent video (vo=gpu) #300

Closed dream7180 closed 1 year ago

dream7180 commented 1 year ago

After start jellyfin-mpv-shim, first play video using it is OK, but then fials to play subsequent video. Arch linux system. Messages below:

2022-09-26 15:09:57,335 [ ERROR] mpv: vo/gpu: Can't handle VT release - signal already used 2022-09-26 15:09:57,335 [ WARNING] mpv: vo/gpu/opengl: Failed to set up VT switcher. Terminal switching will be unavailable. 2022-09-26 15:09:57,349 [ ERROR] mpv: vo/gpu/opengl: Failed to set CRTC for connector 95: Permission denied error: XDG_RUNTIME_DIR is invalid or not set in the environment. 2022-09-26 15:09:57,362 [ ERROR] mpv: vo/gpu: Failed initializing any suitable GPU context! 2022-09-26 15:09:57,363 [ ERROR] mpv: cplayer: Error opening/initializing the selected video_out (--vo) device. 2022-09-26 15:09:57,363 [ INFO] mpv: cplayer: Video: no video 2022-09-26 15:09:57,363 [ INFO] mpv: cplayer:

dgalli1 commented 1 year ago

Did you figure anything out about this issue? I got a similar issue where i can use the gpu context outside the shim, but it will fail while executing it with it.

iwalton3 commented 1 year ago

I can confirm I am getting this issue too on Debian with the latest MPV master build. It did not happen with older builds. You can set mpv_ext: true in your config as a quick workaround if you also have the mpv binary installed.

I was able to get it working correctly with the latest MPV master by installing libxpresent-dev (I am on Debian Bullseye). See this GitHub issue: https://github.com/mpv-player/mpv/issues/9773