Constant video artifacts and ghosting

eroji

Young grasshopper
Joined
Jul 10, 2015
Messages
36
Reaction score
3
I recently upgraded my BI server to ASRock X470D4U with Ryzen 5 3600 and 16GB of memory. The CPU handles my 8 Hikvision DS-2CD2185FWD-I cameras without any issue. I'm using motion detection on substream for each camera. However and the video seems to be producing artifacts during any movement. I tried tweaking everything setting in both the cameras and BI but can't seem to eliminate it.
 

Attachments

Last edited:

eroji

Young grasshopper
Joined
Jul 10, 2015
Messages
36
Reaction score
3
Here are the video settings for the cameras.

1611307927093.png
 

Flintstone61

Known around here
Joined
Feb 4, 2020
Messages
6,599
Reaction score
10,920
Location
Minnesota USA
Every location and camera type will be a slightly different fix. I'm not the authority on this topic but i've dealt with a few of these issues.
Some people have tried switching Variable to CBR and turning up the 4096 kbps to higher numbers. I had quite a few camera's doing that at first, and each brand is different on what makes it happy. Some people have tried changing the i-frame values to double what the value of the FPS is set to. But I-frames are not adjustable on some cameras.
I could not completely eliminate it on my Jidetech ( possibly a Hikvision rebrand?) 2mp ptz.
I ended up switching cameras to a Loryta IPC-T2431T-AS 3.6mm for that location, and that has solved it for that situation.
The PTZ doesn't do it now with it zoomed out 75% of the way in it's new location as an overview of the parking lot. Your's isnt super horrible. but annoying nonetheless. Does it doit during the day too?
 

eroji

Young grasshopper
Joined
Jul 10, 2015
Messages
36
Reaction score
3
The strange part is I've had these cameras for a few years now. I was previously using a Xeon E5-2630v3 server with Nvidia P2000 for encode/decode. It did not have this artifact issue. However, after I rebuilt the server this started happening on all cameras.
 

Flintstone61

Known around here
Joined
Feb 4, 2020
Messages
6,599
Reaction score
10,920
Location
Minnesota USA
Oh. i have no experience with AMD ryzen. are you using a dedicated graphics card or onboard graphics. I think somebody posted information about certain settings for onboard Ryzen graphics. In the motherboard bios of most boards they have menu selection with options on dedicated memory to on board graphics. maybe try maxing that out?
Somebody will see this post and have some answers for you.
 

spammenotinoz

Getting comfortable
Joined
Apr 4, 2019
Messages
345
Reaction score
276
Location
Sydney
Here are the video settings for the cameras.
I don't have this camera, but I think you have to issues.
Artifacting
The artifacting is likely caused by having SVC enabled and Variable Bitrate. I would disable SVC and change to constant bitrate for troubleshooting (you can enable later).
If that doesn't fix it disable hardware decode, although you should be able to use DirectX ir Direct3D after your sort the artifacting out.

Ghosting
I think the ghosting however is caused by lack of light and too slow shutter speed, try dialing in a faster shutter speed. If you search these forums for your camera, you may find some recommended settings.
With most cameras I have tried, regardless of brand if I leave them on auto I get ghosting.

While you say you have 16GB ensure it is dual channel 2 x 8GB not a single 16GB module or you are leaving 40% of the integrated GPU performance on the table. It's a an AMD thing.
 

eroji

Young grasshopper
Joined
Jul 10, 2015
Messages
36
Reaction score
3
I'm not using GPU since the Ryzen CPU is beefy enough to handle the cameras. Also, I'm using dual channel for the memory, so that is not a handicap. I will try the recommendations for dealing with artifacts. I also bumped the shutter speed to 1/150 from 1/30 to see if that improves the ghosting.
 

eroji

Young grasshopper
Joined
Jul 10, 2015
Messages
36
Reaction score
3
Looks like it's still happening. The odd part is it only occurs during motion and it's consistently on the edge areas.
 

Attachments

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,673
Reaction score
14,018
Location
USA
Try Baseline profile instead of Main profile if that is an option. Maybe try H.265 if that is an option. Keep the + and SVC options disabled. Consider increasing the i-frame interval to be double the frame rate in case the cam just doesn't like a 1 second i-frame interval for some reason.
 

eroji

Young grasshopper
Joined
Jul 10, 2015
Messages
36
Reaction score
3
The only profile options are Main or High. I'll try the I-Frame change.
 

saltwater

Getting comfortable
Joined
Oct 6, 2019
Messages
485
Reaction score
630
Location
Melbourne, Australia
This thread piqued my interest as a similar issue was troubling me. I have 5442 cameras, were set at 15 fps and 30 iframe. Moving objects caused a wishy-washy wake (I'm not sure that's the technical term). Anyway, after fiddling with the iframe setting I ended up with an iframe of 60 keeping the fps at 15. Massive improvement.
 

eroji

Young grasshopper
Joined
Jul 10, 2015
Messages
36
Reaction score
3
It seems like if I remove the substream completely on the cameras it fixed the artifacting on the recordings. I don't understand why the substream would affect the main stream at all. Now I just get 2-3x the CPU utilization. :confused:
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,882
Reaction score
48,521
Location
USA
It appears you are pulling substream 2 in BI - a lot of cameras have a higher resolution for substream 2 - take a look at switching to substream 1 and/or also reducing the bitrate for the substream and see if that is the compromise to fix the issue and lower CPU.
 
Top