I think I know your issue. You’re testing from a picture glance card in live view?
#5 and #6 won’t work correctly if you don’t have the RTSPtoWebRTC installed as that will allow you to use existing glance cards and such with webrtc. Without that, you’re using HLS and you’re trying to push OPUS through it which won’t work.
You’ve kind of done a full circle here.
If you want to use the in-built cards, you’ll need RTSPtoWebRTC. If you use that package, your nest audio won’t work because it would need to be transcoded but there isn’t a way to reference that camera in go2rtc.yaml in order to do that.
If you don’t want to use the inbuilt cards, you can use iframes (like i do) for video but that will require a more complicated nginx setup to get the feeds into the iframe cards.
I think any way you do this, you’re going to lose audio from one source or you’re not going to be able to use inbuilt cards. You may want to wait for this to mature a bit.
That makes total sense @calisro, thanks for all the help. I use the panel_custom integration but might look into iframes as well. I have nginx set up for my remote access, so might be able to make it work. Quick question, with iframes, are you able to display multiple cameras together in one panel or one per panel?
I think with regards to go2rtc, I agree with you that my best bet will be to wait for @AlexxIT to incorporate it into the custom component, at which point I’ll be able to truly pick and choose the cameras I use it for.
I am still trying to sort this issue out with two of my amcrest cameras. The native resolution is 2560X1440 and in the default card they display as 16:9, on Frigate they display as 16:9, in WebRTC card they display as 4:3
@AlexxIT Hi Alexey, your add-on go2rtc is providing lag free and immediate starting video streams. An unbelievable improvement to what it was before with the integrated stream capabilities.
Thank you so much!!
That’s amazing, just tested it after adding the camera entity_id to the go2rtc.yaml as per the updated instructions and indeed it works! I must say, the speed with which this project is maturing is truly astounding. Keep up the great work @AlexxIT!
I actually had also just gotten the iframes to work on the local network, but not yet remotely as I’m having trouble getting the nginx settings correctly. @calisro, I was just about to ask you for some help in the dedicated go2rtc thread, so I may do that as it looks like the conversation is changing to there. I’ll post there shortly.
Sure thing. I use a picture-elements card, as I also include the PTZ controls for my Foscam. Here’s my card setup. Don’t forget to define a custom location in your nginx setup if you want to use this remotely, and add the custom nginx settings as described by @calisrohere.
Also, the card below assumes you’ve setup browser-mod already.
I have webrtc setup on my supervisor Home assistant setup. And I am using a Cloudflare tunnel (aka Argo tunnel) to remote access the HA instance.
I was wondering if anyone else is having issue on the iOS mobile app this streaming Webrtc when connected to mobile LTE. I have T-Mobile so I know their network is behind a CGNat.
When I connect to my home wifi network I am able to effectively see all of my cameras, through my remote domain.
It is only when I use LTE, do I see these errors in webrtc home assistant logging.
Does anyone have any other tips as to troubleshooting this? Wireshark possibly?
I’ve been trying to read up on NAT documentation, but I cant effectively troubleshoot what is going wrong when I try to remotely stream through a LTE connection.
I installed a docker image of go2rtc, then added RTSPtoWebRTC to Home Assistant.
The nest camera was automatically changed to WebRTC on my RTSPtoWeb card without any further changes.
I am getting a handful of dns request (coming from my HA IP) for stun.l.google.com whenever I go to the stream in HA. I can see this url has been mentioned a few times but I didn’t really get what it is for.
This is just on my local network so I don’t understand why it is necessary to connect to the internet for this purpose? : )
I am connecting to a Wyze Cam v3 with rtsp enabled by wz_mini_hacks using a very basic config like this
Yes I have read the guides. I can understand that for streaming from HA to somewhere external the STUN setup or port forwarding is needed. But I am only streaming from HA (or rather the camera) 5 feet away to my laptop and everything is on the same local network. Is it also required in that situation?
The component does not know if you are in your network or not. That is why the STUN server is used. Your video data doesn’t go through Google’s servers. It doesn’t matter if you are on a local network or not. It is only a request for a your public IP address and opening a UDP hole.
You can set your STUN settings (empty I guess) for custom card.