Does ZM 1.30.x use hardware acceleration?

Forum for questions and support relating to the 1.30.x releases only.
Kiwijunglist
Posts: 3
Joined: Sat Jul 11, 2020 9:19 am

Re: Does ZM 1.30.x use hardware acceleration?

Post by Kiwijunglist »

Hi

I'm a bit confused how to enable hardware acceleration.
I have nvidia-smi working and fffmpeg -hwaccels gives me vdpau / vaapi / cuvid
How do I enable using cuvid in zoneminder?

Thanks
Mike

Code: Select all

mike@server:~$ docker exec -it zoneminder nvidia-smi

Sat Jul 11 21:20:19 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro P1000        Off  | 00000000:01:00.0 Off |                  N/A |
| 44%   56C    P0    N/A /  N/A |     10MiB /  4040MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Code: Select all

mike@server:~$ docker exec -it zoneminder ffmpeg -hwaccels

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Hardware acceleration methods:
vdpau
vaapi
cuvid
Kiwijunglist
Posts: 3
Joined: Sat Jul 11, 2020 9:19 am

Re: Does ZM 1.30.x use hardware acceleration?

Post by Kiwijunglist »

dingbatca wrote: Mon Mar 27, 2017 5:43 pm This took a bit of doing... Here are my tech notes for those who follow:

...

Now the test. I like the 50% savings!

Code: Select all

46~50% CPU usage: /usr/bin/ffmpeg -i rtsp://admin:password@192.168.1.18:554/Streaming/Channels/1 -an -f rawvideo -y /dev/null
46~50% CPU usage: /usr/local/bin/ffmpeg -i rtsp://admin:password@192.168.1.18:554/Streaming/Channels/1 -an -f rawvideo -y /dev/null
21~22% CPU usage: /usr/local/bin/ffmpeg -c:v h264_cuvid -i rtsp://admin:password@192.168.1.18:554/Streaming/Channels/1 -an -f rawvideo -y /dev/null
Hi I have ffmpeg -hwaccels gives me vdpau/vaapi/cuvid ... however I'm not sure how to implement this in to zoneminder, like where and what do i put in the ZM GUI?

I tried
Monitor -> Source -> DecoderHWAccelName = cuvid (and cuda / vaapi / vdpau)

But I still don't see that it is using HW acceleration, and I don't see any gpu processes listed under nvidia-smi (like i would when plex uses HW transcoding)

Thanks
kiwi
Locked