Thank you, gilou and morgano. I'm beginning to look at hardware accel for video and this was really useful.
This is a Radeon 7 APU with amdgpu driver, and the scripts worked perfectly as root after removing the quotes from "${SUDO}" (otherwise it complained "command not found"). The output of vainfo includes now entrypoints for VC1, H264 and HEVC, and I'm happy about the performance improvement.
I also noticed the previous VAProfileVP9Profile0, VAProfileVP9Profile2 and VAProfileAV1Profile0 are missing now.
Output of vainfo before:
- Code: Select all
Trying display: x11
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Mesa Gallium driver 23.1.3 for AMD Radeon RX 6600 (navi23, LLVM 15.0.6, DRM 3.52, 6.3.9-desktop-2.mga9)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD <---
VAProfileVP9Profile2 : VAEntrypointVLD <---
VAProfileAV1Profile0 : VAEntrypointVLD <---
VAProfileNone : VAEntrypointVideoProc
and after:
- Code: Select all
vainfo: Driver version: Mesa Gallium driver 23.1.5 for AMD Radeon R7 Graphics (carrizo, LLVM 15.0.6, DRM 3.52, 6.4.7-desktop-3.mga9)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
It would be good to have those missing entries too, wouldn't it? Is is possible to add them?