nvidia-patch/win/README.md
2019-03-02 16:35:07 +02:00

5.7 KiB

Nvidia drivers patch for Windows

This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.

Requirements:

Step-by-Step Guide

  1. Download and install latest Nvidia driver supported by this patch.
  2. Download latest Win_1337_Apply_Patch tool.
  3. Save appropriate patch from Version Table using direct link to the patch (Right Click -> Save as...). Alternatively you may checkout repo using git or download it as ZIP archive and then locate corresponding .1337 patch file in win directory.
  4. Apply patch to corresponding file in %WINDIR%\system32\ with the Win_1337_Apply_Patch tool. File name of patched object is specified in first line of .1337 patch.

E.g, for 64bit Windows 10 running driver version 417.35 use win10_x64/417.35/nvcuvid.1337 against C:\WINDOWS\system32\nvcuvid.dll.

Version Table

Product series Version Patch Driver link
GeForce 417.35 Direct link Direct link
GeForce 417.58 Direct link Direct link
GeForce 417.71 Direct link Direct link
GeForce 418.81 Direct link Direct link
GeForce 418.91 Direct link Direct link
GeForce 419.17 Direct link Direct link
Quadro 412.16 Direct link Direct link
Quadro 412.29 Direct link Direct link
Quadro 416.78 Direct link Direct link
Quadro 418.81 Direct link Direct link
Quadro 419.17 Direct link Direct link

See also

D3D encoding sessions

Related issue. Summary: this patch permanently removes limit only for CUDA NVENC sessions in 64bit apps. But once usage limit was exceeded, it persists for all apps until system reboot. So, for example, you may once open 10 sessions with 64bit version of ffmpeg and limit will get raised to 10 for all rest types of apps until reboot. You may follow these steps to achieve this automatically and have all limits raised (assuming patch above already applied):

  1. Download 64bit FFmpeg for Windows: https://ffmpeg.zeranoe.com/builds/
  2. Unpack it somewhere.
  3. Get ffmpeg_null_10streams.cmd from this repo.
  4. Edit ffmpeg_null_10streams.cmd and set executable path to real location of your unpacked ffmpeg.
  5. (Optional) Add ffmpeg_null_10streams.cmd to autostart programs.

Also this script is useful to check if patch applied correctly and limit was raised. Use it when nothing works and you are in doubt.

Plex Media Server

PMS for Windows currently uses dxva2 and MF for decoding and encoding, so it uses NVENC indirectly and patch probably will not work with it immediately. It is possible D3D recipe will work, but it wasn't tested at this moment.