VLC will not work on Ubuntu 20.04.3 LTS.
It randomly freezes the image, but the audio keeps going.
Or it randomly crashes.
Or it randomly freezes the whole PC.
I have first tried the snap version of VLC.
I have then switched to the sudo apt install vlc
in order to start it from terminal and log some errors:
$ vlc 4.mp4
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[000055fc808f5670] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
[00007fbf04003460] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.7.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007fbf04003460] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.7.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007fbf04003460] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007fbf277175a0] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library 470.86 Tue Oct 26 21:45:30 UTC 2021 for hardware decoding
[00007fbf277175a0] main decoder error: Timestamp conversion failed for 185033334: no reference clock
[00007fbf277175a0] main decoder error: Could not convert timestamp 0 for FFmpeg
[00007fbf277175a0] main decoder error: Timestamp conversion failed for 787500001: no reference clock
[00007fbf277175a0] main decoder error: Could not convert timestamp 0 for FFmpeg
[00007fbf1cccee20] main decoder error: Timestamp conversion failed (delay 666000, buffering 66600, bound 3000000)
[00007fbf1cccee20] main decoder error: Could not convert timestamp 7629279603 for faad
[00007fbf1cccee20] main decoder error: Timestamp conversion failed (delay 666000, buffering 66600, bound 3000000)
[00007fbf1cccee20] main decoder error: Could not convert timestamp 7629051597 for faad
I have a GTX 1080 and an Intel i7 7700k.
In Additional Drivers
I have selected: Using NVIDIA driver metapackage from nvidia-driver-470(proprietary,tested)
.
$ sudo lshw -c video
[sudo] password for george:
*-display
description: VGA compatible controller
product: GP104 [GeForce GTX 1080]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:149 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:c0000-dffff
For whatever reason Ubuntu doesn't see the Intel drivers, even though I do have them installed:
$ sudo apt-get install xserver-xorg-video-intel
Reading package lists... Done
Building dependency tree
Reading state information... Done
xserver-xorg-video-intel is already the newest version (2:2.99.917+git20200226-1).
The following packages were automatically installed and are no longer required:
gyp javascript-common libc-ares2 libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libnode-dev libnode64
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libssl-dev libuv1-dev nodejs-doc python-pkg-resources python2
python2-minimal python2.7 python2.7-minimal
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
I have also deleted ~/.config/vlc/
a bunch of times in order to reset VLC but to no avail.
I think that VLC is just broken on Ubuntu 20.
This has killed productivity because instead of watching hours of tutorials, I have spent hours getting nowhere on figuring out what is wrong with VLC.
I need a media player capable of displaying subtitles, changing the playback speed, being capable of skipping back and forth, holding a playlist of videos and not crash after 2 minutes of playback.
I have tried Totem but it lacks these features.
Edit:
What is the history of this machine? Which version of Ubuntu was installed here for first time?
I've formatted all available drives, installed Ubuntu 20.04.3 LTS on one drive and Windows 10 Pro x64 on another one.
It is the first time I've installed and used Ubuntu.
$ head -n1 /etc/apt/sources.list
# deb cdrom:[Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819)]/ focal main restricted
$ apt-cache policy vdpau-driver-all mesa-vdpau-drivers libvdpau-va-gl1
vdpau-driver-all:
Installed: 1.3-1ubuntu2
Candidate: 1.3-1ubuntu2
Version table:
*** 1.3-1ubuntu2 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
mesa-vdpau-drivers:
Installed: 21.0.3-0ubuntu0.3~20.04.4
Candidate: 21.0.3-0ubuntu0.3~20.04.4
Version table:
*** 21.0.3-0ubuntu0.3~20.04.4 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
100 /var/lib/dpkg/status
20.0.4-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
libvdpau-va-gl1:
Installed: (none)
Candidate: 0.4.2-1build2
Version table:
0.4.2-1build2 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
$ dpkg -S dri/nvidia_drv_video.so
dpkg-query: no path found matching pattern *dri/nvidia_drv_video.so*
$ vainfo
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit