Forum / NoMachine for Linux / No hardware encoding/decoding on Ubuntu 20.04
- This topic has 9 replies, 2 voices, and was last updated 8 months, 3 weeks ago by Britgirl.
-
AuthorPosts
-
March 25, 2024 at 07:45 #47506alienprivParticipant
Hi,
I’m using NoMachine on Ubuntu 20.04 machines (clients and servers), with Nvidia RTX GPUs but I’m only getting software encoding/decoding.
How can I enable hardware encoding? Attaching logs.
Thanks,
Lukas
March 25, 2024 at 13:52 #47519BritgirlKeymasterThis is dealt with in the following topic: https://forum.nomachine.com/topic/no-gpu-hardware-encoding.
Logs should be sent to forum[at]nomachine[dot]com. That way we can verify if the drivers are the cause.
March 25, 2024 at 14:05 #47520alienprivParticipantHi,
Sorry, the logs did not attach previously. Here they are.
I’m already using driver 535.
Lukas
Attachments:
March 25, 2024 at 18:46 #47527BritgirlKeymasterAre these the logs taken from Ubuntu machine you are connecting to (the remote server)?
March 25, 2024 at 19:18 #47528alienprivParticipantSorry, those were logs generated from the NoMachine client. Attaching here server logs.
Lukas
Attachments:
March 26, 2024 at 13:45 #47536BritgirlKeymasterHardware encoding is not enabled because NVENC, the Nvidia hardware encoder, doesn’t support resolutions over 4K for H.264 hardware encoding. In your logs we can see the following “Info: Remote desktop resized to 5120×1440”. So that is the reason for hardware encoding not being possible.
As for hardware decoding, the resolution limit should be larger but there are no errors in the logs about decoding. Can you check if it’s disabled in the Display settings? Open the session menu (Ctrl-Alt-0) -> Display -> Settings and tell us what you see there (or submit a screenshot). Does hardware decoding work if you resize the remote desktop to a lower resolution?
March 26, 2024 at 14:05 #47537alienprivParticipantHey,
The resolution 5120×1440 is actually 2 screens with 2560×1440
I’ve tried switching to 1920×1080 on the server and that did cause hardware encoding to work, but not decoding (client is 2 x 2560×1440)
Is there no way to get hardware encoding working with 2560×1440 dual screen setup? HD is really low resolution these days, especially if you work with media.
Lukas
March 26, 2024 at 17:13 #47540BritgirlKeymasterIs there no way to get hardware encoding working with 2560×1440 dual screen setup?
It’s an nvidia limitation, I’m afraid. You can either disable one the monitors or use the option you already tried which is to resize both of them to 1920.
March 26, 2024 at 17:56 #47543alienprivParticipantOK, thank you for checking this for me.
I’m afraid we’ll need to switch to different software then – like DCV – which somehow works on GPU in higher resolutions.
March 28, 2024 at 19:08 #47565BritgirlKeymasterAt the moment, in its current version, NoMachine considers the monitors as one big screen. What you need is for NoMachine to capture and encode each monitor as a separate video stream. Such a feature is planned and work has started, although we are unable to provide a target version.
-
AuthorPosts
This topic was marked as solved, you can't post.