Hello,
I’m having a problem configuring VAAPI for video players like vlc or totem (Gnome’s video application).
In vlc, the VAAPI input does not appear in the “Tools → Preferences → Input/Codecs → Hardware accelerated decoding” option.
I tried with the flatpak versions of vlc and totem, both work correctly and use VAAPI well.
It’s perhaps important to point out that I recently changed my GPU from Nvidia to AMD.
Here is my configuration:
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs ; [
rocmPackages.clr.icd
];
};
environment.variables.LIBVA_DRIVER_NAME = "radeonsi";
environment.variables.VDPAU_DRIVER = "radeonsi";
The result of the command nix-shell -p libva-utils --run vainfo
:
Trying display: wayland
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'radeonsi'
libva info: Trying to open /run/opengl-driver/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.21.0)
vainfo: Driver version: Mesa Gallium driver 24.0.7 for AMD Radeon RX 7900 GRE (radeonsi, navi31, LLVM 17.0.6, DRM 3.57, 6.9.9)
vainfo: Supported profile and entrypoints
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointEncSlice
VAProfileNone : VAEntrypointVideoProc