Hardware acceleration on Gentoo Linux server (VAAPI)

Hallo, I have Plex server on my HPE Proliant Microserver GEN10 with GPU: Advanced Micro Devices, Inc. [AMD/ATI] Lexa XT [Radeon PRO WX 3100]. Server is Gentoo-amd64 with kernel linux-4.19.17. Vaapi work properly, vainfo is here:

libva info: VA-API version 1.3.0
libva info: va_getDriverName() returns 0
libva info: User requested driver ‘radeonsi’
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_3
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.3 (libva 2.3.0)
vainfo: Driver version: Mesa Gallium driver 18.3.2 for AMD Radeon Pro WX3100 (POLARIS12, DRM 3.27.0, 4.19.17-gentoo, LLVM 6.0.1)
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
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc

I try versions 1.12.3, 1.13.2-r1 1.14.1.5488, 1.15.0573

Server Version#: media-tv/plex-media-server-1.15.0.573

Hardware acceleration don’t work. I have Montly Plex Pass and I have checked Use hardware acceleration when available.

Under Linux this would only encode video, the CPU would still need to decode.
Plex in Docker, VM, or native?
What video? Certainly not 4K.

Plex is native emerged from gentoo or fkmclane overlays. Video is full HD or 720p. Kodek x264 or HEVc. GPU supported 4K video, but I have only full HD TV (1920x1080). On tv I use direct playing, TV has HEVc kodek. I need transcode on computer or on smartphone.

Please recreate the problem, with DEBUG logging only (not VERBOSE) enabled.

Start playback
Play for 10 seconds
Stop playback
Wait 30 seconds for buffers to get to disk.
Settings - Server - Troubleshooting - Download Logs
Attach the ZIP file it gives you here please.

Plex Media Server Logs_2019-01-25_21-13-44.zip (488,3 KB)

I allready logged plex, I see vaapi problem. vainfo is ok for plex user:

plex@server ~/ $ vainfo
error: can’t connect to X server!
libva info: VA-API version 1.3.0
libva info: va_getDriverName() returns 0
libva info: User requested driver ‘radeonsi’
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_3
Failed to create /var/lib/plexmediaserver/.cache for shader cache (Permission denied)—disabling.
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.3 (libva 2.3.0)
vainfo: Driver version: Mesa Gallium driver 18.3.2 for AMD Radeon Pro WX3100 (POLARIS12, DRM 3.27.0, 4.19.17-gentoo, LLVM 6.0.1)
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
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc

Thanks for that info.

Officially, there is no support for external GPUs.
I am aware that nVidia GPUs will work when configured correctly
I have not seen where AMD will work because libmesa is not yet part of PMS.

OK, but my server has a little (15W TDP) processor Amd Opteron X3216 with 2x3GHz cores. Processor has graphic without HEVC and this is no support, too. Server is microserver with one PCI-E x8 for half card.
This card AMD Radeon Pro WX3100 is primary for my OpenCl computing.
Sorry for my English, is very poor.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.