nvlc wayland(?) bugs (video cut off, keys unresponsive)
I've got 2 very similar machines running the same version of VLC, one experiencing a couple of bugs with nvlc
, the other not. The one with bugs is running Wayland, the one without is using X11.
Both "good" and "bad" machines are running the exact same (up-to-date) version of VLC:
$ vlc --version
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
System details are below. They're running up-to-date Debian versions. There's no custom config that I know of.
I'm starting nvlc from the command line, like:
nvlc foo.mkv
== The Problems:
=== Problem 1:
Key commands in the player window (e.g. left/right arrow for navigation, "f" for fullscreen, and up/down arrows for volume) don't work.
Note: when I tab to the terminal and hit "f", most of the controls then "appear" to work. But it seems this is because although the video is fullscreen the focus is still with the terminal (up/down arrows don't work for volume, "a"/z" do, you can quit with "q", etc). Once you tab over to the player window, key controls consistently no longer work.
=== Problem 2:
The display on both computers is 1920x1080 (16:9). If I play a 480x360 (4:3) video in nvlc
(vlc
doesn't experience this problem), and either fullscreen it with -f
on the command line or hitting the "f"
key in the terminal, the window cuts off part of the video and fails to cover the whole screen. It looks something like this:
+---+-----+---+---+
| | | | |
| A | B | C | D |
| | | | |
+---+-----+---+---+
- Section A: A black bar. This is correct!
- Section B: The left hand side of the video
- Section C: Should be showing the rest of the video, but instead "sees through" to the terminal below
- Section D: Should be a black bar, but instead "sees through" to the terminal below
The width:height of A+B appears to be 4:3. In other words, it seems like the video is centered relative to the width of the display, but the width of the fullscreen window is the width of the video instead of the width of the display, and that's causing part of the video to be cut off.
If I play a 1920x1080 video (the same aspect ratio as my display), nothing's cut off.
The fullscreen issue seems somewhat related to https://trac.videolan.org/vlc/ticket/18045 , although there is one black bar being created here.
== System details:
The "good" machine is running X11 and Debian Stretch (which is older), while the "bad" is running Wayland and Debian Buster (which is newer).
"Good"/older:
$ cat /proc/version
Linux version 4.9.0-9-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) [#1](https://code.videolan.org/videolan/vlc/-/issues/1) SMP Debian 4.9.168-1+deb9u5 (2019-08-11)
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ loginctl show-session 2 -p Type
Type=x11
Bad/newer:
$ cat /proc/version
Linux version 4.19.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) [#1](https://code.videolan.org/videolan/vlc/-/issues/1) SMP Debian 4.19.67-2 (2019-08-28)
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ loginctl show-session 2 -p Type
Type=wayland