Reolink cameras freezing (HomeKit)

I’ve been trying to fix this issue for the past few days, I hope you guys can help me because I’ve tried almost everything. (ONVIF, ffmpeg, rtsp generic camera)

I have 2 RLC-422 and a NUC7i7BNH with 20 gb RAM, the cameras work fine through lovelace with 2 streams at maximum resolution (2560x1920 30fps), the issue is when I try to see them through HomeKit because sometimes they work for 5 seconds and then they freeze.

configuration.yaml

stream:
ffmpeg:  

camera:
  - platform: generic
    name: garage
    still_image_url: http://192.168.x.xxx/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=password 
    stream_source: rtsp://admin:[email protected]:554/h264Preview_01_main
    

homekit

homekit:
  filter:
  entity_config:
    camera.garage:
      stream_source: "-rtsp_transport tcp -re -i rtsp://admin:[email protected]:554/h264Preview_01_main"
      video_codec: copy

I would appreciate any help.

I’m having the exact same problem. @bdraco any advice?

Im using generic camera with Hikvision and can view the cameras well from lovelace but in homekit it seems very slow. I used to get fluent streams but since I upgraded to 0.115 from 0.113 it has been choppy. With errors such as
Error demuxing stream: No dts in consecutive packets

Timeout with FFMPEG

1 Like

Here I thought it was just me!

8 RLC-410s and 5 RLC-520s and all of them have the same issue ONLY through HA. If I use Homebridge, they work fine.

Has it worked before in a prvious version?

I think I had it setup back in 0.112, but when I started experiencing issues, I switched my cameras over to Homebridge.

There seems to be a few issues on homebridge-camera-ffmpeg but nothing report for homekit in HA.https://github.com/Sunoo/homebridge-camera-ffmpeg/issues

I’ve never reported it in HA mostly because I run my homebridge on a beefy server while my HA instance runs on a Pi and I like it to have some breathing room.

Muxing 13 5mp streams through ffmpeg is a bit taxing on a Pi. :wink:

are you guys running homebridge and homeassistant together? If it works I can try adding the cameras through homebridge and connect them to my main HomeKit server.

I was just using home assistant to link the cameras with HomeKit but now it is slow.

Hi everyone,

I was researching and trying to find a solution to this problem. Managed to get it all working, Stills refresh about every 5-10 seconds. Live view works great.

I have a the following camera:
RLC-410W
Build No. build 20051603
Hardware No. IPC_51316M
Configuration Version v2.0.0.0
Firmware Version v2.0.0.648_20051603

Installed ffmpeg

In my Home Assistant YAML

stream:
ffmpeg:
camera:
  - platform: generic
    name: Driveway
    still_image_url: "http://192.168.0.**/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=**&password=**"
    stream_source: "-re -rtsp_transport tcp -i rtsp://"user":"password"@192.168.0.**:554/h264Preview_01_main"

homekit:
  filter:
    include_entities:
      - camera.driveway
  entity_config:
    camera.driveway:
      video_codec: copy
      support_audio: False
      stream_source: "-re -rtsp_transport tcp -i rtsp://"user":"password"@192.168.0.**:554/h264Preview_01_main"
      # Set maximums for negotiating resolutions
      max_fps: 15
      max_width: 1280
      max_height: 1024
1 Like

Also having issues with Homekit using the ‘Sub’ RTSP stream vs the ‘Main’ stream. However, I can stream the main feed through frontend/lovelace and HA iOS app with no problems.

I’ve tried these exact settings and it works a lot better but the camera still freezes from time to time. Are you still using the same settings?

Yeah I’m still using the same settings, what’s freezing from time to time? Live view?

Are you viewing remotely via HomeKit or within the same network?

Viewing cameras outside of the network does tend to take significantly longer to load regardless of any settings I think.

1 Like

Sorry for not responding for a long time. A couple of weeks ago I bought another reolink camera and I can’t make it work reliably with HomeKit, I don’t know if I have to lower the frame rate or what because they’re partially working with the same settings. I’m using the camera within the same network.

I would appreciate any help.

Having a similar problem, FFmpeg is the only way to make it work. Else the streaming on homekit is unwatchable. Any new solution for this problem??

Hi does it only work for one stream at a time for you to? When I bring up a second stream it says no response. Is there a way to get 2 streams?