NVENC with NVFbc higher latency than software encoding? #23
-
I'm running a GTX1080 on Linux Mint 20.3 with the Ubuntu 20.04 version of the 0.13 deb package installed. I also have an Intel CPU with an iGPU capable of h264 encoding but haven't gotten VA-API to work despite the fact that I can get it to work with other programs. So far, comparing the Nvidia card with NvFbc enabled (patched the driver and logs show it as working), I find there's a noticable amount of extra latency with the hardware encoding vs the software encoder. Ideally I'd like to cut down on the hardware encoder's latency rather than give up CPU cores to the software encoder. As far as moonlight's performance stats show, I'm getting 3-4ms network latency and ~1ms decoding time , for a total of ~5ms average rendering time. This is what it shows for both encoder settings, so I know it must be the hardware encoder adding the extra latency. Any ideas of what I should be doing? Best settings, etc? Right now I've got it on the llhp preset, the cbr_ld_hq rate control and cavlc as the coder. Would it work better if I built the master branch from scratch using the docker script instead of the pre-compiled .deb? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 8 replies
-
No. That likely would make zero difference. FYI 5ms is 0.005 seconds. |
Beta Was this translation helpful? Give feedback.
-
For the latest nvidia SDK (used e.g. by Arch) it complains that the ll/llhp/llhq etc presents are being deprecated. I use p3 and don't have any latency problems. There is more information about this change here: |
Beta Was this translation helpful? Give feedback.
For the latest nvidia SDK (used e.g. by Arch) it complains that the ll/llhp/llhq etc presents are being deprecated. I use p3 and don't have any latency problems. There is more information about this change here:
https://developer.nvidia.com/blog/introducing-video-codec-sdk-10-presets/
and a handy mapping between the old and new style presents here:
https://docs.nvidia.com/video-technologies/video-codec-sdk/nvenc-preset-migration-guide/