Initial config: Frigate with Reolink nightmare šŸ¤Æ

After almost a week of daily attempts to get this working, I still cannot access even one of my 5+1 Reolink cameras via Frigate.

Based on Frigateā€™s error logs, it seems that I may have entered incorrect IP addresses.

  • the IP address in the go2rtc section refers to the actual camera. When entering the RTSP address in VLC, the cameraā€™s output appears.
  • the IP address in the cameras section is the local address of the server on which docker (containing Frigate and Home Assistant) is running.

Iā€™m hoping that somebody might be able to identify some glaring mistake that Iā€™ve made and then perhaps help me to finally configure this properly. Many thanks in advance.

frigate.yml :

mqtt:
  host: 10.57.8.4
  user: me
  password: mypassword

ffmpeg:
  hwaccel_args: preset-vaapi

detectors:
  coral:
    type: edgetpu
    device: usb   


go2rtc:
  streams:
    front-rlc-833a:
    #  - "ffmpeg:http://10.57.8.59/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=mypassword2#video=copy#audio=copy#audio=opus"
      - rtsp://admin:[email protected]:554/h264Preview_01_sub    

cameras:
  front-rlc-833a:
    ffmpeg:
      inputs:
        - path: rtsp://10.57.8.4:8554/front-rlc-833a
          roles:
            - detect

Frigate error logs :

2024-10-28 14:06:40.017501696  [INFO] Preparing Frigate...
2024-10-28 14:06:40.017532859  [INFO] Starting Frigate...
2024-10-28 14:06:57.387700503  [2024-10-28 14:06:57] frigate.app                    INFO    : Starting Frigate (0.14.1-f4f3cfa)
2024-10-28 14:06:57.387903024  [2024-10-28 14:06:57] frigate.util.config            INFO    : Checking if frigate config needs migration...
2024-10-28 14:06:57.396535510  [2024-10-28 14:06:57] frigate.util.config            INFO    : frigate config does not need migration...
2024-10-28 14:07:00.407857213  [rtsp @ 0x3cfd9f80] method DESCRIBE failed: 404 Not Found
2024-10-28 14:07:00.495364514  [2024-10-28 14:07:00] peewee_migrate.logs            INFO    : Starting migrations
2024-10-28 14:07:00.496615136  [2024-10-28 14:07:00] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-10-28 14:07:00.504047072  [2024-10-28 14:07:00] frigate.app                    INFO    : Recording process started: 369
2024-10-28 14:07:00.514340743  [2024-10-28 14:07:00] frigate.app                    INFO    : Recording process started: 378
2024-10-28 14:07:00.518075791  [2024-10-28 14:07:00] frigate.app                    INFO    : go2rtc process pid: 98
2024-10-28 14:07:00.585161404  [2024-10-28 14:07:00] detector.coral                 INFO    : Starting detection process: 398
2024-10-28 14:07:03.744468051  [2024-10-28 14:07:00] frigate.app                    INFO    : Output process started: 400
2024-10-28 14:07:03.744473473  [2024-10-28 14:07:00] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-10-28 14:07:03.744499840  [2024-10-28 14:07:00] frigate.app                    INFO    : Camera processor started for front-rlc-833a: 418
2024-10-28 14:07:03.744703023  [2024-10-28 14:07:00] frigate.app                    INFO    : Capture process started for front-rlc-833a: 420
2024-10-28 14:07:03.744768572  [2024-10-28 14:07:03] frigate.video                  ERROR   : front-rlc-833a: Unable to read frames from ffmpeg process.
2024-10-28 14:07:03.744835640  [2024-10-28 14:07:03] frigate.video                  ERROR   : front-rlc-833a: ffmpeg process is not running. exiting capture thread...
2024-10-28 14:07:03.749202445  [2024-10-28 14:07:03] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2024-10-28 14:07:14.568221914  [2024-10-28 14:07:14] frigate.util.services          ERROR   : Unable to poll vainfo: b"error: XDG_RUNTIME_DIR is invalid or not set in the environment.\nerror: can't connect to X server!\nerror: failed to initialize display\n"
2024-10-28 14:07:14.709830061  [2024-10-28 14:07:14] frigate.util.services          ERROR   : Unable to poll intel GPU stats: No device filter specified and no discrete/integrated i915 devices found
2024-10-28 14:07:17.397595  2024-10-28 14:07:14.709835026
2024-10-28 14:07:20.655272308  [2024-10-28 14:07:20] watchdog.front-rlc-833a        ERROR   : Ffmpeg process crashed unexpectedly for front-rlc-833a.
2024-10-28 14:07:20.655531021  [2024-10-28 14:07:20] watchdog.front-rlc-833a        ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-10-28 14:07:20.655702617  [2024-10-28 14:07:20] ffmpeg.front-rlc-833a.detect   ERROR   : [rtsp @ 0x564d0354ef40] method DESCRIBE failed: 404 Not Found
2024-10-28 14:07:20.655707545  [2024-10-28 14:07:20] ffmpeg.front-rlc-833a.detect   ERROR   : rtsp://10.57.8.4:8554/front-rlc-833a: Server returned 404 Not Found

I should point out that my problems were more significant before I had DISABLED the Reolink integration in Home Assisstant. Before doing so, I had been continuously plagued by the ā€œServer returned 404 Not Foundā€ error when running Frigate. At least now I donā€™t have this one to worry about.

ffprobe of the camera returns this:


Input #0, rtsp, from 'rtsp://admin:[email protected]:554/h264Preview_01_sub':
  Metadata:
    title           : Session streamed by "preview"
    comment         : h264Preview_01_sub
  Duration: N/A, start: 0.000563, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x360, 10 fps, 25 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Hi my Reolink cameras are working well with this:

Camera_main:
  - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@xxx.xxx.xxx.xxx:554/h265Preview_01_main
  - "ffmpeg:Camera_main#video=copy#audio=aac#hardware"

Camera_sub:
  - rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@xxx.xxx.xxx.xxx:554/h264Preview_01_sub
  - "ffmpeg:Camera_sub#video=copy#audio=pcma#hardware"

...01_main (clear res. channel)
...01_ext (medium res. channel)
...01_sub (fluent res. channel)

H265 or h264 for the _main channel depends on the configured "clear" resolution in the camera setup. 4K resolution usually works with h265, all lower resolutions with h264

Sub channel with audio=pcma because I am using 2-way communication.

Replace {FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD} with your Reolink credentials (without brackets) e.g. admin:password

I had to ditch my ancient AMD GPU. After installing the new NVDIA card along with making code tweaks, things are finally working as expected.