Forum / NoMachine for Linux / HW encoding not working on Manjaro with AMD GPU
- This topic has 5 replies, 2 voices, and was last updated 1 month ago by
kkalnins.
-
AuthorPosts
-
February 16, 2023 at 20:28 #42973
kkalnins
ParticipantI’ve tried many different things to try and get the H264 hardware encoding working in Manjaro running on a AMD Ryzen 5 PRO 3500U with Vega 8 graphics, but nothing seems to work. I looked in the node logs and there doesn’t seem to be a reason given for the use of the software encoder it just says:
“Using H.264 software encoder.”
I’m using version 8.2.3 connecting to a physical display with a Windows client. I’ve attached the session logs.
Do I need to use some specific AMD driver for it to work?
February 17, 2023 at 10:33 #42978kkalnins
ParticipantAdded the log with correct extension.
February 22, 2023 at 09:35 #43018Britgirl
ParticipantWe have had a similar case with another user also using an AMD GPU (albeit a different model). We’ve not been able to reproduce this problem with any of the test set-ups we have (and we have many!). We cannot say if you are experiencing the same problem, but we can give some pointers to check.
The first thing you need to do is make sure that the resolution is not higher than 1920×1200. Higher resolutions are not supported yet because of problems with some AMD drivers
Then make sure you have the correct drivers and that they were installed correctly:
The drivers can be found here https://www.amd.com/en/support/linux-drivers and to install, run
sudo apt-get install ./amdgpu-install_5.4.50401-1_all.deb
And after that:
sudo amdgpu-install --usecase=amf
Does this change anything?
By the way, your attachment (was it the server log?) did not attach, so send it to forum[at]nomachine[dot]com.
February 22, 2023 at 16:07 #43034kkalnins
ParticipantHi!
I’m using Manjaro so the installation was a bit different, but I was able to install AMF together with the AMDGPU-PRO driver and now I get actually some errors:0123-01-22 15:53:46 5EFFD6C0 [AMFVideoCore] Warning: AMFVideoCore::Init() Versions Differ, hostVersion=20003 videoCoreVersion=20002
0123-01-22 15:53:46 5EFFD6C0 [EncodeCore] Error: ./sources/drivers/enc_core/cmn/vcn1commandpacker.cpp(91):system VCN FW Encode interface version=1.13, expected version=1.14
0123-01-22 15:53:46 5EFFD6C0 [EncodeCore] Error: ./sources/drivers/enc_core/cmn/h264config.cpp(559):H264Config::CheckFirmwareVersion(): FirmwareVersion mismatch!
0123-01-22 15:53:46 5EFFD6C0 [AMFEncoderCoreH264] Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(185):Assertion failed:Failed to create service!
0123-01-22 15:53:46 5EFFD6C0 [AMFEncoderCoreH264] Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(345):AMF_ERROR 1 : AMF_FAIL: Failed to create encode service!
0123-01-22 15:53:46 5EFFD6C0 [AMFEncoderCoreH264] Warning: CreateServices failed.
VCE: WARNING! Failed to create encoder.
Info: Using H.264 software encoder.
Looks like I haven’t updated something.
February 24, 2023 at 09:35 #43066Britgirl
ParticipantWe prepared an article which also includes a section on trouble-shooting AMD drivers, please take a look:
How to use AMD HW encoder with NoMachine on Linux platforms
https://kb.nomachine.com/AR02U01190and follow the tips there. Do they help?
February 24, 2023 at 10:01 #43069kkalnins
ParticipantI finally got hardware encoding to work by installing the 21.XX version of the amdgpu-pro driver.
The problem now is that the hardware encoder seems to be much worse that the software encoder. I get strange color artifacts and frequent stutters and even complete lockups. Are there any other settings I could tweak?
My display resolution is 1920×1080
-
AuthorPosts
You must be logged in to reply to this topic.