[SOLVED] Adding a second camera to Frigate

Pulling my hair out. I’m trying to add a second Reolink camera to Frigate. I set it up and it works fine in a HACs custom Frigate card on my dashboard. I then tried to add it to my Frigate config file so it would be part of my Frigate NVR setup. But it clearly doesn’t recognize the camera name from Home Assistant, it shows as Red when I try to add Rooftop to the bottom of the Frigate config file. (Rooftop is the name of my new Reolink camera.) Here’s the config file:

mqtt:
  host: 192.168.1.55
  port: 1883
  client_id: frigate
  user: harryfine
  password: Carrie_Feuer0HA

detectors:
  cpu1:
    type: cpu

birdseye:
  enabled: true
  width: 640
  height: 480
  quality: 8
  mode: continuous

go2rtc:
  streams:
    reolink: 
      - http://192.168.1.105/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=eibboR
      - "ffmpeg:reolink#audio=opus"
    reolink_sub: 
      - http://192.168.1.105/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=eibboR

ffmpeg:
  hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
  input_args:
    - -avoid_negative_ts
    - make_zero
    - -fflags
    - nobuffer+genpts+discardcorrupt
    - -flags
    - low_delay
    - -strict
    - experimental
    - -analyzeduration
    - 1000M
    - -probesize
    - 1000M
    - -rw_timeout
    - "5000000"

  output_args:
    record: preset-record-generic-audio-aac

detect:
  enabled: True
  width: 640
  height: 480
  fps: 5

record:
  enabled: true
  retain:
    days: 3
    mode: motion
  events:
    pre_capture: 5
    post_capture: 5
    retain:
      default: 3
      mode: active_objects

snapshots:
  enabled: true
  timestamp: true
  bounding_box: true
  retain:
    default: 3
    mode: all
    objects:
      person: 3
      dog: 2

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

It runs perfectly, showing the one original camera in Frigate, then I try to add this new camera to the bottom:

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

But it throws up errors when I try to save it. In System → Devices, there are two Reolink cameras shown…reolink and Rooftop, but the rooftop camera does not appear as a Frigate device. If you look at devices, it doesn’t show the Rooftop device as a Frigate child:

what error are message are you getting?

Fixed it, don’t really know how I did it, I added the new camera to the go2rtc settings in the config file. I now have two cameras inside my frigate NVR.

I just had exactly the same problem, solved by restarting Home Assistant.

2 Likes