Bypass the Transcoding Limit on Nvidia Cards Using nvidia-patch

Instructions on how to install nvidia-patch

Bypass the Transcoding Limit on Nvidia Cards Using nvidia-patch

Install Latest NVIDIA Driver

Download and install the latest Nvidia driver from the table on that one github page

VER=XXX
sudo apt update
sudo apt install --no-install-recommends nvidia-cuda-toolkit nvidia-headless-${VER} nvidia-utils-${VER} libnvidia-encode-${VER}
sudo reboot

After a reboot, test with nvidia-smi

$ nvidia-smi
Mon May 30 20:52:01 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.73.05    Driver Version: 510.73.05    CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
...
...

Something happened, how do I start over?

To start over and uninstall everything Nvidia, follow these steps.

Installed With Run File

If you installed the drivers with the .run file from Nvidia's website, uninstall with this

sudo ./NVIDIA-Linux-x86_64-510.47.03.run --uninstall

Installed With apt

If installed with apt, this command should uninstall everything nvidia

sudo apt purge '*nvidia*'

Set Up NVIDIA Docker Runtime

sudo apt install -y nvidia-docker2
sudo systemctl restart docker

If the repo isn't set up, follow the steps here.

Installation Guide - NVIDIA Cloud Native Technologies documentation

Run the NVIDIA Driver Patch

Clone Repo

sudo git clone https://github.com/keylase/nvidia-patch nvidia-patch

Patch

cd ./nvidia-patch
sudo bash ./patch.sh

Oneliner

sudo git clone https://github.com/keylase/nvidia-patch nvidia-patch && cd ./nvidia-patch && sudo bash ./patch.sh