vo=libmpv OpenGL invalid enum
I'm using Anime4K in MPV and I thought about adding it to memento as well but when I run memento with the shaders (even when not activated by default) I get the following error:
~/D/J/A/[Judas] Kimetsu no Yaiba - Mugen Ressha-hen [1080p][HEVC x265 10bit][Multi-Subs]> memento \[Judas\]\ Kimetsu\ no\ Yaiba\ -\ Mugen\ Ressha-hen\ -\ 05.mkv
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [libmpv] 1920x1080 yuv420p10
[libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
[mpv_thumbnail_script_client_osc] The 'tick' event is deprecated and will be removed.
[libmpv_render] before loading program: OpenGL error INVALID_ENUM.
I also getting this error when trying to use the mpv thumbnail script
But to fix this I can add to the mpv.conf vo=gpu-next isn't compatible with memento since causes other problems
is there a way to fix the OpenGL error?
or is there a plan for future support of other --vo= options?
Looks like it's a problem with Anime4K being incompatible with vo=libmpv. I'd report this to either mpv or Anime4K and get their opinion. There's not anything I can do to fix this.
or is there a plan for future support of other --vo= options?
This will never happen because Memento uses libmpv and vo=libmpv is the only supported vo.
Looks like it's a problem with Anime4K being incompatible with
vo=libmpv. I'd report this to either mpv or Anime4K and get their opinion. There's not anything I can do to fix this.or is there a plan for future support of other --vo= options?
This will never happen because Memento uses libmpv and
vo=libmpvis the only supportedvo.
I tried updating to the latest memento-main and I'm getting the OpenGL error without any script/shaders added on a very clean install
I'm suspecting it might not be a anime4K issue(?)
Edit: I'll add that I tested memento on X11 (I'm usually using wayland) and the Issue still persists, so it's not a wayland issue for the very least
eyal@eyal-xps157590 ~/D/J/A/[Anime Time] Demon Slayer (Season 1 + Movie) [BD][Dual Audio][1080p][HEVC 10bit x265][AAC][Eng Sub]> echo $XDG_SESSION_TYPE
x11
eyal@eyal-xps157590 ~/D/J/A/[Anime Time] Demon Slayer (Season 1 + Movie) [BD][Dual Audio][1080p][HEVC 10bit x265][AAC][Eng Sub]> memento Demon\ Slayer\ -\ 01.mkv
Resuming playback. This behavior can be disabled with --no-resume-playback.
(+) Video --vid=1 (*) (hevc 1920x1080 23.976fps)
(+) Audio --aid=1 --alang=eng (*) 'Stereo' (aac 2ch 48000Hz)
Audio --aid=2 --alang=jpn 'Stereo' (aac 2ch 48000Hz)
(+) Subs --sid=1 --slang=eng (*) (f) 'Signs / Songs' (hdmv_pgs_subtitle)
Subs --sid=2 --slang=eng 'Dialogue' (hdmv_pgs_subtitle)
File tags:
Title: [Anime Time] Demon Slayer - S01E01 - Cruelty
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [libmpv] 1920x1080 yuv420p10
[libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
[libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
(Paused) AV: 00:00:07 / 00:23:41 (1%) A-V: -0.000
I'm also observing this error on a fresh clone, build & install of this repo; even without Anime4k shaders installed. Running on Manjaro Linux x86_64.
I can verify that it's happening on mpv v0.38.0 without any shaders. Looks like a bug in vo=libmpv. I'll try to collect more information and make a report to mpv.
[libmpv_render] Trying to load shader from disk...
[libmpv_render] before loading program: OpenGL error INVALID_ENUM.
[libmpv_render] Window size: 1920x1080 (Borders: l=0 t=0 r=0 b=0)
[libmpv_render] Video source: 1920x1080 (1:1)
[libmpv_render] Video display: (0, 0) 1920x1080 -> (0, 0) 1920x1080
[libmpv_render] Video scale: 1.000000/1.000000
[libmpv_render] OSD borders: l=0 t=0 r=0 b=0
[libmpv_render] Video borders: l=0 t=0 r=0 b=0
[libmpv_render] Texture for plane 0: 1920x1080
[libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
[libmpv_render] Texture for plane 1: 960x540
[libmpv_render] Texture for plane 2: 960x540
[libmpv_render] Testing FBO format rgba16f
This issue is being tracked at https://github.com/mpv-player/mpv/issues/15019
Update: with MPV 0.39 (?)
suddenly anime4k works without issues had to change the shortcuts to ctrl+3-9 instead of ctrl+1-6 + ctrl+0
cause apparently memento uses ctrl+1 and ctrl+2 for subtitle sizes and ctrl+0 to hide/display subtitles
but running memento with the shaders, I can switch between and clear the shaders without issues (at least it looks like it's working)
I still get
[libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
[libmpv_render] before loading program: OpenGL error INVALID_ENUM.
when the video loads for the first time and
[libmpv_render] after creating texture: OpenGL error INVALID_ENUM.
after every switch of shaders
but I can see changes in the image quality regardless