go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Reolink Video Doorbell - stream won't close after 2 way audio

Open cooltings opened this issue 1 year ago • 3 comments

Hi, I am using the frigate hass card with 2 way audio which works great with the doorbell. The only issue is that after finishing 2 way talk the stream doesn't seem to close and the blue status ring on the doorbell stays blue indicating it still receiving audio. Screenshot 2024-10-02 at 22 59 44 Here is my config in case it has something to do with that:

api:
  ffmpeg:
    bin: /usr/local/bin/ffmpeg
  origin: '*'
ffmpeg:
  rtsp: -fflags nobuffer -flags low_delay -stimeout 5000000 -user_agent go2rtc/ffmpeg
    -rtsp_transport tcp -i {input}
hass:
  config: /config
log:
  format: text
rtsp:
  default_query: mp4
streams:
  reolink:
  - ffmpeg:http://192.168.0.33/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=smartcam#video=copy#audio=opus
  - rtsp://[email protected]:554/h264Preview_01_main
  reolink_rec:
  - rtsp://[email protected]:554/h264Preview_01_main#backchannel=0
  - ffmpeg:reolink_rec#audio=pcma
webrtc:
  candidates:
  - 192.168.0.219:8555
  - stun:8555
  listen: :8555

cooltings avatar Oct 02 '24 22:10 cooltings

Just to add more information, in my setup, with go2rtc version 1.7.1 it seems to be working fine, but with version 1.9 and up it does not.

danluckner avatar Oct 08 '24 17:10 danluckner

Can you confirm that after 2-way audio is closed, that client isn't still an active consumer? If you list out the stream consumers, you should be able to see if there's anything still connected to your backchannel stream. If nothing is connected but the streams remain, that would indicate an issue. I am assuming though, that something is still connected as a consumer even though you believe it's closed.

esand avatar Oct 11 '24 23:10 esand

@danluckner Since you're using Reolink with an audio stream, see #1254 for the fix I used for a similar problem.

dagleaves avatar Oct 14 '24 18:10 dagleaves