I run HASS on a bare metal host and I was getting a 10-20s delays from my HIkvision cameras using Generic platform rstp feed while on VLC I was getting no delays at all. What helped me was to move to mjpeg platfrom (my camera supports it). Now I have real live stream in frontend. Hope this will help somebody
I have the same issue, delay getting bigger if stream running on frontend for long time, I’m experiensing 1-15 minute delay, seems like system is recording and then streaming video which causes that delay. Using different hardware does not help as I have ran HA in docker on x86 (Xeon with 16gb ram and 8 cores) PC - same result, so I would say that this is something to do with HA not actual hardware.
Code:
For anyone who’s interested, I did a write-up of how I managed to display a low-latency feed an IP camera in a picture-in-picture popup on Android TV using WebRTC Camera. I included some detail on WebRTC and getting the camera stream delay as low as possible, plus router configuration and reasoning behind how you want to expose your HA instance to the internet for all this to work.
Hello!
I have also this issue with delay about 10-15 seconds.
I noticed that delay appear after activating MariaDB. When MariaDB is disabled and HA restarted — delay reducing to 1-2 seconds.
One more specificity noticed: video stream delay (15sec) with enabled MariaDB is only on mobile app. PC over browser works fine (2-3 seconds delay) with/without MariaDB.
CPU usage ~6%, RAM usage ~12,5%