Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

vlc is glitchy? are you using wayland? use Xwayland

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
ingenarel
n00b
n00b
User avatar
Posts: 15
Joined: Thu Jan 16, 2025 11:07 pm

vlc is glitchy? are you using wayland? use Xwayland

  • Quote

Post by ingenarel » Sat Feb 01, 2025 7:34 am

so vlc was glitchy af for me i couldn't do anything.
so after trying to miserably debug it, i thought "meh lemme just try to use it using Xwayland"
so i enabled the X flag for vlc and disabled the wayland flag

now everything works perfectly like magic. no glitchy videos anymore
Top
causality
Apprentice
Apprentice
Posts: 246
Joined: Sat Jun 03, 2006 7:56 pm

  • Quote

Post by causality » Thu Mar 06, 2025 2:06 am

I use Plasma on this machine. I have both Xorg and Wayland installed on this system and SDDM lets me select which I want on graphical login. I also experienced some unexpected video playback behavior when I switched from Xorg to Wayland. I also have vlc but my most of the time, I use smplayer (with mpv) as my go-to video player.

Under Xorg, my preferred video output (the --vo=X argument to mpv or mplayer) is "gpu-next." It gives good performance and behaves as expected.

Smplayer has an option (under the "Video" tab of General in the settings) called "Wayland support." This tries to prevent video playback from happening in a second window as it tends to do under Wayland. Apparently, the intended design of smplayer is that the mpv/etc video output stays in the one smplayer window -- that way, unless you use full-screen mode, all the usual GUI controls (stop, pause, reverse, fast-forward buttons) are right there and available, along with the usual progress bar for that video. Some VO options like dmabuf-wayland and wlshm will appear in a second window regardless of this setting, but it works for most.

If I disable that "Wayland support" setting, the gpu-next VO option opens a second window but otherwise performs as well as it did on Xorg. If I enable the "Wayland support" setting, everything stays in a single window but the performance with gpu-next is terrible. The frame rate is drastically reduced. What works well for me under Wayland is to use the old "xv" VO driver with "Wayland support" enabled. Based on the very low (single-digit) CPU usage as reported by htop, regardless of the codec or resolution of the videos played, I assume this is still using the GPU.

It sounds like you found something similar. My media-video/mpv package is compiled with the "wayland" USE flag. It's also got the "xv" USE flag, which, according to the output of "equery uses mpv", is described as: "Add in optional support for the Xvideo extension (an X API for video playback)."
Top
Post Reply

2 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy