~1/2 second of delay when displaying an IP camera feed on a VMS client is fairly common.
Usually people do not notice nor care for fixed cameras in surveillance. Obviously, PTZ controls is an important exception.
Oops! I read it as 1-2 seconds of lag, not .5 seconds! Agreed .5 is pretty normal, but you can still profile if you want...:)
Start by profiling your lag: Lag, of course, is made up of several components and therefore breaking out the individual segments the lag can help to identify those areas that your time is best spent improving. Fancy tools and analyzers can do a real-good job at this, but usually just a couple informal tests will reveal the problem.
First thing to do is dedicate a ipad or smartphone to being a digital timepiece (many free apps) because some accuracy is helpful. The best situation is where you can have one of the cameras (staying on the same switch the camera was already on if possible) in the same room as your VMS monitor. Position the smartphone so that it leans up against the side beze of your VMS monitor. Have the poe cam pointed at smartphone (with the stopwatch running) as well as the live VMS output, avoid feedback by angling poe cam. Use a digital camera to take a picture of the stopwatch phone and VMS ouput screen in the same frame. Subtract the times in the photo to get an accurate total lag time. Take several measurements in a row to see what the variance is. Then take measurements by changing out parts of the system and snapping new photos to see their effect.
Some of the obvious things to try would be
- Have only the POE camera a switch and the computer on the network while viewing the VMS
- ditto above except now go to the native hikvision software or vlc
- try a laptop instead of computer
- swap your switches
- swap your cameras
This should give you an idea where to concentrate...
Post the pics...
Thanks John & Rukmini.
One more thing I can strike off my list to figure-out.
It still seems strange to me that a live feed would have lag though. Is the lag from the H264 encoding process? If so, does this mean if I send uncompressed video to the VMS there would much less or no lag in live viewing?
" send uncompressed video to the VMS "
from HIK IP camera
How do you do that ?
I wonder if anybody else has experienced a similar lag issue to what I'm experiencing.
I have a Hikvision rebranded NVR running 4 x 4MPx cameras. I have a single camera spot out from one of the NVR's video out ports (HDMI). This HDMI runs through a 'HDMI over Cat' converter for approximately 20 metres and then displays direct onto a monitor through a HDMI input.
I've noticed that following a NVR reboot, there is lag of approx. 0.5 to 1 second. After approximately 2 months, this lag has increased and grown to approximately 10 seconds.
I've reduced resolution and avoided codec intensive processing such as H265. The NVR processor is running at below 30 percent capacity.
Does anybody know whether it is possible for an NVR to cause lag of up to 10 seconds?
TCP is delayed in situations where there is a lot of packet loss.
Changed to UDP.