Page 1 of 1

Adding a GPU card

Posted: Tue Jul 18, 2017 12:58 am
by hokedigital
I'm running an i5 with 8 x 5mp cameras H265

If I install a GPU card, would this increase the processing power or take the load off the CPU?


Thank you

Tom

Re: Adding a GPU card

Posted: Tue Jul 18, 2017 3:12 pm
by bbunge
No. Assume you are running a server? GPU are for desktops.

Add more RAM if you can. That is where you will gain the most. My i5 runs 17 cameras without a problem.

Re: Adding a GPU card

Posted: Tue Jul 18, 2017 11:56 pm
by hokedigital
Im using Ubuntu 16.04 LAMP 16G ram
also looking at testing 4K cameras

Thanks

Re: Adding a GPU card

Posted: Mon Jul 24, 2017 4:17 am
by rockedge
OpenCV can be compiled to use GPUs

Re: Adding a GPU card

Posted: Thu Aug 24, 2017 3:44 am
by epruesse
Probably yes. You may have to mess with some libavcodec configuration though.

The recommended settings tell you to set ZoneMinder to use "ffmpeg". Behind the scenes, ZoneMinder uses libavcodec to expand the h.264 stream to images. This library is theoretically capable of using hardware acceleration both from GPU and CPU. E.g. I'm noticing distinct differences in CPU load if my stream becomes wider than 2048px as that is the max my older Intel CPU can do hardware acceleration on.

Please post if you managed to make it work, and how you did it.

Re: Adding a GPU card

Posted: Sat Sep 02, 2017 11:55 am
by bartekn86
ihave compiled ffmpeg

root@nas:/etc/apache2# ffmpeg
ffmpeg version N-87160-g9aa2469930 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
configuration: --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-vaapi --enable-vdpau --enable-libmfx --enable-nonfree --enable-libnpp

ffmpeg -hwaccel shows
Hardware acceleration methods:
vdpau
qsv
vaapi
cuvid

but nvidia-smi shows nothing while previev a "monitor" images... such as intel_gpu_top when i putout GF630 out from pc
tested on gt630 @ drivers Driver Version: 375.66
and j3455 cpu with hd500 igpu (qsv/vaapi method)

iconnor tell that he tested some hwardwarre acceleration but how make it usefull if sb have any experience/advice many people will be grateful

Re: Adding a GPU card

Posted: Mon Sep 04, 2017 4:58 pm
by bartekn86
Hi,
isnt vaapi for intel gpu ? (igpu) nvidia drivers istalled, ffmpeg compiled from nvidia sdk ffmpeg tutorial... nothing happens...

is it any option to run zmc -m without generating jpeg/mpg when nobody look at prev. from cam ?

Re: Adding a GPU card

Posted: Tue Sep 05, 2017 4:45 pm
by bartekn86
HI,
debian, vaapi, ffmpeg compiled by myself.. in htop i see that ffmpeg is run with -hwaccel auto/vpadu/vaapi but i dont see any gpu activity...

Re: Adding a GPU card

Posted: Thu Sep 19, 2019 7:58 am
by MalakymR
This post has been linked to via a blog from someone who thinks ZM has it in for them, and posts crap about ZM everywhere they can.

They put this at the bottom of the quote "- ZoneMinder Developer" as if this single message means everything when everyone below says its okay.

Then ends with this "Beware of false knowledge; it is more dangerous than ignorance."


Well if you are here from the medium.com post, you just read some "false knowledge".

bbunge wrote: Tue Jul 18, 2017 3:12 pm No. Assume you are running a server? GPU are for desktops.

Add more RAM if you can. That is where you will gain the most. My i5 runs 17 cameras without a problem.

Re: Adding a GPU card

Posted: Thu Sep 19, 2019 8:26 pm
by iconnor
Servers often have crippled vga chipsets and no gpu slots. I don't know why someone doesn't make a pcie x8 gpu card. Maybe they do and I havn't found it. I have played with a PCI zotac nvidia gpu and it worked ok.

vaapi is primarily for intel, but also works with mesa and amd and nvidia. cuda is better for nvidia.

Re: Adding a GPU card

Posted: Mon Sep 23, 2019 11:59 pm
by bbunge
MalakymR wrote: Thu Sep 19, 2019 7:58 am This post has been linked to via a blog from someone who thinks ZM has it in for them, and posts crap about ZM everywhere they can.

They put this at the bottom of the quote "- ZoneMinder Developer" as if this single message means everything when everyone below says its okay.

Then ends with this "Beware of false knowledge; it is more dangerous than ignorance."


Well if you are here from the medium.com post, you just read some "false knowledge".

bbunge wrote: Tue Jul 18, 2017 3:12 pm No. Assume you are running a server? GPU are for desktops.

Add more RAM if you can. That is where you will gain the most. My i5 runs 17 cameras without a problem.
Well, I have to admit that I learn something new about computers just about every day. My comment about GPU's was based upon what I knew in 2017 but It wasn't "false" at the time for me.One of these days I'll likely figure out how to use a GPU to boost Linux horsepower. But for now I'll just search the junk piles for good discarded hardware that is better than what I already have...

Re: Adding a GPU card

Posted: Tue Nov 03, 2020 2:46 pm
by MalakymR
bbunge wrote: Mon Sep 23, 2019 11:59 pm
Well, I have to admit that I learn something new about computers just about every day. My comment about GPU's was based upon what I knew in 2017 but It wasn't "false" at the time for me.One of these days I'll likely figure out how to use a GPU to boost Linux horsepower. But for now I'll just search the junk piles for good discarded hardware that is better than what I already have...

This wasn't your fault - the other person was quoting you as a developer.

I'm actually going to link this here for posterity.

https://web.archive.org/web/20201103144 ... 6ByZYNPFCG

As I expected, the original was deleted, hence the link.

To quote the Shinobi page - "Beware of false knowledge; it is more dangerous than ignorance."