cuda on geforce gt 1030

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
lift28
Posts: 5
Joined: Sat Jan 18, 2020 7:32 pm

cuda on geforce gt 1030

Post 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
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: cuda on geforce gt 1030

Post by iconnor »

you need ffmpeg built with cuda to use nvidia
lift28
Posts: 5
Joined: Sat Jan 18, 2020 7:32 pm

Re: cuda on geforce gt 1030

Post by lift28 »

Thanks, missed it, I'll give it a try👍
lift28
Posts: 5
Joined: Sat Jan 18, 2020 7:32 pm

Re: cuda on geforce gt 1030

Post 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
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: cuda on geforce gt 1030

Post 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/
lift28
Posts: 5
Joined: Sat Jan 18, 2020 7:32 pm

Re: cuda on geforce gt 1030

Post 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
shane_pcs
Posts: 2
Joined: Thu Jan 23, 2020 9:43 pm

Re: cuda on geforce gt 1030

Post 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
lift28
Posts: 5
Joined: Sat Jan 18, 2020 7:32 pm

Re: cuda on geforce gt 1030

Post by lift28 »

Thanks I'll upgrade my card in soon.
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: cuda on geforce gt 1030

Post 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" ? :)
andrew-yu
Posts: 24
Joined: Thu Sep 20, 2018 7:50 am

Re: cuda on geforce gt 1030

Post by andrew-yu »

Is there any docs how to setup zoneminder to be used with ati/nvidia card?
synoptic
Posts: 3
Joined: Mon Dec 30, 2019 10:44 pm

Re: cuda on geforce gt 1030

Post 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.
Post Reply