jellyfin-mpv-shim
jellyfin-mpv-shim copied to clipboard
GPU Maxed out when streaming to shim
I am using Linux Elementary OS Hera 5.1, which is relatively comparable to Ubuntu 18.04 LTS, with the flatpak version of jellyfin-mpv-shim
Don't quite know how it happened, but I think after running flatpak update
yesterday mpv shim started to become stuttering in a strange way. I am not talking about the webview, which I don't use for efficiency purposes. I realized (being on a laptop) that the power consumption went madly high when streaming to mpv without doing anything to the CPU, so I checked and the GPU goes to 100% when trying to stream full 1080p or 720p, dropping frames in the process probably due to the GPU not being able to handle it.
This phenomenon is ONLY happening with the shim, when using the mpv command to play a local file or a yourtube-video for comparison, a 1080p video uses something like 20% of the GPU and something like 80% less power overall. I have an integrated GPU, namely Intel HD 615, and mpv is using vaapi per default.
If you need further info about version or anything just ask, I am a bit confused to what the reason for that could be.
I would encourage collecting logs and also trying the non-flatpak version.
I have installed over pip now and it resolves the problem, so its definitely flatpak-related. Unfortunately, there is no difference I can see in the logs of the locally run and the flatpak. Can it be that this happens due to an updated version of the gnome package?
I wouldn't be surprised. Despite Flatpak claiming to prevent breakage of packages, I've had platform updates do it before.
The MPV build is based on celluloid. Maybe try that with the same media files and let me know if it exhibits a similar issue?
The celluloid flatpak did not use excessive GPU ressources when opening a local file. I don't know how to check how it performs when a weblink is used, as this option is not present in the GUI. However, I'd say that it is reasonable to assume that the load is not from loading http data.
Silly question: You don't have the shader pack feature enabled, right?
If you provide logs for the application, it will show if MPV is doing something unusual. You can also set a more verbose logging mode for mpv in the config.