Page 1 of 2
Performance lag
Posted: Tue Oct 29, 2024 4:16 pm
by copiagufoods
Greetings,
I'm having some issues where there is lag on the live stream.
A person/object will show on the live view 30-90 seconds after it has already passed.
Thanks in advance!
Server Specs:
Blue Iris 5.9.8.5 x64
Intel i7-13700 2.10 Ghz
32GB RAM
10TB HDD storage
AMD Radeon RX 6500
5 HikVision DS-2CD2142G2-IU IP cameras/30fps
Re: Performance lag
Posted: Tue Oct 29, 2024 10:36 pm
by BruceH
Have you checked the direct feed from the camera web page, my experience is that even it has some delay. Is the delay present on all 5 of your HikVision DS-2CD2142G2-IU IP cameras or just some of them.
Re: Performance lag
Posted: Tue Oct 29, 2024 11:02 pm
by copiagufoods
Yes, the live view from the camera IP on all 5 cameras is accurate and not delayed. I saw a post that referenced H265 so changed it to H264 and will see if that helps.
Re: Performance lag
Posted: Tue Nov 05, 2024 4:35 am
by copiagufoods
I’ve still been unable to find why there is a delay.
The timestamp is correct but it’s showing persons that moved over a minute prior.
Any advice?
Re: Performance lag
Posted: Tue Nov 05, 2024 1:58 pm
by nh905g
Are you using both main and sub streams? When you say "live view from the camera IP on all 5 cameras is accurate and not delayed", how are you viewing the live stream? I ran into a similar issue with some Reolink cameras after a firmware update where the the sub stream RTSP stream was falling behind the main stream. The Reolink app did not show the issue because it uses its own propriety interface to the cameras. To convince Reolink that it was their problem, I reproduced the problem using two VLC sessions, one accessing the main stream, the other accessing the sub stream. Reolink did provide updated firmware but I had already resolved the problem by switching to RTMP.
Re: Performance lag
Posted: Tue Nov 05, 2024 6:53 pm
by ducem
Try a master reset, always my first port of call.
(Turn everything off then back on) It is surprising good at fixing lag issues
Re: Performance lag
Posted: Tue Nov 05, 2024 6:54 pm
by copiagufoods
nh905g wrote: ↑Tue Nov 05, 2024 1:58 pm
Are you using both main and sub streams?
I've attached a screenshot of the streams I'm using.
nh905g wrote: ↑Tue Nov 05, 2024 1:58 pm
When you say "live view from the camera IP on all 5 cameras is accurate and not delayed", how are you viewing the live stream?
When I browse to the IP addresses of the individual cameras, the feed is accurate and real-time.
Re: Performance lag
Posted: Wed Nov 06, 2024 7:02 am
by TimG
So no sub streams. What do your iframe settings show in BI5 ? Add screengrab from cameras tab next to Log.
Re: Performance lag
Posted: Thu Nov 07, 2024 2:19 pm
by Pogo
Check the CMOS clock in the system BIOS for starters, then the system time itself along with any/all NTP settings. It all needs to match for accurate time across the board.
UDP port 123 also needs to be open through any firewall/router rules for access to NTP sources beyond a local NTP server -- which also requires access to the outside world via UDP port 123 unless using GPS, etc.
The other obvious issue could possibly be LAN latency of some kind. From the BlueIris machine, try pinging a single camera with large packets for an extended period and see what happens. ping <ip address> -l 4096 -t should give you an indication of any drastic weirdness. 4096 is the packet length (size) in bytes and -t will keep the pings going until terminated by Ctrl-C. Let it go for awhile, maybe 10-15 minutes. You shouldn't see anything much slower than a few milliseconds max displayed in the resulting report.
One other aspect worth checking would be whether the Intel and AMD are banging into each other trying to decode things. Blue Iris would be happier with the Intel and QuickSync than with the Radeon (in most cases). Make sure to set it as the camera default in the main BI menu for cameras or individually in each camera's configuration. Doing it individually provides the option of comparing each from one camera to another to see which works best or whether there's even any discernible difference.
The other possibility is AI requiring excessive amounts of time to process whatever may be expected of it. If using CPAI, kill it and see if that makes any difference.
Re: Performance lag
Posted: Thu Nov 14, 2024 5:48 am
by copiagufoods
This box was on Windows 11.
I did a fresh install of Windows 10, imported by BI settings, and everything is perfect!
Cameras are showing in real-time.
Thanks for everyone's help!