From 43a572f18fee75b9656ab55709545806a7d24eeb Mon Sep 17 00:00:00 2001 From: ramhaidar <49301219+ramhaidar@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:22:00 +0700 Subject: [PATCH 1/4] win: add support for DCH driver 566.03 --- drivers.json | 9 +++++++++ win/README.md | 5 +++-- win/win10_x64/566.03/nvencodeapi.1337 | 6 ++++++ win/win10_x64/566.03/nvencodeapi64.1337 | 5 +++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 win/win10_x64/566.03/nvencodeapi.1337 create mode 100644 win/win10_x64/566.03/nvencodeapi64.1337 diff --git a/drivers.json b/drivers.json index 37dc2c9..52bfd61 100644 --- a/drivers.json +++ b/drivers.json @@ -4493,6 +4493,15 @@ "patch64_url": "win10_x64/565.90/nvencodeapi64.1337", "patch32_url": "win10_x64/565.90/nvencodeapi.1337", "driver_url": "https://international.download.nvidia.com/Windows/565.90/565.90-desktop-win10-win11-64bit-international-dch-whql.exe" + }, + { + "os": "win10", + "product": "GeForce", + "version": "566.03", + "variant": "DCH", + "patch64_url": "win10_x64/566.03/nvencodeapi64.1337", + "patch32_url": "win10_x64/566.03/nvencodeapi.1337", + "driver_url": "https://international.download.nvidia.com/Windows/566.03/566.03-desktop-win10-win11-64bit-international-dch-whql.exe" } ] } diff --git a/win/README.md b/win/README.md index 75d56f3..3f1e306 100644 --- a/win/README.md +++ b/win/README.md @@ -1,7 +1,7 @@ NVENC and NvFBC patches for Windows Nvidia drivers ================================================== -![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-565.90-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-536.25-blue.svg) +![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-566.03-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-536.25-blue.svg) NVENC patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs. @@ -42,7 +42,7 @@ If you like this project, best way to contribute is by sending PRs and fixing do 5. Apply x86 library patch to corresponding file in `%WINDIR%\SysWOW64\` in the same way as previous one. - *If patching fails, close all applications using nvencodeapi.dll, such as OBS Studio, Plex or Discord.* -**Example:** for 64bit Windows 10 running driver version 565.90, use `win10_x64/565.90/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/565.90/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. +**Example:** for 64bit Windows 10 running driver version 566.03, use `win10_x64/566.03/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/566.03/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. If you still get "problem occured when patching" error, refer to the [instructions to change the ownership of the DLLs](https://github.com/keylase/nvidia-patch/issues/795#issuecomment-2225573296) by @VorlonCD @@ -257,6 +257,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | GeForce | 560.94 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/560.94/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/560.94/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/560.94/560.94-desktop-win10-win11-64bit-international-dch-whql.exe) | | GeForce | 561.09 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/561.09/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/561.09/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/561.09/561.09-desktop-win10-win11-64bit-international-dch-whql.exe) | | GeForce | 565.90 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/565.90/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/565.90/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/565.90/565.90-desktop-win10-win11-64bit-international-dch-whql.exe) | +| GeForce | 566.03 DCH | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.03/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/566.03/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/566.03/566.03-desktop-win10-win11-64bit-international-dch-whql.exe) | | Product series | Version | x64 library patch | x86 library patch | Driver link | diff --git a/win/win10_x64/566.03/nvencodeapi.1337 b/win/win10_x64/566.03/nvencodeapi.1337 new file mode 100644 index 0000000..487c7ec --- /dev/null +++ b/win/win10_x64/566.03/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +0000000000043107:89->33 +0000000000043108:45->C0 +0000000000043109:08->89 +000000000004310A:85->45 +000000000004310B:C0->08 \ No newline at end of file diff --git a/win/win10_x64/566.03/nvencodeapi64.1337 b/win/win10_x64/566.03/nvencodeapi64.1337 new file mode 100644 index 0000000..caa87d1 --- /dev/null +++ b/win/win10_x64/566.03/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +000000000004B381:8B->33 +000000000004B382:F0->C0 +000000000004B383:85->8B +000000000004B384:C0->F0 \ No newline at end of file From dfc03e4b23748dcc708a115ed0fdb2cdc83c08ff Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 24 Oct 2024 16:46:09 +0000 Subject: [PATCH 2/4] linux: add support for driver 565.57.01 fixes #857 --- README.md | 3 ++- drivers.json | 8 +++++++- patch-fbc.sh | 1 + patch.sh | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5fac55c..8bd174d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ NVENC and NvFBC patches for Nvidia drivers ========================================== -![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest version](https://img.shields.io/badge/latest%20linux%20driver%20version-560.35.03-brightgreen.svg) +![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest version](https://img.shields.io/badge/latest%20linux%20driver%20version-565.57.01-brightgreen.svg) [NVENC patch](patch.sh) removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs. @@ -221,6 +221,7 @@ If you want to donate, please send it to your favorite open source organizations | 555.58.02 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/555.58.02/NVIDIA-Linux-x86_64-555.58.02.run) | | 560.28.03 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/560.28.03/NVIDIA-Linux-x86_64-560.28.03.run) | | 560.35.03 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/560.35.03/NVIDIA-Linux-x86_64-560.35.03.run) | +| 565.57.01 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/565.57.01/NVIDIA-Linux-x86_64-565.57.01.run) | ## Synopsis diff --git a/drivers.json b/drivers.json index 52bfd61..54fb358 100644 --- a/drivers.json +++ b/drivers.json @@ -1127,6 +1127,12 @@ "nvenc_patch": true, "nvfbc_patch": true, "driver_url": "http://international.download.nvidia.com/XFree86/Linux-x86_64/550.120/NVIDIA-Linux-x86_64-550.120.run" + }, + { + "version": "565.57.01", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "http://international.download.nvidia.com/XFree86/Linux-x86_64/565.57.01/NVIDIA-Linux-x86_64-565.57.01.run" } ], "example": { @@ -4494,7 +4500,7 @@ "patch32_url": "win10_x64/565.90/nvencodeapi.1337", "driver_url": "https://international.download.nvidia.com/Windows/565.90/565.90-desktop-win10-win11-64bit-international-dch-whql.exe" }, - { + { "os": "win10", "product": "GeForce", "version": "566.03", diff --git a/patch-fbc.sh b/patch-fbc.sh index d870da4..a3f536d 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -214,6 +214,7 @@ declare -A patch_list=( ["555.58.02"]='s/\x85\xc0\x0f\x85\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["560.28.03"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["560.35.03"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' + ["565.57.01"]='s/\x85\xc0\x0f\x84\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ) check_version_supported () { diff --git a/patch.sh b/patch.sh index bd1ccd2..78df2d2 100755 --- a/patch.sh +++ b/patch.sh @@ -253,6 +253,7 @@ declare -A patch_list=( ["555.58.02"]='s/\xe8\x25\x43\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x43\xfe\xff\x29\xc0\x41\x89\xc4/g' ["560.28.03"]='s/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' ["560.35.03"]='s/\xe8\x35\x3e\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x35\x3e\xfe\xff\x29\xc0\x41\x89\xc4/g' + ["565.57.01"]='s/\xe8\x15\x34\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x15\x34\xfe\xff\x29\xc0\x41\x89\xc4/g' ) check_version_supported () { From ac0afeb01057ce02afec07d761d7374ce6260a79 Mon Sep 17 00:00:00 2001 From: siriume Date: Sat, 26 Oct 2024 22:42:01 +0800 Subject: [PATCH 3/4] update_patch_tester --- tools/patch-tester/patch-tester.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patch-tester/patch-tester.sh b/tools/patch-tester/patch-tester.sh index 4c1e90b..43f9237 100755 --- a/tools/patch-tester/patch-tester.sh +++ b/tools/patch-tester/patch-tester.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 -vf hwupload -c:a copy -c:v h264_nvenc -b:v 4M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 1M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 8M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 6M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 5M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 7M -f null - +ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 -c:a copy -c:v h264_nvenc -b:v 1M -f null - -c:a copy -c:v h264_nvenc -b:v 2M -f null - -c:a copy -c:v h264_nvenc -b:v 3M -f null - -c:a copy -c:v h264_nvenc -b:v 4M -f null - -c:a copy -c:v h264_nvenc -b:v 5M -f null - -c:a copy -c:v h264_nvenc -b:v 6M -f null - -c:a copy -c:v h264_nvenc -b:v 7M -f null - -c:a copy -c:v h264_nvenc -b:v 8M -f null - -c:a copy -c:v h264_nvenc -b:v 9M -f null - From c40472b630d0b6371ebccf3c48d5b420268a8348 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 31 Oct 2024 12:46:04 +0000 Subject: [PATCH 4/4] linux: add support for driver 550.127.05 fixes #860 --- README.md | 1 + drivers.json | 6 ++++++ patch-fbc.sh | 1 + patch.sh | 1 + 4 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 8bd174d..f21987f 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ If you want to donate, please send it to your favorite open source organizations | 550.100 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/550.100/NVIDIA-Linux-x86_64-550.100.run) | | 550.107.02 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/550.107.02/NVIDIA-Linux-x86_64-550.107.02.run) | | 550.120 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/550.120/NVIDIA-Linux-x86_64-550.120.run) | +| 550.127.05 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/550.127.05/NVIDIA-Linux-x86_64-550.127.05.run) | | 555.42.02 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/555.42.02/NVIDIA-Linux-x86_64-555.42.02.run) | | 555.58 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/555.58/NVIDIA-Linux-x86_64-555.58.run) | | 555.58.02 | YES | YES | [Driver link](http://international.download.nvidia.com/XFree86/Linux-x86_64/555.58.02/NVIDIA-Linux-x86_64-555.58.02.run) | diff --git a/drivers.json b/drivers.json index 54fb358..5579f9d 100644 --- a/drivers.json +++ b/drivers.json @@ -1133,6 +1133,12 @@ "nvenc_patch": true, "nvfbc_patch": true, "driver_url": "http://international.download.nvidia.com/XFree86/Linux-x86_64/565.57.01/NVIDIA-Linux-x86_64-565.57.01.run" + }, + { + "version": "550.127.05", + "nvenc_patch": true, + "nvfbc_patch": true, + "driver_url": "http://international.download.nvidia.com/XFree86/Linux-x86_64/550.127.05/NVIDIA-Linux-x86_64-550.127.05.run" } ], "example": { diff --git a/patch-fbc.sh b/patch-fbc.sh index a3f536d..4d54735 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -208,6 +208,7 @@ declare -A patch_list=( ["550.100"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x01\x90\x90\x48/' ["550.107.02"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x01\x90\x90\x48/' ["550.120"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x01\x90\x90\x48/' + ["550.127.05"]='s/\x83\xfe\x01\x73\x08\x48/\x83\xfe\x01\x90\x90\x48/' ["555.42.02"]='s/\x85\xc0\x0f\x85\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["555.52.04"]='s/\x85\xc0\x0f\x85\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' ["555.58"]='s/\x85\xc0\x0f\x85\x9b\x00\x00\x00\x48/\x85\xc0\x90\x90\x90\x90\x90\x90\x48/g' diff --git a/patch.sh b/patch.sh index 78df2d2..b6e6ab8 100755 --- a/patch.sh +++ b/patch.sh @@ -247,6 +247,7 @@ declare -A patch_list=( ["550.100"]='s/\xe8\xf5\x52\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\xf5\x52\xfe\xff\x29\xc0\x41\x89\xc4/g' ["550.107.02"]='s/\xe8\xf5\x52\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\xf5\x52\xfe\xff\x29\xc0\x41\x89\xc4/g' ["550.120"]='s/\xe8\xf5\x52\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\xf5\x52\xfe\xff\x29\xc0\x41\x89\xc4/g' + ["550.127.05"]='s/\xe8\xf5\x52\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\xf5\x52\xfe\xff\x29\xc0\x41\x89\xc4/g' ["555.42.02"]='s/\xe8\x25\x43\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x43\xfe\xff\x29\xc0\x41\x89\xc4/g' ["555.52.04"]='s/\xe8\x25\x43\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x43\xfe\xff\x29\xc0\x41\x89\xc4/g' ["555.58"]='s/\xe8\x25\x43\xfe\xff\x85\xc0\x41\x89\xc4/\xe8\x25\x43\xfe\xff\x29\xc0\x41\x89\xc4/g'