I have a camera I can view with an rtsp address. I thought I would be able to add it to ha, but I only get a snapshot of it, not the live view…is it possible to keep a live feed?
What hardware are you running your HA on? I found that my pi could only refresh every 10 or 15 seconds and was using a lot of CPU to do so. I think if you run your HA on more powerful hardware you should get a more real-time stream.
I don’t think you can have a live feed without opening the camera (by clicking on the preview).
I’m using ZoneMinder and the preview is refreshed every 10s. If I open the preview, then it’s live feed.
I’ve tried to get a live feed from rtsp feed but the support is only very poor, even with an home server, the live feed is slow and will only be refreshed every few seconds.
That’s because there is no python support for rtsp if I understood correctly.
You could try to tweak the ffmpeg feed, but it doesn’t get much better…
Hi, resurrecting an old thread, but is there any update to this? Added a Xiaomi camera with dafang hack, and I can get a pretty ok RTSP stream on my network, however when opening the picture on my hass.io install I’m only getting like 1 picture every 5 seconds or so…
I am also interested in this. I’m running HA in a container, in a VM. I give it additional resources, but again the video is not real time. Any solutions on this?
Thanks
I think I was able to add a camera RTSP stream to the motionEye add-on and get a live stream. Although honestly I can’t remember, I only did it for a few minutes as a test.
go to https://www.ispyconnect.com/sources.aspx and get the specific rstp link for your camera,
then open config ui, select iframe, and put your rstp link in (mine shows https because I’m doing a reverse proxy), but just put in your rstp:// link and it’ll show.
You can of course use the rstp link in motioneye, then use the link from motioneye (http link) in the ui card.
Edit: When I changed my configuration I did use motioneye (put the rstp stream there), then went to video streaming, (don’t enable it) grabbed the embed url and pasted that in the iframe card. Sorry for the confusion.
Yes, I’m sorry for the confusion… my setup is ESXi 5.5 VM with 16 gig drive and 4 gig ram, Ubuntu, HASS running in a container, and motioneye running under Ubuntu. I have the rstp stream in motioneye (which is considerably faster and fluid at 30fps), then the embed url in HA and I get 6 constant streams (no chop, skipping, or snapshots) and am serving it through nginx on another virtual. I had to open a second port on my router for the cameras to stream properly through the reverse proxy.
yes, also running ESXI here, with HassOS instead
i used the RTSP stream directly from Synology surveillance
but it was never smooth in my lovelace config
according to balloob, rtsp component is not ready yet for smooth streaming :
I also have a synology, but the stream was never smooth as mentioned… in motioneye (using the rtsp stream from my cameras) it is smooth and the embed url is smooth (the other stream in motioneye is too big and choppy).
In my setup the feed url is from motioneye, but I had to loop out and back in with nginx so I could see the feeds on the outside (I have a static ip with FQDN), but if you are just doing a straight shot, then yes, the embed url directly from motioneye works perfectly. My setup is motioneye out to nginx (reverse proxy) then out to the web, then the actual link (FQDN:port) is put into the lovelace card.