This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.
Go to file
keylase f3c0af1f32
Update README.md
Up version of driver
2018-05-24 13:55:30 +03:00
FFMPEG-with-NVIDIA-Acceleration-on-Ubuntu_UG_v01.pdf add doc 2016-11-16 13:37:39 +03:00
patch.sh Add patch 2016-07-15 12:31:30 +03:00
README.md Update README.md 2018-05-24 13:55:30 +03:00

nvidia-patch

requirements:

  • ubuntu 14.04
  • nvenc-compatible gpu
  • nvidia 378.13 driver

step-by-step :

Download driver: https://yadi.sk/d/d87mf0y03WTbb5

chmod +x ./NVIDIA-Linux-x86_64-378.13.run

./NVIDIA-Linux-x86_64-378.13.run

check driver:

nvidia-smi

mkdir ~/nvenc_backup

cd ~/nvenc_backup

cp /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.378.13 ~/nvenc_backup/

wget https://raw.githubusercontent.com/keylase/nvidia-patch/master/patch.sh

chmod +x patch.sh

./patch.sh ~/nvenc_backup/libnvidia-encode.so.378.13 /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.378.13

reboot

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, consider using this patch.