LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-29-2021, 05:57 AM   #1
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Rep: Reputation: Disabled
Video acceleration problem


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.


This is information for my video card:
Code:
$ inxi -G
Graphics:  Device-1: NVIDIA GF108GLM [Quadro 1000M] driver: nvidia v: 390.143 
           Display: x11 server: X.Org 1.20.4 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Quadro 1000M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.143
I am using MX Linux.
 
Old 06-29-2021, 06:17 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 925

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Do you have vdpau installed? What does vdpauinfo say? Also firefox doesn't support hardware video acceleration on linux.
 
Old 06-29-2021, 06:45 AM   #3
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
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)
 
Old 06-29-2021, 08:25 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 925

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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.
 
Old 06-29-2021, 09:28 AM   #5
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
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?
 
Old 06-29-2021, 01:23 PM   #6
lvm_
Member
 
Registered: Jul 2020
Posts: 925

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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.

Last edited by lvm_; 06-29-2021 at 01:24 PM.
 
Old 06-30-2021, 01:21 AM   #7
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
I don't get how video acceleration can work for VLC, but won't work for Kodi and Firefox.
 
Old 06-30-2021, 02:50 AM   #8
lvm_
Member
 
Registered: Jul 2020
Posts: 925

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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.
 
Old 06-30-2021, 05:57 AM   #9
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
That is a bit confusing. What is the difference between VDPAU acceleration and VA-API acceleration?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware Acceleration - your system is currently running without video hardware acceleration Dunnyman Linux - Software 3 11-18-2020 02:43 PM
[SOLVED] Slackware64-14.2 i5-7200U hardware video acceleration problem zdolar Slackware 68 04-14-2018 01:24 AM
Video hardware acceleration problem mbox frex Linux - Newbie 2 03-18-2018 12:25 PM
LXer: MPV 0.17.0 Open-Source Video Player Adds a Direct3D11 Video Acceleration Decoder LXer Syndicated Linux News 0 04-12-2016 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration