Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Tutorial Bypass (remove) Nvidia GPU maximum number of simultaneous NVENC video encoding sessions

redhat

Administrator
Staff member
Administrator
Chief Moderator
Moderator
Joined
Jun 19, 2019
Messages
3,066
Reaction score
14,798
Points
134
Location
root[@]woi
nvidia-patch


Website: https://github.com/keylase/nvidia-patch

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


Main target operating system is GNU/Linux, but for Windows support see win.


Requirements:
Synopsis
Bash:
# bash ./patch.sh -h

SYNOPSIS
patch.sh [OPTION]...

DESCRIPTION
The patch for Nvidia drivers to increase encoder sessions

-s Silent mode (No output)
-r Rollback to original (Restore lib from backup)
-h Print this help message



Step-by-Step guide
Examples are provided for driver version 430.40. All commands are runned as root.


Download driver
https://international.download.nvidia.com/XFree86/Linux-x86_64/430.40/NVIDIA-Linux-x86_64-430.40.run


Install driver
Make sure you have kernel headers and compiler installed before
running Nvidia driver installer. Kernel headers and compiler are
required to build nvidia kernel module. Recommended way to do this is to
install dkms package, if it is available in your distro. This way dkms
package will pull all required dependencies to allow building kernel
modules and kernel module builds will be automated in a reliable
fashion.

Bash:
mkdir /opt/nvidia && cd /opt/nvidia
wget https://international.download.nvidia.com/XFree86/Linux-x86_64/430.40/NVIDIA-Linux-x86_64-430.40.run
chmod +x ./NVIDIA-Linux-x86_64-430.40.run
./NVIDIA-Linux-x86_64-430.40.run

Check driver
Bash:
nvidia-smi

Output should show no errors and details about your driver and GPU.

Patch driver
This patch performs backup of original file prior to making changes.

Bash:
bash ./patch.sh

You're all set!


Rollback
If something got broken you may restore patched driver from backup:

Bash:
bash ./patch.sh -r


Docker support

It is possible to use this patch with nvidia-docker containers, even if host machine hasn't patched drivers. See Dockerfile for example.

Essentially all you need to do during build is:
  • COPY the patch.sh and docker-entrypoint.sh files into your container.
  • Make sure docker-entrypoint.sh is invoked on container start.

docker-entrypoint.sh script does on-the-fly patching by means of manipulating dynamic linker to workaround read-only mount of Nvidia runtime. Finally it passes original docker command to shell, like if entrypoint was not restricted by ENTRYPOINT directive. So docker run --runtime=nvidia -it mycontainer echo 123 will print 123. Also it can be just invoked from your entrypoint script, if you have any.

See also


If you experience CreateBitstreamBuffer failed: out of memory (10), then you have to lower buffers number used for every encoding session. If you are using ffmpeg, see option -surfaces ("Number of concurrent surfaces") and try value near -surfaces 8.
 
Last edited:

redhat

Administrator
Staff member
Administrator
Chief Moderator
Moderator
Joined
Jun 19, 2019
Messages
3,066
Reaction score
14,798
Points
134
Location
root[@]woi
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.

Website: https://github.com/keylase/nvidia-patch/tree/master/win

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

Windows 10 drivers

Product seriesVersionPatchDriver link
GeForce417.35Direct linkDirect link
GeForce417.58Direct linkDirect link
GeForce417.71Direct linkDirect link
GeForce418.81Direct linkDirect link
GeForce418.91Direct linkDirect link
GeForce419.17Direct linkDirect link
GeForce419.35Direct linkDirect link
GeForce419.67Direct linkDirect link
GeForce419.67 CRDDirect linkDirect link
GeForce425.31Direct linkDirect link
GeForce430.39Direct linkDirect link
GeForce430.64Direct linkDirect link
GeForce430.86Direct linkDirect link
GeForce430.86 Studio DriverDirect linkDirect link
GeForce431.36Direct linkDirect link
GeForce431.60Direct linkDirect link
GeForce431.70 Studio DriverDirect linkDirect link
GeForce431.86 Studio DriverDirect linkDirect link
GeForce435.27Direct linkDirect link (non-official)
GeForce436.02Direct linkDirect link
GeForce436.15Direct linkDirect link

Product seriesVersionPatchDriver link
Quadro412.16Direct linkDirect link
Quadro412.29Direct linkDirect link
Quadro416.78Direct linkDirect link
Quadro418.81Direct linkDirect link
Quadro419.17Direct linkDirect link
Quadro419.67Direct linkDirect link
Quadro425.31Direct linkDirect link
Quadro430.39Direct linkDirect link
Quadro430.64Direct linkDirect link
Quadro430.86Direct linkDirect link
Quadro431.02Direct linkDirect link
Quadro431.70Direct linkDirect link
Quadro431.86Direct linkDirect link
Quadro436.02Direct linkDirect link


Windows 7, Windows 8, Windows 8.1 drivers

Product seriesVersionPatchDriver link
GeForce431.60Direct linkDirect link
GeForce436.02Direct linkDirect link
GeForce436.15Direct linkDirect link

Product seriesVersionPatchDriver link
Quadro431.02Direct linkDirect link
Quadro431.70Direct linkDirect link
Quadro431.86Direct linkDirect link
Quadro436.02Direct linkDirect link


Windows Server 2008R2, 2012, 2012R2 drivers

Product seriesVersionPatchDriver link
Quadro430.64Direct linkDirect link
Quadro430.86Direct linkDirect link
Quadro431.02Direct linkDirect link
Quadro431.70Direct linkDirect link
Quadro431.86Direct linkDirect link


Windows Server 2016, 2019 drivers

Product seriesVersionPatchDriver link
Quadro430.86Direct linkDirect link
Quadro431.02Direct linkDirect link
Quadro431.70Direct linkDirect link
Quadro431.86Direct linkDirect link


See also

Plex Media Server, D3D11 and 32-bit apps 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 kinds of 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):

Method 1 (recommended)

  1. Download and run latest release of NvencSessionLimitBump.
  2. (Optional) Add it to autostart programs.

By default this application raises limit to 32 encoding sessions. Credits to @jantenhove.

Method 2 (alternative)

  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.

Bonus: you may use this AutoIt script from @wazerstar for silent startup of console applications bumping sessions.


Also you may use these methods to check if patch applied correctly and limit was raised. Use them when nothing works and you are in doubt.
 
Last edited:
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

athar21

Extended Member
Ext. Member
Joined
Sep 28, 2019
Messages
4
Reaction score
10
Points
14
Location
indonesia
Its work for me but when i try to transcoding output live transcoding audio and video have same delay.. I use ffmpeg codec use nvenc my source from dreambox..
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

notforyou

Banned
Banned
Ext. Member
Joined
Sep 23, 2019
Messages
28
Reaction score
111
Points
39
Location
123456
I can no longer do that with the 64bit and 32bit patch. Since you changed the file names. Maybe someone can give me a how to.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock