I was able to install libnvidia-encode1 on my Debian as an alternative to the libnvidia-decode-440 which includes libcuda and libcuvid.
https://packages.debian.org/buster/libnvidia-encode1
After a reboot, ffmpeg still has no cuda/cuvid acceleration. Probably I need to install or configure something additionally for ffmpeg.
Code: Select all
ffmpeg -hwaccels
ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Hardware acceleration methods:
vdpau
vaapi
drm
I also checked my /dev/dri devices:
Code: Select all
ls -l /dev/dri/
total 0
drwxr-xr-x 2 root root 140 Mar 9 18:04 by-path
crw-rw---- 1 root video 226, 0 Mar 9 18:04 card0
crw-rw---- 1 root video 226, 1 Mar 9 18:04 card1
crw-rw---- 1 root video 226, 2 Mar 9 18:04 card2
crw-rw---- 1 root render 226, 128 Mar 9 18:04 renderD128
crw-rw---- 1 root render 226, 129 Mar 9 18:04 renderD129
By that output I believe that my Nvidia (Quadro) NVS510 is card1
As the lspci grepped output is: 01:00:00
Code: Select all
lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [NVS 510] (rev a1)
03:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200e [Pilot] ServerEngines (SEP1) (rev 05)
Nvidia card details:
Code: Select all
sudo lspci -v -s 01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [NVS 510] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation GK107 [NVS 510]
Flags: bus master, fast devsel, latency 0, IRQ 141
Memory at b2000000 (32-bit, non-prefetchable) [size=16M]
Memory at 90000000 (64-bit, prefetchable) [size=256M]
Memory at a0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 6000 [size=128]
[virtual] Expansion ROM at b3080000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidia
Kernel modules: nvidia
And nvidia-detect
Code: Select all
nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107 [NVS 510] [10de:0ffd] (rev a1)
Checking card: NVIDIA Corporation GK107 [NVS 510] (rev a1)
Your card is supported by all driver versions.
It is recommended to install the
nvidia-driver
Then set the following in my ZM (v1.34.23) one camera to the following:
DecoderHWAccelName = cuda
DecoderHWAccelDevice = tried empty, tried /dev/dri/card0,1 and 2
Nvidia-smi and nvtop aren't reporting any services that use the card (which makes sense since ffmpeg has no cuda/ cuvid enabled).
Code: Select all
nvidia-smi
Tue Mar 9 18:47:11 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVS 510 On | 00000000:01:00.0 N/A | N/A |
| 28% 41C P8 N/A / N/A | 1MiB / 1999MiB | N/A Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+