nvidia-patch/README.md

43 lines
892 B
Markdown
Raw Normal View History

2017-02-12 15:16:29 +00:00
# nvidia-patch
2017-02-12 15:17:05 +00:00
2017-02-12 15:16:29 +00:00
requirements:
2018-05-24 10:55:55 +00:00
- Ubuntu 17.10
2017-11-01 13:37:03 +00:00
- nvenc-compatible gpu
2018-05-24 10:55:30 +00:00
- nvidia 378.13 driver
2017-11-01 13:37:03 +00:00
2017-11-01 13:38:44 +00:00
# step-by-step :
2017-11-01 13:37:03 +00:00
2018-05-24 10:55:30 +00:00
Download driver: https://yadi.sk/d/d87mf0y03WTbb5
2017-11-01 14:03:02 +00:00
```bash
2018-05-24 10:55:30 +00:00
chmod +x ./NVIDIA-Linux-x86_64-378.13.run
2017-11-01 13:38:44 +00:00
2018-05-24 10:55:30 +00:00
./NVIDIA-Linux-x86_64-378.13.run
2017-11-01 13:40:23 +00:00
```
2017-11-01 13:37:03 +00:00
check driver:
2017-11-01 14:03:02 +00:00
```bash
2017-11-01 13:37:03 +00:00
nvidia-smi
mkdir ~/nvenc_backup
2017-11-01 13:37:24 +00:00
2017-11-01 13:37:03 +00:00
cd ~/nvenc_backup
2017-11-01 13:37:24 +00:00
2018-05-24 10:55:30 +00:00
cp /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.378.13 ~/nvenc_backup/
2017-11-01 13:37:24 +00:00
2017-11-01 13:37:03 +00:00
wget https://raw.githubusercontent.com/keylase/nvidia-patch/master/patch.sh
2017-11-01 13:37:24 +00:00
2017-11-01 13:37:03 +00:00
chmod +x patch.sh
2017-11-01 13:37:24 +00:00
2018-05-24 10:55:30 +00:00
./patch.sh ~/nvenc_backup/libnvidia-encode.so.378.13 /usr/lib/x86_64-linux-gnu/libnvidia-encode.so.378.13
2017-11-01 13:37:24 +00:00
2017-11-01 13:37:03 +00:00
reboot
2017-11-01 13:40:23 +00:00
```
2017-02-12 15:17:05 +00:00
2017-11-01 14:03:39 +00:00
## 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](https://gist.github.com/Snawoot/70ae403716c698cb86ab015626d72bd4).
2017-10-30 06:46:54 +00:00
2017-02-12 15:17:05 +00:00