Page 1 of 1

A video works on mpv & Chrome but not on VLC

Posted: 04 Dec 2024 19:18
by jebez
Hi

I'm on Debian testing KDE Wayland, VLC 3.0.21 from the Debian repository.

E.g. https://www.youtube.com/watch?v=oqZZ2hYD9dQ downloaded via yt-dlp (giving a .webm file) works on mpv & Chrome but not on VLC: sound but black screen.

Thanks.

Re: A video works on mpv but not on VLC

Posted: 05 Dec 2024 12:13
by Rémi Denis-Courmont
VLC 3.0 doesn't officially support Wayland. Be sure to use XWayland if you really need that.

Re: A video works on mpv but not on VLC

Posted: 05 Dec 2024 15:14
by jebez
There's Xwayland, displayed in System Monitor.

Whether Debian testing KDE Wayland or X11: same.

mpv & Chrome can be both X11 or Wayland (verifiable with xeyes).

By the way why not VLC Wayland?

Re: A video works on mpv & Chrome but not on VLC

Posted: 05 Dec 2024 18:19
by Rémi Denis-Courmont
Qt didn't support Wayland properly at the time when VLC 3.0.0.came out.

Re: A video works on mpv & Chrome but not on VLC

Posted: 06 Dec 2024 00:58
by jebez
Well I failed to build VLC 4 https://wiki.videolan.org/UnixCompile/, with lot of --disable-, otherwise error messages:

Code: Select all

./configure --disable-xcb --disable-qt --disable-nls --disable-avcodec --disable-swscale --disable-dav1d
I finished with:

Code: Select all

make[4]: *** [Makefile:32903: demux/dash/mpd/libvlc_adaptive_la-TemplatedUri.lo] Error 1
I also built VLC 3.0.x with --enable-wayland:

Code: Select all

cd /media/a/01DAC9FBBCD9DE20;git clone --branch 3.0.x https://code.videolan.org/videolan/vlc.git;cd vlc;./bootstrap;cd contrib;mkdir native;cd native;../bootstrap;make;cd /media/a/01DAC9FBBCD9DE20/vlc;./configure --enable-wayland;make
but as https://wiki.archlinux.org/title/VLC_me ... nd_support it's broke: it's X11 (xeyes follows) & the video still doesn't work.

Will my bug be fixed?

Re: A video works on mpv & Chrome but not on VLC

Posted: 06 Dec 2024 14:20
by Rémi Denis-Courmont
Your problem description is much too vague for anyone to fix it. Besides it seems specific to your setup.

Re: A video works on mpv & Chrome but not on VLC

Posted: 06 Dec 2024 16:23
by jebez
You right: the video works on VLC on Debian stable KDE Wayland live https://www.debian.org/distrib/.

2 differences: I'm on Debian testing & the official Nvidia beta driver https://www.nvidia.com/en-us/drivers/, the installer is NVIDIA-Linux-x86_64-565.57.01.run, the live it's NV168 (Nouveau).

A bug of Debian testing so? I wonder why it still works on mpv & Chrome...

What is your distro?

Re: A video works on mpv & Chrome but not on VLC

Posted: 03 Feb 2025 16:34
by jebez
I'm on Arch Linux now.

The solution:

Code: Select all

env -u DISPLAY vlc
https://wiki.archlinux.org/title/VLC_me ... nd_support