Frigate with Reolink RLC-520A

Hi,
I just receive my new camera Reolink RLC-520A, it’s directly added to HA by Reolink integration.
But I have some difficulties to add it to Frigate.
Here my conf file :

## Connection à MQTT ##
mqtt:
  host: XxX
  port: XxX
  client_id: XxX
  topic_prefix: XxX
  user: XxX
  password: XxX

## Choix des caméras ##
go2rtc:
  streams:
    #    r4252_smart_outdoor_camera:
    #      - echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh
    #        camera.r4252_smart_outdoor_camera
    camera_reolink_jardin:
      - rtsp://XxX:XxX@IP:554/h264Preview_01_main

# if you want to decode a h265 (hevc) stream
#ffmpeg:
#  hwaccel_args: preset-rpi-64-h264

## Liste des caméras avec leurs adresses de connection ##
cameras:
  #  r4252_smart_outdoor_camera:
  #    ffmpeg:
  #      inputs:
  #        - path: rtsp://127.0.0.1:8554/r4252_smart_outdoor_camera?video
  #          # test - path: rtsp://127.0.0.1:18554/r4252_smart_outdoor_camera?video
  #          #input_args: preset-rtsp-restream-low-latency
  #          input_args:
  #            - -rtsp_transport
  #            - tcp
  #          roles:
  #            - detect
  #    motion: ## Création des zones à ignorer ##
  #    motion:
  #      mask:
  ## Choix des options de détection et d'enregistrement ##
  #    motion:
  #      threshold: 30
  #      contour_area: 10
  #      improve_contrast: "true"
  #      mask:
  #        - 0.4,0.093,0.401,0.042,0.368,0.045,0.372,0.094
  #        - 0.818,0.996,0.586,1,0.485,0.788,0.488,0.727,0.597,0.736,0.596,0.679,0.583,0.521,0.542,0.525,0.541,0.427,0.58,0.464,0.562,0.272,0.432,0.231,0.398,0.188,0.408,0.139,0.538,0.171,0.691,0.201,0.707,0.405,0.678,0.497,0.684,0.551,0.733,0.456,0.767,0.465,0.782,0.514,0.796,0.562,0.772,0.582,0.761,0.615,0.743,0.652,0.761,0.679,0.763,0.737,0.74,0.755,0.717,0.762,0.744,0.815,0.747,0.833,0.788,0.891

  camera_reolink_jardin:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera_reolink_jardin?video
          input_args:
            - -rtsp_transport
            - tcp
          roles:
            - detect
            - record
    detect:
      enabled: true
    motion:
      threshold: 25
      contour_area: 10
    record:
      enabled: true
      retain:
        days: 3
        mode: all
    snapshots:
      enabled: true
    objects:
      track:
        - person
        - dog

record:
  enabled: true
  retain: # Durée de rétention des enregistrements
    days: 3
    mode: all
  alerts:
    retain:
      days: 15
    pre_capture: 60
    post_capture: 60
  detections:
    retain:
      days: 15
    pre_capture: 60
    post_capture: 60
objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
    - person
    - dog
    - cat
  # Optional: filters to reduce false positives for specific object types
  filters:
    person:
      # Optional: minimum width*height of the bounding box for the detected object (default: 0)
      min_area: 15000
      # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
      #      max_area: 100000
      # Optional: minimum width/height of the bounding box for the detected object (default: 0)
      #      min_ratio: 0.5
      # Optional: maximum width/height of the bounding box for the detected object (default: 24000000)
      #      max_ratio: 2.0
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.6
      # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
      threshold: 0.8
    dog:
      # Optional: minimum width*height of the bounding box for the detected object (default: 0)
      #      min_area: 5000
      # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
      #      max_area: 100000
      # Optional: minimum width/height of the bounding box for the detected object (default: 0)
      #      min_ratio: 0.5
      # Optional: maximum width/height of the bounding box for the detected object (default: 24000000)
      #      max_ratio: 2.0
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.5
      # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
      threshold: 0.6
      # Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
      # Checks based on the bottom center of the bounding box of the object
    #      mask: 0,0,1000,0,1000,200,0,200
    cat:
      # Optional: minimum width*height of the bounding box for the detected object (default: 0)
      #      min_area: 5000
      # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
      #      max_area: 100000
      # Optional: minimum width/height of the bounding box for the detected object (default: 0)
      #      min_ratio: 0.5
      # Optional: maximum width/height of the bounding box for the detected object (default: 24000000)
      #      max_ratio: 2.0
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.5
      # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
      threshold: 0.6

motion:
  # Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below)
  # Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive.
  # The value should be between 1 and 255.
  threshold: 20
  improve_contrast: "false"

# Optional
ui:
  # Optional: Set the default live mode for cameras in the UI (default: shown below)
  timezone: Europe/Paris
  # Optional: Use an experimental recordings / camera view UI (default: shown below)
#  use_experimental: False
# Optional: Set the time format used.
# Options are browser, 12hour, or 24hour (default: shown below)
#time_format: browser
# Optional: Set the date style for a specified length.
# Options are: full, long, medium, short
# Examples:
#    short: 2/11/23
#    medium: Feb 11, 2023
#    full: Saturday, February 11, 2023
# (default: shown below).
#  date_style: short
# Optional: Set the time style for a specified length.
# Options are: full, long, medium, short
# Examples:
#    short: 8:14 PM
#    medium: 8:15:22 PM
#    full: 8:15:22 PM Mountain Standard Time
# (default: shown below).
# time_style: medium
# Optional: Ability to manually override the date / time styling to use strftime format
# https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
# possible values are shown above (default: not set)
# strftime_fmt: "%Y/%m/%d %H:%M"

# Detecteur Google Coral
detectors:
  coral:
    type: edgetpu
    device: usb
    enabled: true
#  deepstack:
#    api_url: http://192.168.1.136:32168/v1/vision/detection
#    type: deepstack
#    api_timeout: 0.1 # seconds
#detectors:
#  cpu1:
#    type: cpu

snapshots:
  enabled: true
version: 0.15-1

And the error log :
ffmpeg.camera_reolink_jardin.detect
Message
Error opening input file rtsp://127.0.0.1:8554/your_reolink_camera_sub.

2025-04-18 14:24:28.016841378  [2025-04-18 16:24:28] watchdog.camera_reolink_jardin ERROR   : Ffmpeg process crashed unexpectedly for camera_reolink_jardin.
2025-04-18 14:24:28.016881003  [2025-04-18 16:24:28] watchdog.camera_reolink_jardin ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-04-18 14:24:28.016993429  [2025-04-18 16:24:28] ffmpeg.camera_reolink_jardin.detect ERROR   : [rtsp @ 0x560954c46f40] method DESCRIBE failed: 404 Not Found
2025-04-18 14:24:28.016995903  [2025-04-18 16:24:28] ffmpeg.camera_reolink_jardin.detect ERROR   : [in#0 @ 0x560954c46bc0] Error opening input: Server returned 404 Not Found
2025-04-18 14:24:28.017011012  [2025-04-18 16:24:28] ffmpeg.camera_reolink_jardin.detect ERROR   : Error opening input file rtsp://127.0.0.1:8554/your_reolink_camera_sub.
2025-04-18 14:24:28.017053473  [2025-04-18 16:24:28] ffmpeg.camera_reolink_jardin.detect ERROR   : Error opening input files: Server returned 404 Not Found
2025-04-18 14:24:28.034958852  [2025-04-18 16:24:28] watchdog.camera_reolink_jardin ERROR   : No new recording segments were created for camera_reolink_jardin in the last 120s. restarting the ffmpeg record process...
2025-04-18 14:24:28.035032073  [2025-04-18 16:24:28] watchdog.camera_reolink_jardin INFO    : Terminating the existing ffmpeg process...
2025-04-18 14:24:28.035448580  [2025-04-18 16:24:28] watchdog.camera_reolink_jardin INFO    : Waiting for ffmpeg to exit gracefully...
2025-04-18 14:24:28.038470531  [2025-04-18 16:24:28] frigate.video                  ERROR   : camera_reolink_jardin: Unable to read frames from ffmpeg process.
2025-04-18 14:24:28.038481302  [2025-04-18 16:24:28] frigate.video                  ERROR   : camera_reolink_jardin: ffmpeg process is not running. exiting capture thread...
2025-04-18 14:24:38.047284698  [2025-04-18 16:24:38] watchdog.camera_reolink_jardin ERROR   : Ffmpeg process crashed unexpectedly for camera_reolink_jardin.
2025-04-18 14:24:38.047300238  [2025-04-18 16:24:38] watchdog.camera_reolink_jardin ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-04-18 14:24:38.047478660  [2025-04-18 16:24:38] ffmpeg.camera_reolink_jardin.detect ERROR   : [rtsp @ 0x55c6f7e56f40] method DESCRIBE failed: 404 Not Found
2025-04-18 14:24:38.047480663  [2025-04-18 16:24:38] ffmpeg.camera_reolink_jardin.detect ERROR   : [in#0 @ 0x55c6f7e56bc0] Error opening input: Server returned 404 Not Found
2025-04-18 14:24:38.047481856  [2025-04-18 16:24:38] ffmpeg.camera_reolink_jardin.detect ERROR   : Error opening input file rtsp://127.0.0.1:8554/your_reolink_camera_sub.
2025-04-18 14:24:38.047482747  [2025-04-18 16:24:38] ffmpeg.camera_reolink_jardin.detect ERROR   : Error opening input files: Server returned 404 Not Found
2025-04-18 14:24:38.053989564  [2025-04-18 16:24:38] watchdog.camera_reolink_jardin ERROR   : No new recording segments were created for camera_reolink_jardin in the last 120s. restarting the ffmpeg record process...
2025-04-18 14:24:38.054069657  [2025-04-18 16:24:38] watchdog.camera_reolink_jardin INFO    : Terminating the existing ffmpeg process...
2025-04-18 14:24:38.054641862  [2025-04-18 16:24:38] watchdog.camera_reolink_jardin INFO    : Waiting for ffmpeg to exit gracefully...
2025-04-18 14:24:38.060377733  [2025-04-18 16:24:38] frigate.video                  ERROR   : camera_reolink_jardin: Unable to read frames from ffmpeg process.
2025-04-18 14:24:38.060617992  [2025-04-18 16:24:38] frigate.video                  ERROR   : camera_reolink_jardin: ffmpeg process is not running. exiting capture thread...
2025-04-18 14:24:48.065704649  [2025-04-18 16:24:48] watchdog.camera_reolink_jardin ERROR   : Ffmpeg process crashed unexpectedly for camera_reolink_jardin.
2025-04-18 14:24:48.065707665  [2025-04-18 16:24:48] watchdog.camera_reolink_jardin ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-04-18 14:24:48.070843281  [2025-04-18 16:24:48] ffmpeg.camera_reolink_jardin.detect ERROR   : [rtsp @ 0x559a798edf40] method DESCRIBE failed: 404 Not Found
2025-04-18 14:24:48.070899059  [2025-04-18 16:24:48] ffmpeg.camera_reolink_jardin.detect ERROR   : [in#0 @ 0x559a798edbc0] Error opening input: Server returned 404 Not Found
2025-04-18 14:24:48.070900642  [2025-04-18 16:24:48] ffmpeg.camera_reolink_jardin.detect ERROR   : Error opening input file rtsp://127.0.0.1:8554/your_reolink_camera_sub.
2025-04-18 14:24:48.071012315  [2025-04-18 16:24:48] ffmpeg.camera_reolink_jardin.detect ERROR   : Error opening input files: Server returned 404 Not Found
2025-04-18 14:24:48.078139466  [2025-04-18 16:24:48] watchdog.camera_reolink_jardin ERROR   : No new recording segments were created for camera_reolink_jardin in the last 120s. restarting the ffmpeg record process...
2025-04-18 14:24:48.078152641  [2025-04-18 16:24:48] watchdog.camera_reolink_jardin INFO    : Terminating the existing ffmpeg process...
2025-04-18 14:24:48.078228477  [2025-04-18 16:24:48] watchdog.camera_reolink_jardin INFO    : Waiting for ffmpeg to exit gracefully...
2025-04-18 14:24:48.084404014  [2025-04-18 16:24:48] frigate.video                  ERROR   : camera_reolink_jardin: Unable to read frames from ffmpeg process.
2025-04-18 14:24:48.084425605  [2025-04-18 16:24:48] frigate.video                  ERROR   : camera_reolink_jardin: ffmpeg process is not running. exiting capture thread...

check go2rtc logs

After some reboot, it’s seems OK.

1 Like