Performance lag
-
- Posts: 5
- Joined: Tue Oct 29, 2024 4:05 pm
Performance lag
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
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
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.
-
- Posts: 5
- Joined: Tue Oct 29, 2024 4:05 pm
Re: Performance lag
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.
-
- Posts: 5
- Joined: Tue Oct 29, 2024 4:05 pm
Re: Performance lag
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?
The timestamp is correct but it’s showing persons that moved over a minute prior.
Any advice?
Re: Performance lag
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
Try a master reset, always my first port of call.
(Turn everything off then back on) It is surprising good at fixing lag issues
(Turn everything off then back on) It is surprising good at fixing lag issues
-
- Posts: 5
- Joined: Tue Oct 29, 2024 4:05 pm
Re: Performance lag
I've attached a screenshot of the streams I'm using.
When I browse to the IP addresses of the individual cameras, the feed is accurate and real-time.
- Attachments
-
- streams.jpg (77.84 KiB) Viewed 2840 times
Re: Performance lag
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.
Problem ? Ask and we will try to assist, but please check the Help file.
Re: Performance lag
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.
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.
-
- Posts: 5
- Joined: Tue Oct 29, 2024 4:05 pm
Re: Performance lag
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!
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!