Selur's Little Message Board

Full Version: NVEnc failing with a 'getWorkSurf' - I'm stumped
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thanks as always for your great work, selur.
  • Hybrid 2025.03.09.1 Windows 64 Version 10.0.19045 Build 19045

I have a Global Profile I use to deinterlace and compress interlaced MagicYUV AVI files to MP4 with nvenc and qtgmc. Love it.

It's stopped working. I get videos with incomplete video.

I've spotted where in the debug, though it does this at a different spot in the encode each time.

Code:
025.05.06 - 13:28:28_Windows 10 Version 22H2 (64bit)_2025.03.09.1 - level 9: NVEnc output: 167434 frames: 145.70 fps, 7941 kb/s, GPU 24%, VE 25%                         

2025.05.06 - 13:28:28_Windows 10 Version 22H2 (64bit)_2025.03.09.1 - level 9: NVEnc output: INPUT: getWorkSurf:   Failed to get work surface, all 5 frames used.
INPUT: failed to get work surface for input.
Break in task INPUT: insufficient buffer at input/output..

I went looking for anything about that error message, and landed on a Japanese blog about QSVEnc. Updated that in the Hybrid folder but to no change.

I've tried a full Revo uninstall of Hybrid, then reinstall, then copy my global profile over.

Reboots. SFC. Nvidia driver updates. Temp file sweeps. The usual stuff to do when troubleshooting. I'm stuck.

My debug logs and thanks: [attachment=3123]
Quote:INPUT: failed to get work surface for input.
Usually happens if:
a. there is no active device connected to the NVIDIA card
or
b. there is some driver issue with the used version.
or
c. another tool uses the graphic card while restricting the usage for others

Quote:I went looking for anything about that error message, and landed on a Japanese blog about QSVEnc. Updated that in the Hybrid folder but to no change.
QSVEncC is for Intel cards. (VCEEncC for AMD cards)
Latest NVEncC is available over at https://github.com/rigaya/NVEnc.

Normally. I would recommend:
  • try the latest dev, it usually comes with the latest NVEncC.
  • if it happened after a Hybrid update and updating your drivers doesn't help, try older NVEncC versions. (NVEncC64 needs to be renamed to NVEncC)
  • if it happened suddenly, restart your system and also check that you close other tools which might use the grahic card (especially stuff that messes with Windows themes etc.)
  • try the current Studio drivers, since the gaming drivers sometimes have broken encoding in the past

Since the encoding does start and then suddenly stops, I would first try the latest dev (there were a few NVEnc updates in recent weeks) and if that doesn't help, check if something is interfering by closing other programs while testing.

Cu Selur
Update: I downloaded the Experimental Build this morning and have run a successful job. I'll load up a stack and see how this afternoon's encoding runs. Thank you for your work behind the scenes!