Frigate configuration for Reolink 823A camera to activate audio during recordings

Hi all,

I’m using frigate for 1 week now. It works but I can’t find the right configuration to have the sound during my recordings. Anyone who are using Reoling camera could share his configuration ?

Here is my config file :

detectors:
  coral:
    type: edgetpu
    device: usb
    
mqtt:
  enabled: False

ffmpeg:
  global_args: -hide_banner -loglevel warning
  output_args:
    detect: -f rawvideo -pix_fmt yuv420p
    record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac

cameras:
  camaurel:
    ffmpeg:
      inputs:
        - path: rtsp://USER:[email protected]:554/h264Preview_01_sub
          roles:
            - detect
            - record
    objects:
      track:
        - person
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: True
      retain:
        default: 2
    record:
      enabled: True
detect:
  enabled: True # <---- disable detection until you have a working camera feed
  width: 3840 # <---- update for your camera's resolution
  height: 2160 # <---- update for your camera's resolution

Thank you for your help.

I see a number of issues with this setup

You should absolutely not be running detect on a full res stream, there is no benefit to doing so and it uses a lot more resources

You have your resolution set as the main stream but you are using a sub stream, this means that you are resizing the sub stream up to 4k which is going to use a lot of resources for no benefit

You should be using the presets and not manual args. preset-record-generic-audio-aac will get you audio in the recordings assuming the camera has audio enabled