I checked VAAPI:
$ vainfo
Trying display: wayland
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Mesa Gallium driver 22.2.4 for AMD Radeon RX 5700 (navi10, LLVM 14.0.6, DRM 3.48, 6.0.11-1-MANJARO)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
It shows no H264 and no H265 support.
Video decoding
I checked mpv
media player and twitch video stream on Firefox, they use ffmpeg
, H.264 video decoding worked fine with AMD GPU hardware acceleration, CPU total usage is lower than 10% like before, nothing difference.
Video encoding
But I tried to test video encoding benchmark using ffmpeg
with VAAPI
ffmpeg -hwaccel vaapi -i <YOUR_VIDEO_FILE.mp4> -f null - -benchmark
AMD CPU total usage is higher than 60%. It seem video encoding is affected when using AMD GPU and mesa. Intel iCPU has no issue.