Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vo=libmpv OpenGL invalid enum #243

Open
eyalmazuz opened this issue Sep 26, 2024 · 5 comments
Open

vo=libmpv OpenGL invalid enum #243

eyalmazuz opened this issue Sep 26, 2024 · 5 comments
Labels
can't fix For some reason or another this issue cannot be fixed

Comments

@eyalmazuz
Copy link

eyalmazuz commented Sep 26, 2024

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?

@eyalmazuz eyalmazuz changed the title vo=gpu opens regular MPV alongside memento vo=libmpv OpenGL invalid enum Sep 27, 2024
@ripose-jp
Copy link
Owner

ripose-jp commented Oct 1, 2024

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.

@ripose-jp ripose-jp added the can't fix For some reason or another this issue cannot be fixed label Oct 1, 2024
@eyalmazuz
Copy link
Author

eyalmazuz commented Oct 1, 2024

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.

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

@Jefffrey
Copy link

Jefffrey commented Oct 1, 2024

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.

@ripose-jp
Copy link
Owner

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

@ripose-jp
Copy link
Owner

This issue is being tracked at mpv-player/mpv#15019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't fix For some reason or another this issue cannot be fixed
Projects
None yet
Development

No branches or pull requests

3 participants