Got HW Transcoding to work with libva/vaapi on Ryzen APU (Ryzen 7 4700U)

Following this thread closely. Just installed PMS on an ASRock 4x4 4800U mini system. Running Ubuntu Server 21.04. I have the docker container up and running but so far I’m not seeing HW encode/decode. Seeing this in the .log:

(I’m wondering if the fact that I have this box running headless with no monitor has anything to do with it…)


May 17, 2021 07:26:32.647 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: testing h264_vaapi (encoder)
May 17, 2021 07:26:32.649 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - libva: /usr/lib/plexmediaserver/lib/dri/i965_drv_video.so has no function __vaDriverInit_1_0
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - libva: /usr/lib/plexmediaserver/lib/dri/i965_drv_video.so has no function __vaDriverInit_1_0
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
May 17, 2021 07:26:32.653 [0x7f0952ffd700] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA
May 17, 2021 07:26:32.653 [0x7f0952ffd700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred