AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
4.94k stars 397 forks source link

WebRTC Camera Audio Home Assistant #1393

Open tovdave opened 1 week ago

tovdave commented 1 week ago

Hello,

I'm running HA on a Linux VM and unfortunately I have the following problem. I add a camera (Reolink E1 Zoom) via an integration, whether Reolink, generic camera or custom card, the image and sound of the cameras work, only the delay is about 10-15 seconds. As soon as I install go2rtc under Addons and set up the RTSPtoWeb integration, the delay is completely gone but so is the sound. None of the cameras still transmit sound, but in go2rtc's WebUI, image and sound no longer work in HA. I would be very happy about your help.

streams:
  camera.192_168_7_64:
    - rtsp://Ad3btfdyym6ExHq@192.168.7.64/live0
    - ffmpeg:camera.192_168_7_64#audio=opus

LG David

AlexxIT commented 1 week ago

I'm not sure if RTSPtoWeb will use your settings from go2rtc config. It's better to use WebRTC integration to know for sure.

tovdave commented 1 week ago

Thx for your response This means the sound works but I have a 10 second delay compared to the live image. Is there a way to reduce this?

AlexxIT commented 1 week ago

It depends on the technology on which WebRTC integration shows the stream. In most cases the delay is less than 1 second.

tovdave commented 1 week ago

Is it possible to change the technology to test several?

AlexxIT commented 1 week ago

Have you read the documentation? https://github.com/AlexxIT/go2rtc?tab=readme-ov-file#go2rtc-home-assistant-integration

tovdave commented 1 week ago

Yes, I did, but I don't think I understood it. Am I correct that I can only change the format in a custom card in HA?

AlexxIT commented 1 week ago

Most likely you've misconfigured something. Maybe you are not using go2rtc and/or WebRTC at all. You need to examine the documentation carefully and figure it out.

tovdave commented 1 week ago

okay Thank You