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

Video playback not working under NVIDIA Wayland #156

Open
OrdinaryMagician opened this issue Nov 11, 2024 · 2 comments
Open

Video playback not working under NVIDIA Wayland #156

OrdinaryMagician opened this issue Nov 11, 2024 · 2 comments

Comments

@OrdinaryMagician
Copy link

What it says on the tin. Even after installing the necessary requirements, it just seems that videos do not play at all.

It's possible to get them to work by setting GDK_BACKEND=x11 before launching the program from a terminal, but this results in severe visual glitching (audio plays just fine, though).

@ahodesuka
Copy link
Owner

I'm unable to reproduce this on an old Thinkpad using Intel iGPU HD4400, running arch and hyprland.

The immediate thing that comes to mind is probably this code here, but this shouldn't prevent gstreamer from falling back to decoders that exist on your machine. It could however prefer codecs that don't function properly (not sure about this tbh).

A good way to see if it's a gstreamer problem itself is to try playing some video files with gst-play, might be gst-play-1.0 depending on the distro.
Something like gst-play --videosink gtkglsink --use-playbin2 --volume 0.5 [video file path] would be pretty much be the same pipeline ahoviewer uses for videos.

@OrdinaryMagician
Copy link
Author

Trying that, it fails to initialize OpenGL, apparently.

Seeing as it works on your end, I got curious and checked on my AMD laptop. Works fine there. I guess it's a NVIDIA issue (not surprised in the slightest, then).

@OrdinaryMagician OrdinaryMagician changed the title Video playback not working under Wayland Video playback not working under NVIDIA Wayland Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants