Realtime camera streaming without any delay - WebRTC

@stefanlive84 I just got a couple of these from Temu but can’t work out how to access the Rtsp stream. Have you got yours working?

Nice! How did you connect to the camera though? I’m struggling to find the correct URL for this model

Is there a way to stream a rtsp camera to a.google nest display via a home assistant automation without delay and unmuted?

I have tried camera.play_stream but it adds a 40 seconds delay. Dash_cast works nicely without delay but it’s muted by default and requires manual intervention to unmute.

I have scrypted configured and i have all the camera entities showing up in google home, however i can only get them to play using a voice command like “show nursery crib”.

I wrote my own Home Assistant card for MediaMTX WebRTC. Happy to share, but its client side only; the auth is a little tricky to configure… the client basically sends the HA access token along with the webrtc handshake, and my nginx reverse proxy validates the token against the HA api prior to forwarding on the request.

That said, my card is, in my opinion, superior to the other video cards out there, particularly for a wall panel. Tap the feed once and you go full screen. Tap again and it closes. It also has a mode to live stream without keeping the tablet screen active, and has support for events, like going full screen automatically when a person is at your front door.

Hi there,
Im using this card and really ilke it a lot.
Nevertheless, I look for a way to pause it by default, as soon as it is displayed.
My usual issue is that I open my homeassistant on my smartphone to open my garage door while Im in my car, listening music in Bluetooth from my smartphone. Opening Homeassistant just pause my music because the video + audio is starting from the card

Anyone knows how to solve this ?

Thanks
Guillaume

Hi everyone,

I’m trying to use go2rtc in Home Assistant to restream my rtsp camera.

Environment:

  • go2rtc 1.9.11 (running as HA add-on)
  • My config:

streams:
TESTCAM: rtsp://admin:[email protected]:554/stream1

What happens:

  • go2rtc starts fine, ports are listening:

    • :1984 (api/web)
    • :8554 (rtsp)
    • :8555 (webrtc)
  • The stream “TESTCAM” shows up in the UI, but “Online” stays 0.

  • When I click the stream to view it (MSE/WebRTC), I only get a black screen.

  • Logs keep repeating this warning:

undefined error=read tcp 192.168.50.171:34210->192.168.50.123:554: i/o timeout url=rtsp://admin:[email protected]:554/stream1 caller=github.com/AlexxIT/go2rtc/internal/streams/producer.go:170

So it looks like go2rtc connects to the camera IP/port 554 but doesn’t receive any video data.

Additional info:

  • The vendor documentation says:
    Main stream: rtsp://username:[email protected]:554/stream0
    Sub stream: rtsp://username:[email protected]:554/stream1
    Username is “admin” (case sensitive)
    Password is “123456”

  • I also tried adding this RTSP URL directly in Home Assistant’s Generic Camera and saw a video so url is OK.

What should I do?

Thanks a lot for any advice!