Do you feel that your camera stream has delays? Then try this method to speed up the live stream of your security camera! Let me know in the comments if this worked for you as well!
Hey. Do you have any HIKVisonm cameras ? i did all steps and i cant see stream in RTSPtoWEB Dashboard (i see stream in VLS for example its mean url is correct) Thx for any help in advance
I tried this and it worked fine locally. However, I am unable to show the live feed on dashboard remotely. I already had a live feed using reolink integration which has been working fine. After installing this it doesnt work when accessing remotely. When I disable the webRTC the live stream on dashboard works. When I am at home wifi the streaming works brilliantly using when webRTC enabled. Any thoughts?
I do not really understand ... as I have my cameras installed under "MJPEG Camera" as well as "Generic Camera". I can find both entities in HA ... now that I cahve configured WebRTC ... do you choose still another entity as camera ? Is there an entity created by WebRTC ??
Like always great videos. Big thumps up. 👍 I recently noticed that the integration is no longer maintained and moved to a new development by same author. RTSPtoWebRTC is now go2rtc. Could you maybe do another revision of this video with the new addon and integration? 😊
After installing and configuring webrtc, all generic cameras stopped working and webrtc UI page is not loading any streams , not even the ones added manually
Nice tutorial, thank you ! My 2 Reolink cameras where already installed and I just add to install the addon, and configure it. When in the 8083 page, if your camera doesn't appear, just wait for a couple of minutes.
Thank you so much for taking the time to walk us through the process. I'm happy to say that I was able to get my Eufy camera connected with HA because of this video. The only issue is that it seems unreliable. Basically, it works for a few minutes, then freezes. Might just be mine, so I intend to continue to mess with it in order to have it functioning the way it is intended.
Hello! Thanks for the tutorial. I guess that currently the WebRTC process is a bit different. I installed through hacs and it automatically also installed go2rtc. My question now is: is there a way to pause the streaming somehow? Thanks! I have Ring cameras and using addon ring-mqtt. In theory I have a switch to turn on and off but after the WebRTC Camera it doesn’t allow me to turn it off. It means that the camera is working all the time! Thank you in advance for anybody that can support!
@@SmartHomeJunkie No idea what you are using as NVR, but AI detection is really good with frigate and as an NVR it is pretty good. Also since it has build in go2rtc, the web2rtc in this video is redundant. EDIT: I'm running the same setup as you I think -- haOS in a KVM, and Wifi Doorbell, so if you need a working config, don't hesitate to let me know =)
Ok I have noob question. I set up everything, works good, but now I want external access. I read there are two options: STUN server or exclude substream from WebRTC. I don't know how to do that. Could someone describe me (step by step)?
Nice for the guide. But i noticed a problem with RTSP WEBRTC when the addon is added to HA it stops the ability to use the media tab in HA to stream cameras to GH displays. ive got about 5 cameras and all stopped showing as cameras
I had this working once before but now when i redo it webrtc is 1000000% the slowest preview and basically doesnt work....mse is the fastest for me...anyone know why?
nice video, 1 thing i don't get. Is there a connection between webRTC and the generic camera? Because you tell to name them the same. But URL's are in both camera's en webRTC. Is this just tyo compare the speed of both or is there some kind of interaction between the 2 parts of software? Thank you in advance!
Hi, thank you for a perfect video, as usual. Unfortunately, this time I cannot get things working. My camera's are for sure not automatically found by the webRTC browser. When I enter the camera's manually, I only get four black pictures for the four different protocols. So no streams at all. Any idea what could be wrong?
Has anyone setup a reolink nvr using this method...in general it works but it only shows one camera feed from the nvr. I did succeed is setting up each camera separately but figured I'd try the nvr as well.
Is there a way to get it to use the HLS stream in home assistant - I have a browser that says rtsptoweb server failure: unable to start track......says remote doesnt support I assume RTC......but if I go directly to it and choose HLS it can play it
Once again , great tutorial! This really works a lot faster. Now i'm only trying to find a way to make the video stream cast faster to my google nest hub, when someone rings my reolink doorbell.
@@SmartHomeJunkie I'd like to know to how it goes, I've done it and it's constantly freezing and lagging, I've also bought the google coral. but I'm running HA in k8s
Thanks for yet another useful video. The amount of work you put into these videos is unbelievable. Much appreciated! Now on the subject: Is this solution also possible for Ring system doorbells?
thank you for this tutorial. During the intro you mentioned communication with audio and video from peer-to-peer. I had hopes that you will show a demo with 2-way audio from the dashboard lovelace card to the camera. Does this work, too? And how about 2-way audio with a mobile device and the companion app?
Wow, wat een verschil! Echt geweldig! Gebruik de camera's om een ijsvogelbroedsel in de tuin te volgen en de vertraging en 3 fps waren erg irrtant, dit is top!
What did you find was the main advantages of using Generic Camera over other camera integrations? Just curious as I use Synolgy and like the way it picks up the cameras, but I don't like the delay
The delayed cam feed on my displays has been a real frustration for me. Thank you. I've had to set up a 2nd Generic Camera as the Frigate integration doesn't like this but not an issue.
My camera is integrated from the UniFi integration. I can see the image with Picture Entity but I tried adding WebRTC as you outline in your video. The UniFi protect app makes it easy to find the link BUT it is rtsps not rtsp Is there a way to make this work with a rtsps url? In the RTSPtoWEB browser I do not see the image, just a spinner. Thank you,
I found a fix for this. Update the url by changing rtsps to rtsp, remove the parameter at the end and change the port to 7747. rtsps://192.168.4.1:7441/Oq2ASjzPQkUVqDsa?enableSrtp rtsp://192.168.4.1:7447/Oq2ASjzPQkUVqDsa Drop the second “s” Change port to 7447 remove ?enableSrtp
Maybe a dumb question but I recently bought a Reolink Outdoor POE camera and I noticed you provided the URL's to add in Home Assistant. I presume you need to first install them with the Reolink app to set a password? Or can you add them to Home Assistant like you did fresh out of the box without any install of Reolink apps?
@@SmartHomeJunkie How do you use the HD stream with WebRTC and the low res stream without WebRTC? I'm only seeing one option for each stream with my Reolink cameras.
This is amazing. After I got webrtc up and running it found all my reolink cameras already integrated in home assistant. All my cameras load so much faster now.
Hi Ed, Noob question, sorry. Should this work with Reolink Argus PT 2K? I can't add that via the standard Reolink integration so hoped this would be an alternative as a generic camera, but at every attempt i get the following error @Unable to load valid image from still image URL (e.g. invalid host, URL or authentication failure). Review log for more info.
Well, it seems to me that the still url cannot be reached. You can fake this by pointing to a local image that you put in your www folder on your HA server. Be aware that you need to use /local for images that are stored in /www
@@gsmithdsl I have a couple of videos that explain how to store an image locally. I explain in this video how to store an image on your local server. How to SHOW YOUR CAMERA REMOTELY on Your Phone When The Doorbell Rings! ruclips.net/video/6jkzy2Cv9Pk/видео.html
Hi, another great one, thanks. I had trouble adding my tapo and unifi cameras to the generic camera integration so I wentold school camerea setup via yaml and it's working great so far. The caviat here is that we should expect a bit of a load on memory depending on how many cameras you have in your system. I guess there is no free lunch right? anyway, the fast load of the video stream worth the resources in my opnion.
I tried all the tutorials on the web and for some reason webrtc is not working with my hikvision DVR or NVR. The generic RTSP camera is working fine for all the channels, once I install webrtc, everything stops working and the streams ( both WEBRTC or generic camera) are stuck on loading and nothing happens. I have 2024.4.4 core, 2024.04.0 supervisor, 12.2 OS. Any Ideas?
Hi. Thank you for the walk through. However, I am not able to find the URLs for my DAHUA camera. Can anyone please help on that. Camera model is : DH-IPC-HDW3641TMP.
If your onvif camera can output RTSP streams, than yes. All you need to use webrtc is a working RTSP feed from camera. Google your model and "RTSP", find the RTSP url for your camera and try to follow the tutorial
Hello, I'm just getting back into this after my HA wiped out my system. The Web2RTC repository is no longer being supported. Is there another way of implementing the Generic webcam into HA? - thanks, your work is fantastic and really helpful!
@@SmartHomeJunkie indeed, the HACS WebRTC Camera (by AlexxIT) works also better for me. I tried your advised RTSPToWebRTC HA Addon also, but my CPU load (ESXi VM on industrial intel NUC) went from 22% to 48% continuously. With the HACS WebRTC (no HA addon, but a custom card: custom:webrtc-camera) it stays low at 22%, so i removed the HA addon RTSPToWebRTC again. WebRTC in not the fastest in my custom card. When I used the webrtc-camera on my Reolink E1 Zoom substream (like your CAM URL's), it automatically takes MSE as preferred protocol (is faster than WebRTC on the RTSPToWebRTC HA Addon), for my Big HikVision Camera sub stream, it takes RTC automatically as protocol. It seems the HACS WebRTC is more recent than RTSPToWebRTC. The WebRTC Hacs notes in its documentation: "Starting with version 3 the streaming server has been changed from RTSPtoWebRTC to go2rtc" go2rtc seems much faster as streaming server with less CPU resources. You also don't need the whole RTSPtoWebRTC webserver on port 8083. Just add the rtsp url in the custom card lovelace yaml settings.
@@bertdebondt Thanks for this. Is it also possible to use this card remotely? And can you exclude streams from webRTC to make sure they work remotely as well?
@@SmartHomeJunkie yes this card also works remotely. (I use the Cloudflare addon for remote tunnel connection). you can manually select the protocol mode: mode: webrtc,mse,mp4,mjpeg if you leave out the mode in yaml, it autoselects the protocol. For example I'm on a remote location (on windows PC) now and my HikVision switches from RTC to MSE. If I check the same camera on my Iphone 6S with the HA APP it autoselects MP4 and after a few seconds it selects RTC as protocol (since iphone's can't use MSE)
Thank you so much. Finally my camera works with a minimum of delay. I am very happy now. Please, how can i activate the audio of the camera, now? I use a Tapo C110 Thank you
Hi, at the very end (minute 5:49 of the video) , I get this error: "Failed to start WebRTC stream: RTSPtoWeb server failure: stream channel codec not ready, possible stream offline: Internal Server Error. " Can I do something to fix it?
Thank you so much for another great video. My Eufy Outdoor Cam Pro cameras don't have a still image URL, but just the RTSP one. What can I do to generate a snapshot from the last stream? Any help is welcome, thank you in advance.
Thanks. I did not test it, but maybe you can point to a "fake" snapshot that you store in the www folder of Home Assistant? Beware that www/snapshot.jpg should be called using /local/snapshot.jpg. Again, I didn't test it and the results may vary.
Hi Smart Home Junkie. Thanks for the video. Very well explained as asusal. I just updated HA to the newest version and WebRTC stopped working. I re-installed the add-on and the integration. When I now try to open the WebUI, it says, that I need to add a stream first - but the stream needs to be added on the WebUI. Any hints how I can bypass this? Thanks for your feedbackund Regards, Aleardo
Hi Aleardo, It's the first time that I hear from this issue. I will try to reproduce it myself. Not sure what's going on. Maybe rebooting the host (so not HA only) will fix this?
@@SmartHomeJunkie Restarting the Hub did not solve it. I de-installed the add-on, deleted the integration and rebootet the whole system. Then I installed all again and now all is fine again. Thanks!
Please help me fix the error "This entity does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more details" when adding a H.265 standard Yoosee brand camera to the home assistant. Thank you very much!
Another great video thank you. Is it possible to use Reolink Cameras via a Reolink NVR? RTSP and ONVIF are open from network settings on the NVR but can't seem to get any cameras to display in RTSPtoWeb.
I'm a dumb. I was driving myself crazy trying to add another camera after I had added one days before. I was missing the "This image looks good" box and just hitting submit. I know it's all on me, but so many other videos I watched just glossed over the add your camera part. Your thorough video showed me how I was being an idiot. Thank you for this!
Hi, Nice and very interesting, but as far as I know this protocol isn't particularly secure. Especially important for the people who use a VPN connection for its high security, because by using WebRTC there is a possibility of IP leaks! There are also ways to protect it, but I don't know if this add-on includes this protection!?
Thanks for an awesome tutorial! Got all working except the last step. Camera (stream) are showing fine in the RTSPtoWEB dashboard in all four protocols. But when added to HA dashboard it only shows a snapshot image and doesn't update :( Any idea where I messed up?
I've inherited a ptz poe hikvision ip camera, and an 8 port poe switch. I wired this up to my router and went to check the network online and... nothing. The device isn't there. I'm having trouble finding someone with the same issue as most videos just show the connection happening, but not how or how to troubleshoot if it doesn't connect. Any ideas on what I'm doing wrong. (I have no previous experience with ip cameras, so any advice is appreciated).
I tried to get this too work for a few days now but i cant get it to work. I dont have still image url so i leave this blank as seen on a HA page. Nothing shows up on webrtsp. My onvif and other stuff works fine. I cant figure out what is going wrong i get 6 video stream that is not loading if i press ALL
Another great video, quick question if I stop the webrtc add on, will that revert the cameras back to non webrtc protocol as I want external access whilst i look at stun server etc.
@@SmartHomeJunkie WAN connection would require public IP of camera. It would not be secure. Instead you can make VPN. VPN can be done by some service or you need at least one public IP address.
@@martinkormunda2264 I agree that VPN is secure. See my added NOTE in the description how to set it up. You don't need to open extra ports. It runs through Home Assistant.
@Smart Home Junkie and @Robin Gerritsen I read that it could be accomplished by using Go2RTC, but I couldn't get it to work outside my own network. It did work though via the Go2RTC module in Home Assistant (I connect to HASS via Nabu Casa)
If you have camera's installed, connected to a DVR, what do you do? Dou you integrate the DVR, or try to connect to the sub-stream of each individual camera?
Thanks for the guide, added my reolink doorbell camera, however there is no audio. Is there a way to fix that? I ran all 4 different version of the stream but they didn't have audio.
Should the stream for best quality for reolink be h265Preview_01_main instead of h264Preview_01_sub? Any possibility to create a future video on how to expose webrtc for those of us exposing HA using eg duckdns?
The main stream uses more bandwidth, but yes, it's higher quality. I added some suggestions to show the stream remotely in the description of the video.
This made my stream for my Reolink Doorbell flawless!! It used to be anywhere from 1-3 seconds behind real-time and is now spot on with real-time with NO lag. Thank you for the video!! I am having issues with one of my security camera streams. I have the correct RTSP address and port inserted (WebRTC actually pulled it in automatically), but I confirmed it is correct. However, I still can't preview the stream from within the WebRTC UI interface. Any thoughts??
I'm not sure. I have done issues with the latest firmware from Reolink connecting to RTSP. Someone told me that the password may not contain special characters since that version, but I didn't try it yet.
Maybe it is already solved but I had the same issue (I think). I found out that by default RTSP is turned of (also upnp). Via the Reolink PC app it is possible to turn it on and then evertyhing works like it should :)
Thanks for another good video. My brother asked me for help to get 2 cameras for outdoor use on his house. One requirement he have is no monthly payments (subscrition fees). He want to buy his hardware and thats it. I have strongly recommended Home Assistant and do the same thing you showed in the video. He wishes for is that the cameras runs on batteries and using WIFI with RTSP. But i cant find any cameras with those specs. What i have understood is that RTSP using more power and drain the battery pretty fast. I told my brother that, but he still want me to check if i can find any cameras. Do you know any cameras? I am going to talk to him again about this and i just realized that he has a Attic Space where he can pull shielded network cables (cat6 or cat6e) to the cameras. Hopefully he dont need to "upgrade" the cables for many many years.
Very late reply, but you are right - RTSP is very rarely supported on battery-powered cameras because of the power requirements. PoE cameras don't have this limitation
hello. i must be doing something wrong. i followed your video and after i added my camera and clicked "all" the 4 videos came up and HLS and MSE were the first to come up and HSLL and WEBRTC just gave me a spinning circle. i clicked away and came back to it and HLS, MSE, and HSLL all loaded and WEBRTC is still just a spinning circle
Hi Ed, I just watched this video. I am looking to install a PTZ TP-link tapo camera in my mother's house, she is old and frail and I want to monitor her. Is there a way, that you know of for adding a remote camera into my Home Assistant? I note you only talk about local cameras. Thanks very much!
Really good explanation as always, but unfortunately it doesn't work for me. I don't know what happens. I followed you instructions and the Generic Camera is running fine. When I install RTSPToWebRTS the problems start. In the dashboard I can add the camera manually, but I also can wait a little bit and she will be shown. So what do I see? For all of my cameras I see an icon (2 times 5 cameras from the Unifi Protect integration high and medium quality) and the generic camera I configured manually. None of these icons has a picture, just an icon. If I click any camera, the page for the camera opens up, as shown by you I got 4 streams. None of these streams load, all hang up in the loading symbol and no picture is shown. You can only see a black background with the loading symbol. That happens for all cameras. That's not all! If I open the generic camera entity, the stream fails to load! If I go onto the dashboard with all of my cameras those cameras with the same stream quality (my Unifi Protect is configured to serve the high and the medium quality stream, the low quality stream is turned off) will also fail to load the stream. Those with different stream quality will still be available. In RTSPToWebRTC no camera stream is shown, it doesn't matter which quality. Uninstalling the integration solves the problem. So I activated the debug function and it seems the integration does some strange things as I have a panic error in the log, the the memory address is invalid..... I hoped, that this system would show faster the stream. The delay of the stream for all cameras is only about 4-5 seconds, but the system needs about 20-30 seconds to get to that state. First the stream is shown, than I have a loading pause and after that the stream runs to fast, until it catches up with the 4-5 second delay.
Hi, Thank you for your videos, they have helped so much in the past, but for some reason I am getting an error "Unable to load valid image from still image URL (e.g. invalid host, URL or authentication failure)." do you have any ideas as to why?
Do you feel that your camera stream has delays? Then try this method to speed up the live stream of your security camera! Let me know in the comments if this worked for you as well!
Hey. Do you have any HIKVisonm cameras ? i did all steps and i cant see stream in RTSPtoWEB Dashboard (i see stream in VLS for example its mean url is correct) Thx for any help in advance
@@LoadingPodcast no, I don't. Sorry.
I tried this and it worked fine locally. However, I am unable to show the live feed on dashboard remotely. I already had a live feed using reolink integration which has been working fine. After installing this it doesnt work when accessing remotely. When I disable the webRTC the live stream on dashboard works. When I am at home wifi the streaming works brilliantly using when webRTC enabled. Any thoughts?
I do not really understand ... as I have my cameras installed under "MJPEG Camera" as well as "Generic Camera". I can find both entities in HA ... now that I cahve configured WebRTC ... do you choose still another entity as camera ? Is there an entity created by WebRTC ??
Like always great videos. Big thumps up. 👍 I recently noticed that the integration is no longer maintained and moved to a new development by same author. RTSPtoWebRTC is now go2rtc. Could you maybe do another revision of this video with the new addon and integration? 😊
After installing and configuring webrtc, all generic cameras stopped working and webrtc UI page is not loading any streams , not even the ones added manually
I was wondering if anyone managed to get Webrtc working with HA 2024.4 version
I really liked the way you explain showing on the screen where to click, what to type, and always say the reason. Much appreciated for the help.
Thanks for the compliment!
Totally agree, this helps a lot when the UI changes and HA tends to do
That went fast. But it’s a clear explanation. Once I installed my Reolink POE Doorbell I will try this for sure. Thanks again, Ed.
Great vid! Anyone know if this would work for the Eufy security cameras ?
Nice tutorial, thank you ! My 2 Reolink cameras where already installed and I just add to install the addon, and configure it. When in the 8083 page, if your camera doesn't appear, just wait for a couple of minutes.
Thank you so much for taking the time to walk us through the process. I'm happy to say that I was able to get my Eufy camera connected with HA because of this video. The only issue is that it seems unreliable. Basically, it works for a few minutes, then freezes. Might just be mine, so I intend to continue to mess with it in order to have it functioning the way it is intended.
As always, THE source to find the information needed - ¡Gracias! 🔴
Hello! Thanks for the tutorial. I guess that currently the WebRTC process is a bit different. I installed through hacs and it automatically also installed go2rtc. My question now is: is there a way to pause the streaming somehow? Thanks! I have Ring cameras and using addon ring-mqtt. In theory I have a switch to turn on and off but after the WebRTC Camera it doesn’t allow me to turn it off. It means that the camera is working all the time! Thank you in advance for anybody that can support!
Isn't it about time you dabble with Frigate and a USB Coral device? 😊
I really don't see a valid use case for Frigate (for me) at the moment. Might look into it later.
@@SmartHomeJunkie No idea what you are using as NVR, but AI detection is really good with frigate and as an NVR it is pretty good. Also since it has build in go2rtc, the web2rtc in this video is redundant.
EDIT: I'm running the same setup as you I think -- haOS in a KVM, and Wifi Doorbell, so if you need a working config, don't hesitate to let me know =)
@@ietsmetcomputers Thanks. I use Survaillance Station on my Synology NAS as NVR at the moment.
Ok I have noob question. I set up everything, works good, but now I want external access. I read there are two options: STUN server or exclude substream from WebRTC.
I don't know how to do that. Could someone describe me (step by step)?
Nice for the guide. But i noticed a problem with RTSP WEBRTC when the addon is added to HA it stops the ability to use the media tab in HA to stream cameras to GH displays. ive got about 5 cameras and all stopped showing as cameras
My HomeAssistantInstance is behind NGINX Proxy Manager and Cloudflare. How do this work with WebRTC?
I had this working once before but now when i redo it webrtc is 1000000% the slowest preview and basically doesnt work....mse is the fastest for me...anyone know why?
nice video, 1 thing i don't get. Is there a connection between webRTC and the generic camera? Because you tell to name them the same. But URL's are in both camera's en webRTC. Is this just tyo compare the speed of both or is there some kind of interaction between the 2 parts of software? Thank you in advance!
Hi, thank you for a perfect video, as usual. Unfortunately, this time I cannot get things working. My camera's are for sure not automatically found by the webRTC browser. When I enter the camera's manually, I only get four black pictures for the four different protocols. So no streams at all. Any idea what could be wrong?
Hi again, Thanks for your tips and suggestions. I have 11 cameras I will test this on, as a compliment to BlueIris. 😊
Let me know how it works for you!
Has anyone setup a reolink nvr using this method...in general it works but it only shows one camera feed from the nvr. I did succeed is setting up each camera separately but figured I'd try the nvr as well.
Is there a way to get it to use the HLS stream in home assistant - I have a browser that says rtsptoweb server failure: unable to start track......says remote doesnt support I assume RTC......but if I go directly to it and choose HLS it can play it
shame no H265 support - which a lot of the reolinks are coming with now. Anyone figured out a H265 solution for home assistant that displays fast ?
Once again , great tutorial! This really works a lot faster. Now i'm only trying to find a way to make the video stream cast faster to my google nest hub, when someone rings my reolink doorbell.
I'm struggling with the same problem, have you solved it? How to cast it?
Now frigate supports rstp re stream. I have to check how is doing
Cool, let me know!
@@SmartHomeJunkie I'd like to know to how it goes, I've done it and it's constantly freezing and lagging, I've also bought the google coral.
but I'm running HA in k8s
Unfortunately this doesn't speed up the camera feed in my setup 😪
I don't quite understand what the WebRTC plugin is good for, I can set up the last step without the plugin?
This repository is no longer maintained
Hello! Did you compared it to the fregate integration? Which one is better?
Thanks for yet another useful video. The amount of work you put into these videos is unbelievable. Much appreciated! Now on the subject: Is this solution also possible for Ring system doorbells?
No, it's not. Ring does not support RTSP.
Great tutorial, I just followed it and everything works perfectly, much faster videos in all my cameras. Thanks a lot
thank you for this tutorial. During the intro you mentioned communication with audio and video from peer-to-peer. I had hopes that you will show a demo with 2-way audio from the dashboard lovelace card to the camera. Does this work, too? And how about 2-way audio with a mobile device and the companion app?
I am waiting to have doorbell full integration into HA w/o using cloud or third part applications
No, that does not work yet.
The repository is no longer maintained. also for some reason the WebRTC was slower on for me very jerky?
Cool work, does it also with RTMP though?
Would this make sense if frigate is installed?
i feel like im missing something.... so webrtc just...pulls the traffic towards it now? why wouldnt the live view STILL go to the url provided?
Yep, that's the way it works. The traffic gets rerouted.
Wow, wat een verschil! Echt geweldig! Gebruik de camera's om een ijsvogelbroedsel in de tuin te volgen en de vertraging en 3 fps waren erg irrtant, dit is top!
Super!
What did you find was the main advantages of using Generic Camera over other camera integrations? Just curious as I use Synolgy and like the way it picks up the cameras, but I don't like the delay
I'm my experience, the generic camera works best, but it might be different for others.
The delayed cam feed on my displays has been a real frustration for me. Thank you. I've had to set up a 2nd Generic Camera as the Frigate integration doesn't like this but not an issue.
Great to hear!
My camera is integrated from the UniFi integration. I can see the image with Picture Entity but I tried adding WebRTC as you outline in your video. The UniFi protect app makes it easy to find the link BUT it is rtsps not rtsp Is there a way to make this work with a rtsps url? In the RTSPtoWEB browser I do not see the image, just a spinner. Thank you,
I found a fix for this. Update the url by changing rtsps to rtsp, remove the parameter at the end and change the port to 7747.
rtsps://192.168.4.1:7441/Oq2ASjzPQkUVqDsa?enableSrtp
rtsp://192.168.4.1:7447/Oq2ASjzPQkUVqDsa
Drop the second “s”
Change port to 7447
remove ?enableSrtp
hi, works with Xiaomi cameras ?
Maybe a dumb question but I recently bought a Reolink Outdoor POE camera and I noticed you provided the URL's to add in Home Assistant. I presume you need to first install them with the Reolink app to set a password? Or can you add them to Home Assistant like you did fresh out of the box without any install of Reolink apps?
You need to install the cameras first with app indeed.
@@SmartHomeJunkie just checked it myself, you can just login on the local ip and set the password. So no need to install the app or anything
It seems it doesn't work when remote access HA, Do you know how to fix this?
I'll look into that.
are you using the app or web browser works fine on the app and phone browser
Stokbrood else suggested to only use the HD stream in WebRTC and the low res stream without WebRTC. This way you can use it at home and remote.
@@chunkster29 none of them work when I remote access HA, they only work if i connect to home WiFi
@@SmartHomeJunkie How do you use the HD stream with WebRTC and the low res stream without WebRTC? I'm only seeing one option for each stream with my Reolink cameras.
This is amazing. After I got webrtc up and running it found all my reolink cameras already integrated in home assistant. All my cameras load so much faster now.
That’s awesome 🤩
Many thanks this has really improved the delay. Your videos are great, keep up the great work
.
Great to hear!
why install webrtc if you use generic camera and rtsp url directly inside Generic Camera device ? thanks
Because this is faster
Hi Ed, Noob question, sorry. Should this work with Reolink Argus PT 2K? I can't add that via the standard Reolink integration so hoped this would be an alternative as a generic camera, but at every attempt i get the following error @Unable to load valid image from still image URL (e.g. invalid host, URL or authentication failure). Review log for more info.
Well, it seems to me that the still url cannot be reached. You can fake this by pointing to a local image that you put in your www folder on your HA server. Be aware that you need to use /local for images that are stored in /www
@@SmartHomeJunkie Thanks for the quick response Ed but that puts me immediately out of my depth 🙂. Would any of your videos explain how to do this~?
@@gsmithdsl I have a couple of videos that explain how to store an image locally. I explain in this video how to store an image on your local server. How to SHOW YOUR CAMERA REMOTELY on Your Phone When The Doorbell Rings!
ruclips.net/video/6jkzy2Cv9Pk/видео.html
@@SmartHomeJunkie Thats great, thanks again, I'll give those a look when i get a moment.
Hi, another great one, thanks. I had trouble adding my tapo and unifi cameras to the generic camera integration so I wentold school camerea setup via yaml and it's working great so far. The caviat here is that we should expect a bit of a load on memory depending on how many cameras you have in your system. I guess there is no free lunch right? anyway, the fast load of the video stream worth the resources in my opnion.
Thanks!
Thanks heaps, I only posted for a solution like this yesterday
Hope this helps!
I tried all the tutorials on the web and for some reason webrtc is not working with my hikvision DVR or NVR. The generic RTSP camera is working fine for all the channels, once I install webrtc, everything stops working and the streams ( both WEBRTC or generic camera) are stuck on loading and nothing happens. I have 2024.4.4 core, 2024.04.0 supervisor, 12.2 OS. Any Ideas?
same problem. Did you get this work?
@@liorhen2769 no, still not working
Same Problem, any solutions?
@@liorhen2769 I haven't tried
Hi. Thank you for the walk through. However, I am not able to find the URLs for my DAHUA camera. Can anyone please help on that. Camera model is : DH-IPC-HDW3641TMP.
Onvif cameras is campatible WEBRTC ?
If your onvif camera can output RTSP streams, than yes. All you need to use webrtc is a working RTSP feed from camera. Google your model and "RTSP", find the RTSP url for your camera and try to follow the tutorial
Hello, I'm just getting back into this after my HA wiped out my system. The Web2RTC repository is no longer being supported. Is there another way of implementing the Generic webcam into HA? - thanks, your work is fantastic and really helpful!
i find the webrtc card works better
Thanks!
@@SmartHomeJunkie indeed, the HACS WebRTC Camera (by AlexxIT) works also better for me.
I tried your advised RTSPToWebRTC HA Addon also, but my CPU load (ESXi VM on industrial intel NUC) went from 22% to 48% continuously.
With the HACS WebRTC (no HA addon, but a custom card: custom:webrtc-camera) it stays low at 22%, so i removed the HA addon RTSPToWebRTC again.
WebRTC in not the fastest in my custom card. When I used the webrtc-camera on my Reolink E1 Zoom substream (like your CAM URL's), it automatically takes MSE as preferred protocol (is faster than WebRTC on the RTSPToWebRTC HA Addon), for my Big HikVision Camera sub stream, it takes RTC automatically as protocol.
It seems the HACS WebRTC is more recent than RTSPToWebRTC.
The WebRTC Hacs notes in its documentation: "Starting with version 3 the streaming server has been changed from RTSPtoWebRTC to go2rtc"
go2rtc seems much faster as streaming server with less CPU resources.
You also don't need the whole RTSPtoWebRTC webserver on port 8083.
Just add the rtsp url in the custom card lovelace yaml settings.
@@bertdebondt Thanks for this. Is it also possible to use this card remotely? And can you exclude streams from webRTC to make sure they work remotely as well?
@@SmartHomeJunkie yes this card also works remotely. (I use the Cloudflare addon for remote tunnel connection).
you can manually select the protocol mode: mode: webrtc,mse,mp4,mjpeg
if you leave out the mode in yaml, it autoselects the protocol.
For example I'm on a remote location (on windows PC) now and my HikVision switches from RTC to MSE.
If I check the same camera on my Iphone 6S with the HA APP it autoselects MP4 and after a few seconds it selects RTC as protocol (since iphone's can't use MSE)
@@bertdebondt That sounds interesting. The card info states that it doesn't work remotely, so I was wondering how. I will look into it closer. Thanks!
Thank you so much. Finally my camera works with a minimum of delay. I am very happy now.
Please, how can i activate the audio of the camera, now?
I use a Tapo C110
Thank you
Hi, at the very end (minute 5:49 of the video) , I get this error:
"Failed to start WebRTC stream: RTSPtoWeb server failure: stream channel codec not ready, possible stream offline: Internal Server Error. "
Can I do something to fix it?
Thank you so much for another great video. My Eufy Outdoor Cam Pro cameras don't have a still image URL, but just the RTSP one. What can I do to generate a snapshot from the last stream? Any help is welcome, thank you in advance.
Thanks. I did not test it, but maybe you can point to a "fake" snapshot that you store in the www folder of Home Assistant? Beware that www/snapshot.jpg should be called using /local/snapshot.jpg. Again, I didn't test it and the results may vary.
@@SmartHomeJunkie I will give it a try. Thank you.
@@empierrelouis Let me know if it worked for you!
Hi Smart Home Junkie. Thanks for the video. Very well explained as asusal. I just updated HA to the newest version and WebRTC stopped working. I re-installed the add-on and the integration. When I now try to open the WebUI, it says, that I need to add a stream first - but the stream needs to be added on the WebUI. Any hints how I can bypass this? Thanks for your feedbackund Regards, Aleardo
Hi Aleardo,
It's the first time that I hear from this issue. I will try to reproduce it myself. Not sure what's going on. Maybe rebooting the host (so not HA only) will fix this?
@@SmartHomeJunkie Restarting the Hub did not solve it. I de-installed the add-on, deleted the integration and rebootet the whole system. Then I installed all again and now all is fine again. Thanks!
@@AleardoChiabotti That's great to hear!!!
Please help me fix the error "This entity does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more details" when adding a H.265 standard Yoosee brand camera to the home assistant. Thank you very much!
Great video, worked superbly for my Annke cameras. Just a note I need to set H.264 compression as on H.265 it was not working/stuttering.
Worked perfectly for my two hikvision cameras. Thanks!
Hello sir, i just installed the RTSPtoWebRTC but when i press start nothing happens at all. it get stuck there. Any suggestions?
Another great video thank you. Is it possible to use Reolink Cameras via a Reolink NVR? RTSP and ONVIF are open from network settings on the NVR but can't seem to get any cameras to display in RTSPtoWeb.
Does this method work with Kasa KC410S? Thanks! great content
I'm a dumb. I was driving myself crazy trying to add another camera after I had added one days before. I was missing the "This image looks good" box and just hitting submit. I know it's all on me, but so many other videos I watched just glossed over the add your camera part. Your thorough video showed me how I was being an idiot. Thank you for this!
Would be great if you could describe the whole flow of using WebRTC with Frigate NVR and same Reolink doorbell you've got there.
Hi,
Nice and very interesting, but as far as I know this protocol isn't particularly secure. Especially important for the people who use a VPN connection for its high security, because by using WebRTC there is a possibility of IP leaks!
There are also ways to protect it, but I don't know if this add-on includes this protection!?
Thanks for an awesome tutorial!
Got all working except the last step. Camera (stream) are showing fine in the RTSPtoWEB dashboard in all four protocols. But when added to HA dashboard it only shows a snapshot image and doesn't update :( Any idea where I messed up?
Does this also work for Reolink battery based cameras like the Argus 2E and Argus 3 Pro?
i have no audio
are you (or anyone reading) aware of the differences between the allenporter version of WebRTC demonstrated here and the AlexxIT version?
I've inherited a ptz poe hikvision ip camera, and an 8 port poe switch. I wired this up to my router and went to check the network online and... nothing. The device isn't there. I'm having trouble finding someone with the same issue as most videos just show the connection happening, but not how or how to troubleshoot if it doesn't connect. Any ideas on what I'm doing wrong. (I have no previous experience with ip cameras, so any advice is appreciated).
Hi, Nice vídeo. Do you know How show the camera in an Alexa integrated tv?
I tried to get this too work for a few days now but i cant get it to work.
I dont have still image url so i leave this blank as seen on a HA page.
Nothing shows up on webrtsp.
My onvif and other stuff works fine.
I cant figure out what is going wrong i get 6 video stream that is not loading if i press ALL
Another great video, quick question if I stop the webrtc add on, will that revert the cameras back to non webrtc protocol as I want external access whilst i look at stun server etc.
Yes it will!
@@SmartHomeJunkie great my camera does a SD and HD stream, I have seperated them so webrtc for HD and none for SD, so two views home and away 😁
@@sbonera This is a great idea!
Does anyone have the address for the still and live streams for a Hikvision DS-HD1 Doorbell camera, please?
It would have been nice to know in advance that webRTC only works within your LAN and not over WAN
That is correct. I use this to display my camera on my tablet on the wall. I'll investigate his to get it to work over a WAN connection.
@@SmartHomeJunkie WAN connection would require public IP of camera. It would not be secure. Instead you can make VPN. VPN can be done by some service or you need at least one public IP address.
@@martinkormunda2264 I agree that VPN is secure. See my added NOTE in the description how to set it up. You don't need to open extra ports. It runs through Home Assistant.
@Smart Home Junkie and @Robin Gerritsen
I read that it could be accomplished by using Go2RTC, but I couldn't get it to work outside my own network. It did work though via the Go2RTC module in Home Assistant (I connect to HASS via Nabu Casa)
@@robertprakke You can set up a stun server to make it work.
Great video! Does this work for the nest cams? (And nest hello video doorbell). I have the nest integration.
If you have camera's installed, connected to a DVR, what do you do? Dou you integrate the DVR, or try to connect to the sub-stream of each individual camera?
Thanks for the guide, added my reolink doorbell camera, however there is no audio. Is there a way to fix that? I ran all 4 different version of the stream but they didn't have audio.
Hi. Can you tell me how to install rtsptowebrtc on docker? I have home assistant installed on portainer
Bedankt! Zonder je tutorial was ik er niet uitgekomen denk ik! Je hebt er een abonnee bij :D
Hello, will this work with Blink doorbell and cameras ? Thx
thank you so much, now my reolink works without a delay. but i get no stream when i out of my lan with my iphone and the ha app.
This is a lifesaver. Was wondering why everything was so laggy!
Great stuff, but do you know how we can record and save videos from Home Assistant using WebRTC or Generic Camera? Or any method really.
Can you make a tutorial with the Eufy doorbell/homebase pls?
Mag ook in het nederlands :D
I couldn't get Eufi to work with Home Assistant.
This is awesome works like a charm! I also tried setting up a home security system using Ant media server (also really easy)
👍❤
do you plan to add another tutorial for docker container version of HA?
Hi! Thanks for the video. Does this work work for the Nest Hub Cameras? Thank you
can't find the url's for stream and pic
Should the stream for best quality for reolink be h265Preview_01_main instead of h264Preview_01_sub? Any possibility to create a future video on how to expose webrtc for those of us exposing HA using eg duckdns?
The main stream uses more bandwidth, but yes, it's higher quality. I added some suggestions to show the stream remotely in the description of the video.
👍👍👍
This made my stream for my Reolink Doorbell flawless!! It used to be anywhere from 1-3 seconds behind real-time and is now spot on with real-time with NO lag. Thank you for the video!!
I am having issues with one of my security camera streams. I have the correct RTSP address and port inserted (WebRTC actually pulled it in automatically), but I confirmed it is correct. However, I still can't preview the stream from within the WebRTC UI interface. Any thoughts??
I'm not sure. I have done issues with the latest firmware from Reolink connecting to RTSP. Someone told me that the password may not contain special characters since that version, but I didn't try it yet.
@@PersonXes I experimented with go2rtc and experienced lagging issues with my Home Assistant server. I didn't experience that with webrtc.
Maybe it is already solved but I had the same issue (I think). I found out that by default RTSP is turned of (also upnp). Via the Reolink PC app it is possible to turn it on and then evertyhing works like it should :)
@@Eindhoventube Indeed.
Thanks for another good video. My brother asked me for help to get 2 cameras for outdoor use on his house. One requirement he have is no monthly payments (subscrition fees). He want to buy his hardware and thats it. I have strongly recommended Home Assistant and do the same thing you showed in the video.
He wishes for is that the cameras runs on batteries and using WIFI with RTSP. But i cant find any cameras with those specs.
What i have understood is that RTSP using more power and drain the battery pretty fast. I told my brother that, but he still want me to check if i can find any cameras.
Do you know any cameras?
I am going to talk to him again about this and i just realized that he has a Attic Space where he can pull shielded network cables (cat6 or cat6e) to the cameras. Hopefully he dont need to "upgrade" the cables for many many years.
Very late reply, but you are right - RTSP is very rarely supported on battery-powered cameras because of the power requirements. PoE cameras don't have this limitation
Fantastic tutorial, thanks for sharing
hello. i must be doing something wrong. i followed your video and after i added my camera and clicked "all" the 4 videos came up and HLS and MSE were the first to come up and HSLL and WEBRTC just gave me a spinning circle. i clicked away and came back to it and HLS, MSE, and HSLL all loaded and WEBRTC is still just a spinning circle
I think your camera should be using H264, if it is H265 it won't work.
Hi Ed, I just watched this video. I am looking to install a PTZ TP-link tapo camera in my mother's house, she is old and frail and I want to monitor her. Is there a way, that you know of for adding a remote camera into my Home Assistant? I note you only talk about local cameras. Thanks very much!
Try remote access to your local home assistant. There are many ways to do that.
Really good explanation as always, but unfortunately it doesn't work for me. I don't know what happens.
I followed you instructions and the Generic Camera is running fine.
When I install RTSPToWebRTS the problems start.
In the dashboard I can add the camera manually, but I also can wait a little bit and she will be shown. So what do I see?
For all of my cameras I see an icon (2 times 5 cameras from the Unifi Protect integration high and medium quality) and the generic camera I configured manually. None of these icons has a picture, just an icon.
If I click any camera, the page for the camera opens up, as shown by you I got 4 streams. None of these streams load, all hang up in the loading symbol and no picture is shown. You can only see a black background with the loading symbol. That happens for all cameras.
That's not all! If I open the generic camera entity, the stream fails to load! If I go onto the dashboard with all of my cameras those cameras with the same stream quality (my Unifi Protect is configured to serve the high and the medium quality stream, the low quality stream is turned off) will also fail to load the stream. Those with different stream quality will still be available. In RTSPToWebRTC no camera stream is shown, it doesn't matter which quality.
Uninstalling the integration solves the problem.
So I activated the debug function and it seems the integration does some strange things as I have a panic error in the log, the the memory address is invalid.....
I hoped, that this system would show faster the stream. The delay of the stream for all cameras is only about 4-5 seconds, but the system needs about 20-30 seconds to get to that state. First the stream is shown, than I have a loading pause and after that the stream runs to fast, until it catches up with the 4-5 second delay.
Not sure why this works different in your set up 🤷🏼
Hi, Thank you for your videos, they have helped so much in the past, but for some reason I am getting an error "Unable to load valid image from still image URL (e.g. invalid host, URL or authentication failure)." do you have any ideas as to why?
Probably because the url is wrong or the usernane/password combination is wrong for the still image.