Can't get ZM to use Nvidia GPU for encode/decode streams
Posted: Sat Jun 17, 2023 1:49 pm
Hey everyone.
I'm new to the whole topic and as i did my brand new installation of Ubuntu and zoneminder (clean install through
but also using ppa to get the most recent version 1.36.33) i noticed that my CPU, which is, due to hardware conditions, able to run completely passively cooled, is running hot.
So i checked by simply viewing the system ressources monitor and saw that all cores are running on kinda 50-60% load.
I googled a bit and people are telling to rather use ffmpeg and hwaccel for better performance.
For this i bought a Nvidia Quadro T600 (why this one? it was sold pretty much cheap atm on local stores and as i checked https://trac.ffmpeg.org/wiki/HWAccelIntro and https://developer.nvidia.com/video-enco ... matrix-new it should be compatible for my purposes).
I followed this tutorial https://www.cyberciti.biz/faq/how-to-in ... -on-linux/ for installation of ffmpeg with CUDA / CUVID support.
And finally i followed https://zoneminder.readthedocs.io/en/st ... arted.html for initial setup with NVIDIA gpu support. Especially set
But after all, when using "nvtop" i see there is a "computing" process for every of my cameras, but still they all use the CPU with like 30% load, and from time to time there is just a tiny (like 5%) 'ping' on the GPU.
Maybe you can help me get it done. I think i missed somewhere a step on one of the tutorials or there is just something missing on the tutorial...
PS: forgot to mention: i'm not recording or analyzing the stream so far. Just monitoring 5 cams. 3x 1080p and 2x 1440p.
Someone told me, that i missunderstood what i see on nvtop, because the CPU load value relate to the GPU processor unit and not the actual CPU, but i don't think it's like that cause the CPU is running with like 50-60°C ... this wouldn't be, if the GPU was computing instead i think.
I'm new to the whole topic and as i did my brand new installation of Ubuntu and zoneminder (clean install through
Code: Select all
apt install zoneminder
So i checked by simply viewing the system ressources monitor and saw that all cores are running on kinda 50-60% load.
I googled a bit and people are telling to rather use ffmpeg and hwaccel for better performance.
For this i bought a Nvidia Quadro T600 (why this one? it was sold pretty much cheap atm on local stores and as i checked https://trac.ffmpeg.org/wiki/HWAccelIntro and https://developer.nvidia.com/video-enco ... matrix-new it should be compatible for my purposes).
I followed this tutorial https://www.cyberciti.biz/faq/how-to-in ... -on-linux/ for installation of ffmpeg with CUDA / CUVID support.
And finally i followed https://zoneminder.readthedocs.io/en/st ... arted.html for initial setup with NVIDIA gpu support. Especially set
Code: Select all
DecoderHWaccelName: cuda
DecoderHWaccelDevice: cuvid
Maybe you can help me get it done. I think i missed somewhere a step on one of the tutorials or there is just something missing on the tutorial...
PS: forgot to mention: i'm not recording or analyzing the stream so far. Just monitoring 5 cams. 3x 1080p and 2x 1440p.
Someone told me, that i missunderstood what i see on nvtop, because the CPU load value relate to the GPU processor unit and not the actual CPU, but i don't think it's like that cause the CPU is running with like 50-60°C ... this wouldn't be, if the GPU was computing instead i think.