A "small" problem to get hardware acceleration working

salve

i try to set up hardware acceleration on my old asus k50ij notebook because without is watching videos not funny.

i receive this message:

[tom@donar ~]$ mpv --vo=gpu https://www.arte.tv/de/videos/094279-015-A/der-mann-hinter-dem-green-deal/
Resuming playback. This behavior can be disabled with --no-resume-playback.
 (+) Video --vid=1 (*) (h264 1280x720 25.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
[vo/gpu] Disabling scaler #0 spline36 (GLSL version too old).
[vo/gpu] Disabling scaler #1 mitchell (GLSL version too old).
[vo/gpu] Disabling scaler #2 spline36 (GLSL version too old).
[vo/gpu] Disabling scaler #3 mitchell (GLSL version too old).
[vo/gpu] Disabling linear/sigmoid scaling (GLSL version too old).
[vo/gpu] Disabling debanding (GLSL version too old).
[ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1
[ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[ffmpeg/video] h264_v4l2m2m: Could not find a valid device
[ffmpeg/video] h264_v4l2m2m: can't configure decoder
Could not open codec.
[tom@donar ~]$ vainfo 
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) GM45 Express Chipset - 2.3.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
installed packages
[tom@donar ~]$ sudo pacman -Qs h264
local/libva-intel-driver-g45-h264 1:2.3.0-1
    Video Acceleration (VA) API for Linux
local/libx264 1:148.20160920-2
    Library for encoding H264/AVC video streams (8bit depth)
[tom@donar ~]$ sudo pacman -Qs gst
local/gst-libav 1.14.1-1
    Gstreamer libav Plugin
local/gst-plugins-bad 1.14.1-2
    GStreamer Multimedia Framework Bad Plugins
local/gst-plugins-base 1.14.1-1
    GStreamer Multimedia Framework Base Plugins
local/gst-plugins-base-libs 1.14.1-1
    GStreamer Multimedia Framework Base Plugin libraries
local/gst-plugins-good 1.14.1-1
    GStreamer Multimedia Framework Good Plugins
local/gstreamer 1.14.1-2
    GStreamer Multimedia Framework
local/gstreamer-vaapi 1.14.1-1
    GStreamer Multimedia Framework VAAPI Plugin
local/phonon-qt5-backend-gstreamer 4.9
[tom@donar ~]$ sudo pacman -Qs libva
local/libva 2.1.0-1
    Video Acceleration (VA) API for Linux
local/libva-intel-driver-g45-h264 1:2.3.0-1
    Video Acceleration (VA) API for Linux
local/libva-mesa-driver 19.1.8-1
    VA-API implementation for gallium
local/libva-utils 2.3.0-1
    Intel VA-API Media Applications and Scripts for libva
local/libva-vdpau-driver 0.7.4-3
    VDPAU backend for VA API
[tom@donar ~]$ pacman -Qs vdpau
local/libva-vdpau-driver 0.7.4-3
    VDPAU backend for VA API
local/libvdpau 1.1.1-2
    Nvidia VDPAU library
local/mesa-vdpau 19.1.8-1
    Mesa VDPAU drivers
Hardware information
graphics card:
                       Intel Mobile 4 Series Chipset Integrated Graphics Controller
                       Intel Mobile 4 Series Chipset Integrated Graphics Controller

Hello,

Have you tried manually selecting the decoder ?

mpv --vo=gpu --hwdec=vaapi /path/to/file
1 Like

/usr/lib/vdpau/libvdpau_va_gl.so is owned by ccr/libvdpau-va-gl 0.4.2-1.
Try installing that and try again.

1 Like

it’s wired i am using the same configuration for years without a problem but now i set up chakra newly and problems appear.

the solution for this error was hwdec=vaapi instead hwdec=auto because mpv tried hwdec=vdpau and intel hardware can’t serve.