Constant video artifacts and ghosting

eroji

Young grasshopper
Jul 10, 2015
36
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:
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?
 
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.
 
  • Like
Reactions: Flintstone61
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.
 
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.
 
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.
 
Looks like it's still happening. The odd part is it only occurs during motion and it's consistently on the edge areas.
 

Attachments

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.
 
  • Like
Reactions: spammenotinoz
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.
 
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:
 
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.
 
Increase the bit rate.
Turn smoothing off

Test turn off sub streams in bi
Test turn off hardware acceleration.
 
  • Like
Reactions: bigredfish