How to efficient use CCTV

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
ktara156
Posts: 19
Joined: Mon Sep 25, 2023 10:51 am

How to efficient use CCTV

Post by ktara156 »

Hello All!

I'm new in the CCTV and ZM ;) Could someone from you recommend to me, how to setup efficient my house CCTV system? (6 Hikvision D140H cameras, SBC server (Odroid H3+, 2TB SSD (1GB for CCTV usage))).

My first thought is to setup up recording:
- constantly with 1 frames per second
- at alert/Zones 10 frames per second
What do you thing about this? Is is possible in ZoneMinder (if yes, could you please send me link to the guidance)?

Also should I use ONVIF or FFMPEG?

Any other options to save CPU load and SSD space? H.265+ is a good choice?

And last question - should I use ZM detection system or build-in camera Hikvision decection system (with signal to ZM to record)?
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to efficient use CCTV

Post by dougmccrary »

You recording scheme is quite workable.
You can find guidance in the wiki.
For a local camera network with IP cameras, use ffmpeg.
Passthrough recording is lowest cpu.

You can try h265, but I don't think it works at this time. Well, the recordings work, but browsers won't play it last I checked.

If you want live view in Montage, you'll need to save some jpegs. I use Analysis images only.

You can use an HDD for storage, cheaper than SSD. Leave the rest on the SSD.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: How to efficient use CCTV

Post by Magic919 »

H.265+ is bad, as the long GOPs mean ZM has to buffer a huge number of frames.
-
ktara156
Posts: 19
Joined: Mon Sep 25, 2023 10:51 am

Re: How to efficient use CCTV

Post by ktara156 »

dougmccrary wrote: Tue Sep 26, 2023 12:33 am You recording scheme is quite workable.
You can find guidance in the wiki.
For a local camera network with IP cameras, use ffmpeg.
Passthrough recording is lowest cpu.

You can try h265, but I don't think it works at this time. Well, the recordings work, but browsers won't play it last I checked.

If you want live view in Montage, you'll need to save some jpegs. I use Analysis images only.

You can use an HDD for storage, cheaper than SSD. Leave the rest on the SSD.
Thanks for your support! h265+ works - I mean I can view live, also recordings for me it's not a problem (I don't need to view them in the browser). I think that using 'On demand' option in Capturing and Decoding should also save some CPU - am I right?
I'm also not sure how to setup camera to record in two ways
- constantly with 1 frames per second
- at alert/Zones 10 frames per second
Because in ZM I can select "On Motion / Trigger" OR "Always" - could you please share with me the link to certain guidance where I can setup my camera as mentioned before?
And last question - should I use ZM detection system or build-in camera Hikvision detection system (with signal to ZM to record)?
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: How to efficient use CCTV

Post by bbunge »

Use h264
ONVIF is used to detect cams and save settings
Use FFMPEG
Source Method: TCP
Save jprg's disabled
Video Writer Camera Passthrough
Function Modect
You may need to adjust the zones for outdoor cams to filter out movement of trees and vegetation.

At the camera set the FPS to 5 to 10 FPS. Key frame interval double the FPS which will give a full frame every two seconds. Also use no higher than 1080P

I use a 500 GB SSD with 5 cams and seldom use more than 15% disk space My server is an i3 quad core running Debian 12.
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to efficient use CCTV

Post by dougmccrary »

should I use ZM detection system or build-in camera Hikvision decection system (with signal to ZM to record)?
Can't say as I don't have that camera.
If I were you, I'd do both on one camera with two monitors and compare the results.
ktara156
Posts: 19
Joined: Mon Sep 25, 2023 10:51 am

Re: How to efficient use CCTV

Post by ktara156 »

[quote=bbunge post_id=131880 time=1695766270 user_id=19500]
Use h264
ONVIF is used to detect cams and save settings
Use FFMPEG
Source Method: TCP
Save jprg's disabled
Video Writer Camera Passthrough
Function Modect
You may need to adjust the zones for outdoor cams to filter out movement of trees and vegetation.

At the camera set the FPS to 5 to 10 FPS. Key frame interval double the FPS which will give a full frame every two seconds. Also use no higher than 1080P

I use a 500 GB SSD with 5 cams and seldom use more than 15% disk space My server is an i3 quad core running Debian 12.
[/quote]
Thanks for support, but... Where to find that 'Funcion' option....? ZM v1.37.45
Any why Modect? As I can read, it record while motion. But I would like [b]also[/b] to have constant video with 1 FPS/sec just in case of motion detection failure.
[attachment=0]Wklejony obraz.png[/attachment]
Attachments
Wklejony obraz.png
Wklejony obraz.png (72.15 KiB) Viewed 13732 times
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to efficient use CCTV

Post by dougmccrary »

"Function" is on the camera general tab.
Any why Modect? As I can read, it record while motion. But I would like also to have constant video with 1 FPS/sec just in case of motion detection failure.
Me too. Mocord is continuous with detection. Frame rate is a toss-up between smooth recordings and disk space.
3-4TB HDDs are pretty cheap now...
ktara156
Posts: 19
Joined: Mon Sep 25, 2023 10:51 am

Re: How to efficient use CCTV

Post by ktara156 »

dougmccrary wrote: Sat Sep 30, 2023 1:06 am "Function" is on the camera general tab.
Any why Modect? As I can read, it record while motion. But I would like also to have constant video with 1 FPS/sec just in case of motion detection failure.
Me too. Mocord is continuous with detection. Frame rate is a toss-up between smooth recordings and disk space.
3-4TB HDDs are pretty cheap now...
As I uploaded in my previous post - please look at the screenshot - there is no "Function" option in the general tab....
I know that 3-4TB are not expensive... but I would like to avoid using additional HDD and extra CPU load due to continuous recording...
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: How to efficient use CCTV

Post by Magic919 »

Posting in the 1.36 section running 1.37 will lead to incorrect advice.

Under Recording you can choose On motion or Always in 1.37.
-
ktara156
Posts: 19
Joined: Mon Sep 25, 2023 10:51 am

Re: How to efficient use CCTV

Post by ktara156 »

Magic919 wrote: Mon Oct 02, 2023 5:34 am Posting in the 1.36 section running 1.37 will lead to incorrect advice.

Under Recording you can choose On motion or Always in 1.37.
Thanks, I'm asking here because I cannot find 1.37 subboard ;)
Ok, but it will record only in one way only, so the question is open:
is it possible and how to setup camera to record in two ways at the same time:
- constantly with 1 frames per second
- On motion with 10 frames per second
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to efficient use CCTV

Post by dougmccrary »

The major sections are general, support, development, and miscellaneous.
Scroll down to development and see 1.37 branch.
ktara156
Posts: 19
Joined: Mon Sep 25, 2023 10:51 am

Re: How to efficient use CCTV

Post by ktara156 »

It is, great!
But can anyone answer to my ask?
is it possible and how to setup camera to record in two ways at the same time:
- constantly with 1 frames per second
- On motion with 10 frames per second
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to efficient use CCTV

Post by dougmccrary »

Not to my knowledge, unless:
You can set a main stream on the camera at 10FPS, and the second stream at 1FPS. One stream per monitor...
Post Reply