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
3.76k stars 304 forks source link

Sound problem. The sound is interrupted. #1115

Open TokarevSergey opened 1 month ago

TokarevSergey commented 1 month ago

Sound problem.

  1. 3 seconds the sound is quiet;
  2. 1 second interruption;
  3. 1 second burst of noise;
  4. The cycle repeats until the FRIGATE integration is rebooted. The problem occurs when there are multiple inputs and outputs to the FRIGATE card or WEB RTC Camera card. Sound recording in normal mode and with this problem in videos is normal without interruptions. A speaker-shaped indicator on a browser tab appears and disappears. If you restart the device, the problem does not disappear. If you restart HOMEASSISTANT the problem does not disappear. If you restart the FRIGATE integration everything becomes normal. Device HIKVISION KV6113 doorbell. Video is connected via RTSP, sound via API is recorded on FRIGATE. Tell me who has this and how to deal with it. Thank you.
AlexxIT commented 1 month ago

From this description, it's hard to make any guesses.

TokarevSergey commented 1 month ago

По этому описанию трудно сделать какие-либо предположения.

Tell me how to set this up.

Camera in FRIGATE go2rtc: streams: DoorBell:

If I do this on a WebRTC camera, two-way audio won't work at all. type: custom:webrtc-camera streams:

And if I do this, the sound of the speaker becomes quieter and the sound is interrupted, the speaker fades out and appears. type: custom:webrtc-camera streams:

This happens if you log in to your card several times, and you get the feeling that this is happening because the previous session was not closed. Also, if you reload the frigate configuration, everything becomes normal until you go into the card account again a few times. Help me figure it out so that everything works, thank you.