celluloid icon indicating copy to clipboard operation
celluloid copied to clipboard

GLSL-Shaders not working

Open gsantner opened this issue 3 years ago • 8 comments

Overview Description:

The issue is that glsl-shaders do not work in celluloid/gnome-mpv, but do in normal mpv.

  • In mpv shaders can be used to improve video quality a lot. This however does not work in celluloid. It only doesn't work, I don't see any error message in logs.
  • Example setup: https://github.com/bloc97/Anime4K/blob/master/md/GLSL_Instructions_Linux.md
  • I have a symlink of mpv to celluloid, same scripts/mpv.conf/input.conf/shaders. (input&mpv.conf also set int celluloid settings). So other settings apply correctly, input shortcut also work.
  • Example conf loading from link above - CTRL+4 no-osd change-list glsl-shaders set "~~/shaders/ .... show-text "Mode A+A (HQ) - I press CTRL+4 and see direct quality improvement in mpv, and a OSD message that this Mode A+A loaded.
  • In celluloid I also get that Mode A+A message, but video quality stays unchaned.

Steps to Reproduce:

  1. Use glsl-shaders= in mpv-options, in mpv.conf or via lua scripts
  2. it doesn't work, no quality improvement

Version:

Latest Debian version (bullseye 11)

grafik

gsantner avatar Jun 05 '22 11:06 gsantner

CTRL+4 no-osd change-list glsl-shaders set "~~/shaders/ .... show-text "Mode A+A (HQ)

~~ doesn't work in Celluloid right now due to #687. It should work if you use absolute paths instead.

gnome-mpv avatar Jun 06 '22 09:06 gnome-mpv

Can WorkingDirectory in .desktop maybe set to something so it resolves correctly? (i.e. workaround)

gsantner avatar Jun 06 '22 09:06 gsantner

Maybe. I guess it could work if you set WorkingDirectory to Celluloid's config dir.

gnome-mpv avatar Jun 06 '22 09:06 gnome-mpv

  • 1 to this issue. I have an absolute path to my shader defined in my mpv.conf file, and it's set to load in Celluloid, but the shader is never actually loaded when playing video.

RobotRoss avatar Apr 19 '23 17:04 RobotRoss

@RobotRoss Do you see any errors in the log?

gnome-mpv avatar Apr 20 '23 06:04 gnome-mpv

I can't reproduce it with absolute path to the shaders and vo=gpu-next, the shaders get loaded and look as expected

chermnyx avatar Dec 09 '23 11:12 chermnyx

I decided to revisit this as I've just installed a new system.

Seems like part of the issue is that the flatpak permissions are not set to allow access to the home directory. Using flatseal to manually grant access to the home directory allowed the shader to load.

This was using an absolute path - I haven't tried a relative path.

As an aside, if a shader fails to load (e.g. for the above permissions issue) it'd be very helpful if an error message popped up informing the user of the issue instead of silently failing.

RobotRoss avatar Jan 07 '24 10:01 RobotRoss