Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I think i have video acceleration problem and i am not sure how to fix. If i check if my system support video acceleration i get this:
Code:
$ vainfo
libva info: VA-API version 1.6.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
But if i use VLC from terminal, and stream youtube url or open local video file i can see that VLC is using video acceleration. But if i watch the same youtube video in Firefox or watch the same local video file in Kodi i can see that they are not using video acceleration, because they are loading the cpu more than VLC. And hardware acceleration in Firefox is enabled.
I have these packages containing vdpau in the name, installed:
Code:
$ dpkg -l | grep vdpau
ii libvdpau-va-gl1:amd64 0.4.2-1+b1 amd64 VDPAU driver with OpenGL/VAAPI backend
ii libvdpau1:amd64 1.1.1-10 amd64 Video Decode and Presentation API for Unix (libraries)
ii libvdpau1:i386 1.1.1-10 i386 Video Decode and Presentation API for Unix (libraries)
ii mesa-vdpau-drivers:amd64 18.3.6-2+deb10u1 amd64 Mesa VDPAU video acceleration drivers
ii nvidia-legacy-390xx-vdpau-driver:amd64 390.143-1~deb10u1 amd64 Video Decode and Presentation API for Unix - NVIDIA driver (390xx legacy)
ii vdpau-driver-all:amd64 1.1.1-10 amd64 Video Decode and Presentation API for Unix (driver metapackage)
If i search the repository for vdpau i get this:
Code:
$ apt search vdpau
Sorting... Done
Full Text Search... Done
libvdpau-dev/stable 1.1.1-10 amd64
Video Decode and Presentation API for Unix (development files)
libvdpau-doc/stable,stable 1.1.1-10 all
Video Decode and Presentation API for Unix (documentation)
libvdpau-va-gl1/stable,now 0.4.2-1+b1 amd64 [installed,automatic]
VDPAU driver with OpenGL/VAAPI backend
libvdpau1/stable,now 1.1.1-10 amd64 [installed,automatic]
Video Decode and Presentation API for Unix (libraries)
mesa-vdpau-drivers/stable,now 18.3.6-2+deb10u1 amd64 [installed,automatic]
Mesa VDPAU video acceleration drivers
nvidia-legacy-340xx-vdpau-driver/stable 340.108-3~deb10u1 amd64
Video Decode and Presentation API for Unix - NVIDIA driver (340xx legacy)
nvidia-legacy-390xx-vdpau-driver/stable,now 390.143-1~deb10u1 amd64 [installed,automatic]
Video Decode and Presentation API for Unix - NVIDIA driver (390xx legacy)
nvidia-tesla-vdpau-driver/mx 418.116.00-1~mx19+1 amd64
Video Decode and Presentation API for Unix - NVIDIA driver (Tesla version)
nvidia-vdpau-driver/stable 418.197.02-1 amd64
Video Decode and Presentation API for Unix - NVIDIA driver
vdpau-driver-all/stable,now 1.1.1-10 amd64 [installed]
Video Decode and Presentation API for Unix (driver metapackage)
vdpau-va-driver/stable 0.7.4-7 amd64
VDPAU-based backend for VA API
vdpauinfo/stable 1.0-3 amd64
Video Decode and Presentation API for Unix (vdpauinfo utility)
Having libvdpau1 installed for two architectures is definitely not right, you'll also need vdpau-va-driver (vdpau-driver-all), and vdpauinfo will come in handy in diagnosing further issues if this won't help.
libvdpau1:amd64 and libvdpau1:i386 are installed automatically from the mx linux updates. I will have to ask their support if i need to remove one of the packages.
I installed vdpau-va-driver and vdpauinfo and now if i run vainfo i get this:
Code:
$ vainfo
libva info: VA-API version 1.6.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.6 (libva 2.4.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG4Simple : VAEntrypointVLD
VAProfileMPEG4AdvancedSimple : VAEntrypointVLD
<unknown profile> : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
Does that mean that my system should support video acceleration?
Well, technically it did from the very start, only it was proprietary Nvidia VDPAU acceleration, now you have a standard VA-API acceleration too - provided that 32-64 bit mixup with libvdpau1 is not messing up anything.
There two layers here: proprietary VDPAU acceleration for Nvidia, and some programs - e.g. vlc or mplayer can work with it directly and don't need VA-API at all, and vendor-independent and more widely accepted VA-API which needs drivers to work with VDPAU backend.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.