Aide pour configurer Frigate

Bonjour tout le monde,

j’ai délaissé mes cameras google nest pour des reolink.
Frigate tourne sous docker sur un nas syno 1520+

  • Doorbell filaire

  • 2 caméra E1 pro

  • 2 caméras Argus 4 Pro

  • 1 clé usb google Coral

Pour chaque caméra, j’ai activé le RTSP et le ONVIF dans l’application Réolink.

J”arrive à voir les caméras dans Frigate mais cela n’est pas stable.
j’ai régulièrement des erreurs avec FFMPEG

Quelqu’un peux t’il me conseiller ,

Voici mon fichier de conf : 
mqtt:
  enabled: true
  host: 192.168.XX.XXX
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: userbroker
  password: Passuserbroker

tls:
  enabled: true


detectors:
  coral:
    type: edgetpu
    device: usb
  #ov_0:
  #  type: openvino
  #  device: GPU


detect:
  # NOTE: Recommended value of 5. Ideally, try and reduce your FPS on the camera.
  fps: 2
  # Optional: enables detection for all cameras (default: True)
  enabled: true


#objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
#  track:
#    - person
#    - car
#    - cat

#audio:
#  enabled: true
#  listen:
#    - scream
#    - speech
#    - yell

review:
  # Disable alerts. We only care about detections
  alerts:
    labels: []
  detections:
    labels:
      - car
      - person
      - speech
      - cat



go2rtc:
  streams:
    camera_entree_main_stream:
      - rtsp://root:depasse@192.168.X.XXX:554/h264Preview_01_main#audio=pcm
    camera_entree_sub_stream:
      - rtsp://root:depasse@192.168.X.XXX:554/h264Preview_01_sub#audio=pcm
    camera_jardin_main_stream:
      - rtsp://root:MotDedepasse@192.168.X.XXX:554/h264Preview_01_main#audio=pcm  # 
    camera_jardin_sub_stream:
      - rtsp://root:MotDedepasse@192.168.X.XXX:554/h264Preview_01_sub#audio=pcm  # 
    camera_sejour_main_stream:
      - rtsp://root:MotDedepasse@192.168.X.XXX:554/h264Preview_01_main#video=copy#audio=pcm
    camera_sejour_sub_stream:
      - rtsp://root:MotDedepasse@192.168.X.XXX:554/h264Preview_01_sub#audio=pcm
    camera_couloir_main_stream:
      - rtsp://root:MotDedepasse@192.168.X.XXX:554/h264Preview_01_main#audio=pcm
    camera_couloir_sub_stream:
      - rtsp://root:MotDedepasse@192.168.X.XXX:554/h264Preview_01_sub#audio=pcm
    camera_rue_main_stream:
      - rtsp://root:depasse@192.168.X.XXX:554/h264Preview_01_main#audio=pcm
    camera_rue_sub_stream:
      - rtsp://root:depasse@192.168.X.XXX:554/h264Preview_01_sub#audio=pcm


cameras:
  camera_entree:
    enabled: true
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/camera_entree_main_stream
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/camera_entree_sub_stream
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        # reolink: is already AAC (https://support.reolink.com/hc/en-us/articles/900000638523/)
        # ffmpeg: https://docs.frigate.video/configuration/ffmpeg_presets/#output-args-presets
        record: preset-record-generic-audio-copy
    review:
      alerts:
        labels: []
    # From the sub stream we have a resolution: 640x360, fps: 7, bitrate: 512
    detect:
      fps: 2
      enabled: true
      width: 640
      height: 480
    live:
      streams:
        Main Stream: camera_entree_main_stream # 
        Sub Stream: camera_entree_sub_stream
    objects:
      track:
        - person
        - cat
        - car
  camera_jardin:
    enabled: true
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/camera_jardin_main_stream
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/camera_jardin_sub_stream
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        # reolink: is already AAC (https://support.reolink.com/hc/en-us/articles/900000638523/)
        # ffmpeg: https://docs.frigate.video/configuration/ffmpeg_presets/#output-args-presets
        record: preset-record-generic-audio-copy
    # From the sub stream we have a resolution: 640x360, fps: 7, bitrate: 512
    detect:
      fps: 2
      enabled: true
      width: 640
      height: 480
    live:
      streams:
        Main Stream: camera_jardin_main_stream # 
        Sub Stream: camera_jardin_sub_stream
    objects:
      track:
        - person
        - cat
        - car
  camera_rue:
    enabled: true
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/camera_rue_main_stream
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/camera_rue_sub_stream
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        # reolink: is already AAC (https://support.reolink.com/hc/en-us/articles/900000638523/)
        # ffmpeg: https://docs.frigate.video/configuration/ffmpeg_presets/#output-args-presets
        record: preset-record-generic-audio-copy
    # From the sub stream we have a resolution: 640x360, fps: 7, bitrate: 512
    detect:
      fps: 2
      enabled: true
      width: 640
      height: 480
    live:
      streams:
        Main Stream: camera_rue_main_stream # 
        Sub Stream: camera_rue_sub_stream
    objects:
      track:
        - person
        - cat
        - car

  camera_sejour:
    enabled: true
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/camera_sejour_main_stream
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/camera_sejour_sub_stream
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        # reolink: is already AAC (https://support.reolink.com/hc/en-us/articles/900000638523/)
        # ffmpeg: https://docs.frigate.video/configuration/ffmpeg_presets/#output-args-presets
        record: preset-record-generic-audio-copy
    # From the sub stream we have a resolution: 640x360, fps: 7, bitrate: 512
    detect:
      fps: 2
      enabled: true
      width: 640
      height: 480
    live:
      streams:
        Main Stream: camera_sejour_main_stream # 
        Sub Stream: camera_sejour_sub_stream
    objects:
      track:
        - person
        - cat
  camera_couloir:
    enabled: true
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://127.0.0.1:8554/camera_couloir_main_stream
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/camera_couloir_sub_stream
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        # reolink: is already AAC (https://support.reolink.com/hc/en-us/articles/900000638523/)
        # ffmpeg: https://docs.frigate.video/configuration/ffmpeg_presets/#output-args-presets
        record: preset-record-generic-audio-copy
    # From the sub stream we have a resolution: 640x360, fps: 7, bitrate: 512
    detect:
      fps: 2
      enabled: true
      width: 640
      height: 480
    live:
      streams:
        Main Stream: camera_couloir_main_stream # 
        Sub Stream: camera_couloir_sub_stream
    objects:
      track:
        - person
        - cat

record:
  sync_recordings: true
  enabled: true
  retain:
    days: 1
    mode: motion
  export:
    timelapse_args: -vf scale=trunc(iw/2)*2:trunc(ih/2)*2 -vf setpts=0.00695*PTS
      -r 30 -crf 28 -preset veryslow
  alerts:
    retain:
      days: 30
    pre_capture: 7
    post_capture: 7
  detections:
    retain:
      days: 30
    pre_capture: 7
    post_capture: 7

snapshots:
  # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
  enabled: true
  # Optional: save a clean PNG copy of the snapshot image (default: shown below)
  clean_copy: true
  # Optional: print a timestamp on the snapshots (default: shown below)
  timestamp: true
  # Optional: draw bounding box on the snapshots (default: shown below)
  bounding_box: true
  # Optional: crop the snapshot (default: shown below)
  crop: false
  # Optional: height to resize the snapshot to (default: original size)
  #height: 175
  # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
  #required_zones: []
  # Optional: Camera override for retention settings (default: global values)
  retain:
    # Required: Default retention days (default: shown below)
    default: 10
    # Optional: Per object retention days
    objects:
      person: 15
      car: 15
  # Optional: quality of the encoded jpeg, 0-100 (default: shown below)
  quality: 70
version: 0.16-0


semantic_search:
  enabled: false
  model_size: small
face_recognition:
  enabled: true
  model_size: small
lpr:
  enabled: true
classification:
  bird:
    enabled: false
camera_groups:
  test:
    order: 1
    icon: LuEye
    cameras: birdseye

Merci pour votre aide
:slight_smile:

Utiliser une machine autre qu’un Synology leur os est fortement customisé et je crois qu’il n’y a pas de driver pour le coral
Donc tu pars avec beaucoup d’épines dans les pieds
Un conseil part dur un hardware dédié pour frigate

1 « J'aime »

Je rejoins @ddfdom

As tu lu le paragraphe dédié à la configuration des caméras Reolink dans la doc ?

Voici le lien : Camera Specific Configurations | Frigate

Personnellement, j’ai notamment une E1 Zoom et j’utilise :

camera: 
  - ffmpeg:http://192.168.2.22/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=password#video=copy#audio=copy#audio=opus
camera_sub: 
  - ffmpeg:http://192.168.2.22/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=password

Plus généralement, les développeur de FRIGATE ne sont pas très fans des caméras Reolink.

Je dis ça mais j’en ai 4 :sweat_smile:

1 « J'aime »

D’après les logs, elle est reconnue.

ah tu passes en HTTP à la place RTSP ?
ça fonctionne mieux ?

Moi, j’ai pris ce qu’on m’avait conseillé en qualité prix.

Tu as mis ça en accèlération ?

hwaccel_args: preset-vaapi

Pour le détect, j’ai mis 640X480 . tu as mis quoi ?

EDIT :
Après lecture de ton lien (que j’avais deja vu ) mais j’avais pas vu cette section :
eolink’s latest cameras support two way audio via go2rtc and other applications. It is important that the http-flv stream is still used for stability, a secondary rtsp stream can be added that will be using for the two way audio only.

NOTE: The RTSP stream can not be prefixed with ffmpeg:, as go2rtc needs to handle the stream to support two way audio.

Ensure HTTP is enabled in the camera’s advanced network settings. To use two way talk with Frigate, see the Live view documentation.

http-flv semble pus stable. je vais tenter ça

Tu as installé des paquets supplémentaires ? Car de base ils ne sont pas dans l’os de Synology

J’avais lancé ça, il y a quelques mois pour installer HA en docker (sans le faire)

/sbin/modprobe usbserial
/sbin/modprobe ftdi_sio
/sbin/modprobe cdc-acm
chmod 777 /dev/ttyUSB0
chmod 777 /dev/ttyACM0

et voici mon dockercompose :

`
services:

frigate:

image: ghcr.io/blakeblackshear/frigate:stable

container_name: Frigate

hostname: frigate

restart: unless-stopped

shm_size: "260mb" # update for your cameras based on calculation above

devices:

  - /dev/bus/usb:/dev/bus/usb

  #- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware

privileged: true

security_opt:

 - apparmor=unconfined

 - systempaths=unconfined

environment:

 TZ: Europe/Paris

 FRIGATE_RTSP_PASSWORD: MotDePass

volumes:

  - /etc/localtime:/etc/localtime:ro

  - /volume1/docker/frigate/config:/config:rw

  - /volume1/docker/frigate/media:/media/frigate:rw

  - type: tmpfs

    target: /tmp/cache

    tmpfs:

      size: 1000000000

ports:

  - "8971:8971"

  #- 5563:5000 #Web UI Interface Port

  - 8554:8554 # RTSP feeds

  - 8555:8555/tcp # WebRTC over tcp

  - 8555:8555/udp # WebRTC over udp

`

Désolé journée chargée hier !

Je suis sur un Beelink EQ12 (Processeur N100). J’utiliser :

hwaccel_args: preset-intel-qsv-h264

Sinon oui comme indiqué dans la doc Frigate pour ce type de caméra ils conseillent de passer par HTTP.

Perso j’ai mis à peu près un an à trouver les bons réglages pour toutes mes caméras. Il faut bien lire la doc et parcourir le github.

1 « J'aime »