2-way Audio w/ Reolink PoE Doorbell

This has been driving me crazy. So far I have not been able to get a camera stream to display properly. I am getting a message that says “No frames have been received, check error logs”.

ERROR : reolink: Unable to read frames from ffmpeg process.

I was looking at this YouTube clip and based my config on it. https://youtu.be/upXyBVMR4RM?si=3ffDPE7giv6WHaT1

Can someone post their working config file? If anyone knows of another YouTube clip that may help, please let me know.

Tried that and audio works fine, slight delay, but can’t get any mic button to show up?

Copy/pasting my comment from the GitHub issue here for visibility:

Hi All, using the latest version (1.9.2) of go2rtc, I have managed to use the 2 way talk functionality in QuantumEntangledAndy/neolink with the exec source in go2rtc. Instead of approx 3 seconds, my 2 way audio delay is close to the reolink app now.

Here is the script I’m using (neolink_talk.sh):

#!/usr/bin/env bash

ffmpeg -fflags nobuffer -f alaw -ar 8000 -i - -f wav - | ./neolink talk Doorbell -c config.toml --volume=1.0 -m -i "fdsrc fd=0"

go2rtc.yaml:

streams:
  doorbell_sub:
  - ffmpeg:http://doorbell_ip/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=admin&password=PASS#video=copy#audio=opus
  - exec:/config/neolink/neolink_talk.sh#backchannel=1

I’m using it now with frigate, but that involves installing gstreamer, etc into the docker container, as well as using the latest go2rtc instead of the included v1.8.4. An easier way to test is using Alex’s WebRTC card/integration and setting media: video,audio,microphone.

The ffmpeg pipe into neolink is faster than using fdsrc fd=0 ! audio/x-alaw,rate=8000,channels=1 in the neolink command from my testing. I’m sure there is a gstreamer pipeline option which will make it just as fast, but I don’t know what it is. Please tell me everything wrong with the command above and help make it better :slight_smile:

2 Likes

Warning to anyone reading this thread now: I have attempted the firmware rollback twice now, and it bricked both cameras. New cameras might not be compatible.

I figured this might be the case. I just bought a white doorbell and noticed the hardware id and firmware it has is just slightly different from what I’ve been seeing. I am also still running into issue with using the Mic through the Frigate card.

Hi,

Please note that this is the first time for me posting on the HA community page and the second time on a Github like site. Excuse me if I’m not aware of any rules.

I just bought a Reolink doorbell. (PoE White version) with the latest firmware.
At first it did’nt work, however I did read your comments and checked if other may have the same issues.

I’ve found the following github thread: https://github.com/koush/scrypted/discussions/1115 and got it working again with the firmware posted there and the following code:

Firmware PoE Only!
Black
https://support-d.reolink.com/attachments/token/u6B3AlhKl9rc1S2Y141mNP5f7/?name=DB_566128M5MP_P.3308_2407041184.Reolink-Video-Doorbell-PoE.OV05A10.5MP.REOLINK.pak

White
https://support-d.reolink.com/attachments/token/yrcqfKLxZknYuMi9I5T37DIzH/?name=DB_566128M5MP_P_W.3308_2407041199.Reolink-Video-Doorbell-PoE-W.OV05A10.5MP.REOLINK.pak

Go2RTC config

streams:
  camera.reolink_doorbell:
    - "ffmpeg:https://192.168.0.0/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=password#video=copy#audio=copy#audio=opus"
    - rtsp://admin:[email protected]:554/h264Preview_01_sub

Custom card

type: custom:webrtc-camera
streams:
  - url: camera.reolink_doorbell
    mode: webrtc
    media: video,audio,microphone

Please note as state above, when using the custom card, the mic is always on when the card is presented and auto reply messages over REST commands does not work with this FW, but using the HA intergration it still does.

Hope this can help any of you, currently having issues with the two way audio and latest fw. I’m sure this will also be of help for you that are using Frigate.

2 Likes

https://support-d.reolink.com/attachments/token/BWuMT3WnhbCUWlwmbGyBLC7cw/?name=Reolink-Video-Doorbell-WiFi.3308_2405271823.DB_566128M5MP_W.paks

Here’s a link support sent me for my black wifi v2 model that got 2 way audio working in Frigate if anyone wants it

Reolink released new firmware publicly with the two way audio and some other fixes

v3.0.0.3308_2407315183 fixed auto reply messages over REST commands for me.

3 Likes

Could you paste a working frigate and hA card config please?
I keep seeing people mix between onvif HTTP, flv and rtsp

Thanks in advance

Only Onvif/RTSP support two way audio in go2rtc.

ONVIF is the standard and RTSP is the protocol. Http/FLV are the same stream and doesn’t support two way audio in go2rtc.

When you see other using the flv stream they also have the RTSP sub stream for just the mic.

Frigate docs mentions this

1 Like

This is the config that works for me
Frigate config:

cameras:
  front_door_camera:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/front_door_camera?video=copy&audio=aac
          input_args: preset-rtsp-restream-low-latency
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/front_door_camera_sub?video=copy&audio=aac
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
            - audio

Go2RTC config:

go2rtc:
  streams:
    front_door_camera:
      - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.86.11:554/Preview_01_main#backchannel=0
      - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.86.11:554/Preview_01_sub
      - ffmpeg:front_door_camera#audio=opus#hardware
    front_door_camera_sub:
      - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.86.11:554/Preview_01_sub
      - ffmpeg:front_door_camera_sub#audio=opus#hardware
  webrtc:
    candidates:
         - 192.168.86.32:8555
         - stun:8555

Frigate card:


    type: custom:frigate-card
    cameras:
      - camera_entity: camera.front_door_camera
        live_provider: go2rtc
        go2rtc:
          modes:
            - webrtc
          stream: front_door_camera
    menu:
      buttons:
        microphone:
          enabled: true
          type: toggle

1 Like

Hi,

Are you experiencing any delay?

From my computer and the HA companion app, I’m noticing a 3-second delay when I speak into my microphone to my doorbell. The sound from my doorbell is good with no delay.

Do you have any idea how I can solve this?

hey @qonfusion90 thanks a lot for the config, got it working with that! but the audio is only 1 way right? it doesnt take the audio from the HA-device so that you can speak with the guys in front of the door or am I doing something wrong?

Using the config I’ve shared two way audio should work.
Please note that the Mic only works when the connection is secured using an SSL cert. for example using LetsEncrypt!

ah, thanks @qonfusion90 for that hint. is https only for the browser needed or also for the HA android app? I thought that maybe the app does not need https so I can test if it works in general

Hey all,
got now HomeAssistant on HTTPS and microfone works now via the browser :slight_smile: but is HTTPS also needed so that the microfone works on the HA-App? i read somewhere that microfone in general does not work with the HA-App? did someone get it running on the App?

besides that my HA-App does not work anymore after switching to HTTPS :frowning:

I’ve managed to get a media_player entity working on my Reolink Wifi doorbell- details here in case anyone needs them:
https://community.home-assistant.io/t/go2rtc-send-audio-to-cam/587937/29?u=redonionking

2 Likes

Hi all,
Did you manage to do it via the app or browser? I am struggling to get the mic working via the app. My connection is HTTPS, but still doesn’t work.

Hi @Lev,

Have you tried always using Preview_01_sub instead of Preview_01_main ?

I had the same problem and this solved it for me.