Night mode not working with IVS

Pacer

n3wb
Joined
Aug 30, 2021
Messages
8
Reaction score
1
Location
sweden
Hi there, I have a setup with a DHI-NVR5208-8P-4KS2 running 7 cameras. The models are:
HDW5541H-AS-PV
HDW3541T-ZAS
HDW3849-AS_PV

During the day, IVS is working prefect, giving alarms on people, vehicles etc. But as soon as its dark, there is suddenly a bad performance. IR is turned up to the full on the IR cameras, and there is artificial light kicking in to assist the cameras that have no IR.
Since the problem occurs on all cameras - no matter what model - I guess that I have made a error in the setup on my NVR. But I have been trough it several times, and can not seem to find out what error... Any suggestions?
 

MC1987

Pulling my weight
Joined
Apr 5, 2018
Messages
175
Reaction score
112
You need to supply images, examples and screenshots of settings
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,032
Reaction score
48,802
Location
USA
We need to see the problem night view, but the first issue looks like it is installed too high.

We also need to see the settings for exposure, brightness, contrast, etc. For the problem night profile.
 

ThomasCamFan

Pulling my weight
Joined
Dec 14, 2020
Messages
143
Reaction score
231
Location
USA
Are the IVS rules using tripwire or intrusion?

I suggest you post a screenshot of the IVS boundary lines.

- Thomas
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,032
Reaction score
48,802
Location
USA
BLC at night is problematic.

Running default/auto shutter is problematic.

The camera mounted too high is problematic.

Every field of view is different, but I have found you need contrast to usually be 6-8 higher than the brightness number at night.

But first, run H264, smart codec off, CBR, and 8192 bitrate to start, along with 15 FPS and 15 i-frame.

We want the ability to freeze frame capture a clean image from the video at night, and that is only done with a shutter of 1/60 or faster. At night, default/auto may be on 1/12s shutter or worse to make the image bright.

In my opinion, shutter (exposure) and gain are the two most important parameters and then base the others off of it. Shutter is more important than FPS. It is the shutter speed that prevents motion blur, not FPS. 15 FPS is more than enough for surveillance cameras as we are not producing Hollywood movies. Match iframes to FPS. 15FPS is all that is usually needed.

Many people do not realize there is manual shutter that lets you adjust shutter and gain and a shutter priority that only lets you adjust shutter speed but not gain. The higher the gain, the bigger the noise and see-through ghosting start to appear because the noise is amplified. Most people select shutter priority and run a faster shutter than they should because it is likely being done at 100 gain, so it is actually defeating their purpose of a faster shutter.

Go into shutter settings and change to manual shutter and start with custom shutter as ms and change to 0-8.3ms and gain 0-50 (night) and 0-4ms exposure and 0-30 gain (day)for starters. Auto could have a shutter speed of 100ms or more with a gain at 100 and shutter priority could result in gain up at 100 which will contribute to significant ghosting and that blinding white you will get from the infrared or white light.

Now what you will notice immediately at night is that your image gets A LOT darker. That faster the shutter, the more light that is needed. But it is a balance. The nice bright night static image results in Casper blur and ghost during motion LOL. What do we want, a nice static image or a clean image when there is motion introduced to the scene?

In the daytime, if it is still too bright, then drop the 4ms down to 3ms then 2ms, etc. You have to play with it for your field of view.

Then at night, if it is too dark, then start adding ms to the time. Go to 10ms, 12ms, etc. until you find what you feel is acceptable as an image. Then have someone walk around and see if you can get a clean shot. Try not to go above 16.67ms (but certainly not above 30ms) as that tends to be the point where blur starts to occur. Conversely, if it is still bright, then drop down in time to get a faster shutter.

You can also adjust brightness and contrast to improve the image.

You can also add some gain to brighten the image - but the higher the gain, the more ghosting you get. Some cameras can go to 70 or so before it is an issue and some can't go over 50.

But adjusting those two settings will have the biggest impact. The next one is noise reduction. Want to keep that as low as possible. Depending on the amount of light you have, you might be able to get down to 40 or so at night (again camera dependent) and 20-30 during the day, but take it as low as you can before it gets too noisy. Again this one is a balance as well. Too smooth and no noise can result in soft images and contribute to blur.

Do not use backlight features until you have exhausted every other parameter setting. And if you do have to use backlight, take it down as low as possible.

After every setting adjustment, have someone walk around outside and see if you can freeze-frame to get a clean image. If not, keep changing until you do. Clean motion pictures are what we are after, not a clean static image.
 

Pacer

n3wb
Joined
Aug 30, 2021
Messages
8
Reaction score
1
Location
sweden
BLC at night is problematic.

Running default/auto shutter is problematic.

The camera mounted too high is problematic.

Every field of view is different, but I have found you need contrast to usually be 6-8 higher than the brightness number at night.

But first, run H264, smart codec off, CBR, and 8192 bitrate to start, along with 15 FPS and 15 i-frame.

We want the ability to freeze frame capture a clean image from the video at night, and that is only done with a shutter of 1/60 or faster. At night, default/auto may be on 1/12s shutter or worse to make the image bright.

In my opinion, shutter (exposure) and gain are the two most important parameters and then base the others off of it. Shutter is more important than FPS. It is the shutter speed that prevents motion blur, not FPS. 15 FPS is more than enough for surveillance cameras as we are not producing Hollywood movies. Match iframes to FPS. 15FPS is all that is usually needed.

Many people do not realize there is manual shutter that lets you adjust shutter and gain and a shutter priority that only lets you adjust shutter speed but not gain. The higher the gain, the bigger the noise and see-through ghosting start to appear because the noise is amplified. Most people select shutter priority and run a faster shutter than they should because it is likely being done at 100 gain, so it is actually defeating their purpose of a faster shutter.

Go into shutter settings and change to manual shutter and start with custom shutter as ms and change to 0-8.3ms and gain 0-50 (night) and 0-4ms exposure and 0-30 gain (day)for starters. Auto could have a shutter speed of 100ms or more with a gain at 100 and shutter priority could result in gain up at 100 which will contribute to significant ghosting and that blinding white you will get from the infrared or white light.

Now what you will notice immediately at night is that your image gets A LOT darker. That faster the shutter, the more light that is needed. But it is a balance. The nice bright night static image results in Casper blur and ghost during motion LOL. What do we want, a nice static image or a clean image when there is motion introduced to the scene?

In the daytime, if it is still too bright, then drop the 4ms down to 3ms then 2ms, etc. You have to play with it for your field of view.

Then at night, if it is too dark, then start adding ms to the time. Go to 10ms, 12ms, etc. until you find what you feel is acceptable as an image. Then have someone walk around and see if you can get a clean shot. Try not to go above 16.67ms (but certainly not above 30ms) as that tends to be the point where blur starts to occur. Conversely, if it is still bright, then drop down in time to get a faster shutter.

You can also adjust brightness and contrast to improve the image.

You can also add some gain to brighten the image - but the higher the gain, the more ghosting you get. Some cameras can go to 70 or so before it is an issue and some can't go over 50.

But adjusting those two settings will have the biggest impact. The next one is noise reduction. Want to keep that as low as possible. Depending on the amount of light you have, you might be able to get down to 40 or so at night (again camera dependent) and 20-30 during the day, but take it as low as you can before it gets too noisy. Again this one is a balance as well. Too smooth and no noise can result in soft images and contribute to blur.

Do not use backlight features until you have exhausted every other parameter setting. And if you do have to use backlight, take it down as low as possible.

After every setting adjustment, have someone walk around outside and see if you can freeze-frame to get a clean image. If not, keep changing until you do. Clean motion pictures are what we are after, not a clean static image.
Dear Wittaj, Thanks a LOT for a long and very helpful answer - much appreciated :)
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,032
Reaction score
48,802
Location
USA
Hopefully that helps your IVS trigger more consistently at night! BLC and that washed out image is certainly the issue.
 
Top