This problem occurs because Nvidia’s official restrictions
limit 2 concurrent processing tasks for different desktop-level products. For
detailed restrictions on each product, please refer to
https://developer.nvidia.com/video-encode-decode-gpu -support-matrix#Encoder
We can remove this restriction through the following patch
1
2
3
4
5
6
7
|
cd /opt
git clone https://github.com/keylase/nvidia-patch
cd nvidia–patch
# patch remove limite 2 sessionsÂ
bash ./patch.sh
# patch restore limit 2 sessions
bash ./patch.sh –r
|
Start ffmpeg
The above picture has started 4 ffmpeg HW transcoding processes, and there is no error message
. Special attention needs to be paid here. The graphics card memory used by the control process should not exceed the total graphics card memory. If it exceeds, there will be frame loss, green screen and other problems
As shown in the figure, our RTX 2070 Super has 8G video memory, and 4 processes take up 10% or so, so according to 400/process, the maximum of about 18-20 processes can be enabled.