Performance lag

copiagufoods
Posts: 5
Joined: Tue Oct 29, 2024 4:05 pm

Performance lag

Post 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
BruceH
Posts: 151
Joined: Wed Apr 01, 2020 10:10 pm

Re: Performance lag

Post 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.
copiagufoods
Posts: 5
Joined: Tue Oct 29, 2024 4:05 pm

Re: Performance lag

Post 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.
copiagufoods
Posts: 5
Joined: Tue Oct 29, 2024 4:05 pm

Re: Performance lag

Post 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?
nh905g
Posts: 9
Joined: Fri Jun 25, 2021 1:01 pm

Re: Performance lag

Post 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.
ducem
Posts: 27
Joined: Mon Dec 20, 2021 11:39 am

Re: Performance lag

Post 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
copiagufoods
Posts: 5
Joined: Tue Oct 29, 2024 4:05 pm

Re: Performance lag

Post 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.
Attachments
streams.jpg
streams.jpg (77.84 KiB) Viewed 2840 times
User avatar
TimG
Posts: 2675
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: Performance lag

Post by TimG »

So no sub streams. What do your iframe settings show in BI5 ? Add screengrab from cameras tab next to Log.
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
User avatar
Pogo
Posts: 652
Joined: Tue Jul 18, 2023 7:21 pm
Location: Reportedly in the Area

Re: Performance lag

Post 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.
copiagufoods
Posts: 5
Joined: Tue Oct 29, 2024 4:05 pm

Re: Performance lag

Post 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!
Post Reply