Install the official proprietary driver AMDGPU-PRO from AUR
- Install
amf-amdgpu-pro
$ pamac build amf-amdgpu-pro
- Edit
/etc/environment/
to add a line:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json
-
Reboot
-
Check
ffmpeg
to decode and encode any video without loss of quality.
$ ffmpeg -i {INPUT}.mp4 -vcodec hevc_amf -rc 0 {OUTPUT}.mkv
I noticed that AMD AMF HEVC/H265 codec is faster than VAAPI (mesa).
Download test-video size: 75,5 MB, its video codec is AVC/H264.
AMD AMF HEVC/H265 encoding result:
Size: 52,5 MB
Speed: 4 sec
Quality: Good
VAAP (mesa) HEVC/H265 encoding result:
Size: 60,7 MB
Speed: 5 sec
Quality: Good
Edit:
This last command is only for utilizing the AMF encoder using ffmpeg.
I read a bit that ffmpeg
refused to support AMF video decoder.
My guide is not a solution for watching video streams with AMF video decoder.