Realtime camera streaming without any delay - WebRTC

@chsims1 have you seen DIY Smart Doorbell with Android notifications

I use this card for sound and a seperate WebRTC card for video all seems to work well.

1 Like

Supported audio codecs are listed on github

So, presumably the mic handled by ALSA is producing a wav, and I need to convert to aac??

@Mark53 Thanks, Iā€™ll look there if I canā€™t get a single stream working :wink:

No, WebRTC doesnā€™t support AAC.

Got an error,
type provided video/mp4 codecs avc1.00000 is unsupported.

Can I do smth on my side to make it work?

AVC1 itā€™s H.264. Should supported in every normal browser.

@AlexxIT you know what might be the issue in my case?

Maybe Lovelace configured in YAML file in your case

I donā€™t know what happened, after a couple of HA restarts when I was working on a dashboard, suddenly the WebRTC card started to appear in the selector. Anyway, sorry for bothering you.

You have to refresh your HA frontend and clear cache, just like how you have to with HACS when you install a new frontend plugin. Doing this on multiple computers after I installed the integration solved it for me. I also had to do this on an Android tablet to make the configured card show up, even after I added it from another computer.

1 Like

Hmm the speed and sound of this addon is amazing, awesome work !!
externally i canā€™t get it to work though, added UDP 50000-50255 in WebRTC addon and in router to my HA (it wont let me do more than 255 ports though)
iā€™m running Home Assistant in container though , does the container need to expose those ports as well ?
-p 50000 ?

Itā€™s better to use network=host for Hass container

1 Like

is it possible to set aspect ratio somewhere?
my images are stretched when using sub stream.

O wait , I have it setup as host

Or does the camera need those ports openedā€¦?

Hi.
I just tried it with a Escam G02 and 3 Hiseeu HB612 Bullet, all are working.
I noticed a huge increase in cpu usage on RPI 4B (6% to more than 20%), but cameras keep on disconnect and reconnect so probably itā€™s because of that.
I will check again tonight at home when connected to LAN.

Can you record the WebRTC stream ?

You can record RTSP stream with default Hass components

sorry for my english, iā€™m traying to setup a tapo c200 rstp stream, but i have this problem. I cannot open the rstp stream with vlc or nothing else. With the onvif integration i dont have any problems but its super delayed and unusable, any tips?

image

Are you sure youā€™ve got the right URL?

Try: rtsp://IP Address/stream1