Page 1 of 1

cuda on geforce gt 1030

Posted: Sat Jan 18, 2020 7:44 pm
by lift28
is the gpu hardware decoding working on 1.34?
i have the above video card(decodes movies fine) and have set, DecoderHWAccelName to cuda and DecoderHWAccelDevice to /dev/nvidia0 and it isnt working on my ubuntu 19.04.
this is the only video card? do i need to have one not being used by the desktop?
everything else is working great in 1.34, except viewing hr motion events, no other problems noticed.
ffmpeg -hwaccels
vdpau
vaapi
drm

Re: cuda on geforce gt 1030

Posted: Sat Jan 18, 2020 9:13 pm
by iconnor
you need ffmpeg built with cuda to use nvidia

Re: cuda on geforce gt 1030

Posted: Sun Jan 19, 2020 6:05 pm
by lift28
Thanks, missed it, I'll give it a try👍

Re: cuda on geforce gt 1030

Posted: Sun Jan 19, 2020 10:10 pm
by lift28
got the nvidia cuda development stuff working i can see pids with nvidia-smi -l 1
also found a snap ffmpeg package that has cuda in it and can see it when i check what ffmpeg was compiled with.
unfortunately when i use apt-get to install your repo zoneminder ,it always install the the default ffmpeg.
for fun i copied over the ffmpeg from /snap/bin/ffmpeg to /usr/bin/ffmpeg, no love that way lol.
compiling ffmpeg looks like a long event, so i will go at that when my wife stops glaring at me for being on the server all weekend lol.
unless you got a quick road to go with it?
thanks

Re: cuda on geforce gt 1030

Posted: Mon Jan 20, 2020 2:06 pm
by iconnor
Please note that zm doesn't use the ffmpeg program, it uses the libraries.

I have actually built ffmpeg for various random distributions and stuck it at zmrepo. You can try that if you want.

deb https://zmrepo.zoneminder.com/debian/ffmpeg eoan/

Re: cuda on geforce gt 1030

Posted: Mon Jan 20, 2020 10:20 pm
by lift28
thanks for the ffmpeg build.
got it all installed (had to install sudo apt-get install libchromaprint1) and working, but it drove my cpu up per camera from 19% to 27%, turn off the cuda and cpu usage goes back down. i see the threads on the gpu.
would buying a better nvidia card help(mine was not made by nvidia)?
AMD® Fx(tm)-8150 eight-core processor × 8
GeForce GT 1030/PCIe/SSE2
3.32.1
ubuntu 19.04
thanks again for your help

Re: cuda on geforce gt 1030

Posted: Thu Jan 23, 2020 9:45 pm
by shane_pcs
GT1030 does not support NVENC, which could cause your problem. It has a decoder only. I believe you need a 1050 or higher according to this.

https://www.elpamsoft.com/?p=Plex-Hardware-Transcoding

Re: cuda on geforce gt 1030

Posted: Thu Jan 30, 2020 12:32 pm
by lift28
Thanks I'll upgrade my card in soon.

Re: cuda on geforce gt 1030

Posted: Thu Jan 30, 2020 2:18 pm
by lbm
This is interesting, but how much CPU reduction will this essentially give in different scenarios?
Would be awesome, if it would be possible to get almost CPU usage, using "mocord" ? :)

Re: cuda on geforce gt 1030

Posted: Fri Jan 31, 2020 5:11 pm
by andrew-yu
Is there any docs how to setup zoneminder to be used with ati/nvidia card?

Re: cuda on geforce gt 1030

Posted: Sun Feb 16, 2020 12:44 pm
by synoptic
andrew-yu wrote: Fri Jan 31, 2020 5:11 pm Is there any docs how to setup zoneminder to be used with ati/nvidia card?
looking for some doc too. GTX 980 I wish to use.