Probleme de flux dans les Card (FFMPEG)

Bonjour,

Depuis deux jours, je n’arrive plus à voir le flux de mes caméras sur mon dashboard.

J’ai essayé plusieurs paramètres et reconfiguration de la Frigate ou des Modules et toujours le même résultat, mème avec une restauration du système antérieur.
Tout fonctionait bien auparavant.

Es esperant que vous pouvez maider ce serais aimable de fournir un peut de votre temps.

go2rtc:

webrtc:
  listen: ":8555"

streams:
  camera1:
    - rtsp://admin:admin@192.168.50.144:8554/profile0
  camera1_sub:
    - rtsp://admin:admin@192.168.50.144:8554/profile1
  camera2:
    - rtsp://admin:admin@192.168.50.137:8554/profile0
  camera3:
    - rtsp://admin:admin@192.168.50.194:8554/profile0
  camera4:
    - rtsp://admin:admin@192.168.50.114/channel=0_stream=0.sdp

log:
  level: info 
  api: trace
  exec: debug
  ngrok: info
  rtsp: warn
  streams: error
  webrtc: fatal

ngrok:
  command: ngrok tcp 8555 --authtoken 2haEJ6Zp45ZNwLzwETkGKEKI3K9_3sDdRDfQtFjZTzEpN6fwq

Frigate:

  host: 192.168.50.132
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: mqttuser
  password: mqttuser
  stats_interval: 300

detectors:
  coral:
    type: edgetpu
    device: usb



audio:
  enabled: true
  max_not_heard: 30
  min_volume: 500
  listen:
    - bark
    - fire_alarm
    - scream
    - speech
    - yell
  filters:
    speech:
      threshold: 0.8

logger:
  default: info
  logs:
    frigate.event: debug

birdseye:
  enabled: true
  restream: true
  width: 640
  height: 320
  quality: 8
  mode: continuous
  inactivity_threshold: 30
  layout:
    scaling_factor: 2.0
    max_cameras: 4

ffmpeg:
  global_args: -hide_banner -loglevel warning -threads 2
  hwaccel_args: []
  input_args: preset-rtsp-generic
  output_args:
    detect: -threads 2 -f rawvideo -pix_fmt yuv420p
    record: preset-record-generic-audio-aac
  retry_interval: 10

objects:
  track:
    - person
    - car
    - cat
  mask: []
  filters:
    cat:
      min_area: 5000
      max_area: 100000
      min_ratio: 0.5
      max_ratio: 2.0
      min_score: 0.5
      threshold: 0.7
      mask: []
    car:
      min_area: 5000
      max_area: 100000
      min_ratio: 0.5
      max_ratio: 2.0
      min_score: 0.5
      threshold: 0.6
      mask: []

motion:
  threshold: 100
  lightning_threshold: 0.8
  contour_area: 50
  frame_alpha: 0.01
  frame_height: 100
  mask: []
  improve_contrast: true
  mqtt_off_delay: 100

record:
  enabled: true
  expire_interval: 60
  sync_recordings: true
  retain:
    days: 5
    mode: motion
  export:
    timelapse_args: -vf setpts=0.04*PTS -r 30

  events:
    pre_capture: 5
    post_capture: 5
    objects:
      - person
      - car
      - cat
    retain:
      default: 10
      mode: motion
      objects:
        person: 10
        car: 5
        cat: 5


snapshots:
  enabled: true
  clean_copy: true
  timestamp: false
  bounding_box: true
  crop: false
  height: 175
  retain:
    default: 10
    objects:
      person: 15
  quality: 70

go2rtc:
  streams:
    camera1: rtsp://admin:admin@192.168.50.144:8554/profile0 
    camera1_sub:
      - rtsp://admin:admin@192.168.50.144:8554/profile1 
      - ffmpeg:camera1_sub#audio=aac
    camera2: rtsp://admin:admin@192.168.50.137:8554/profile0 
    camera2_sub:
      - rtsp://admin:admin@192.168.50.137:8554/profile1 
      - ffmpeg:camera2_sub#audio=aac
    camera3: rtsp://admin:admin@192.168.50.194:8554/profile0 
    camera3_sub:
      - rtsp://admin:admin@192.168.50.194:8554/profile0 
      - ffmpeg:camera3_sub#audio=aac
    camera4: rtsp://admin:admin@192.168.50.114/channel=0_stream=0.sdp
    camera4_sub: rtsp://admin:admin@192.168.50.114/channel=1_stream=1.sdp


cameras:
  camera1:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://admin:admin@192.168.50.144:8554/profile0
          roles:
            - record
        - path: rtsp://admin:admin@192.168.50.144:8554/profile1
          roles:
            - detect
            - audio
    detect:
      width: 1220
      height: 720
      fps: 10
      enabled: false
      min_initialized: 1
      max_disappeared: 25
object tracking.
      annotation_offset: 0
    motion:
      threshold: 37
      contour_area: 28
      improve_contrast: 'true'

    zones:
      zone1:
        coordinates: 0.001,0.007,0,1,1,1,1,0
        loitering_time: 0
    review:
      alerts:
        required_zones: zone1
      detections:
        required_zones: zone1
  Camera2:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://admin:admin@192.168.50.137:8554/profile0
          roles:
            - record
        - path: rtsp://admin:admin@192.168.50.137:8554/profile1
          input_args: preset-rtsp-restream
          roles:
            - detect
            - audio
    detect:
      width: 640
      height: 320
      fps: 5
      enabled: true
      min_initialized: 2
      max_disappeared: 25
      stationary:
        interval: 50
        threshold: 50
        max_frames:
          default: 3000
          objects:
            cat: 1000
            car: 15000
      annotation_offset: 0
    motion:
      threshold: 55
      contour_area: 36
      improve_contrast: 'true'
      mask: 
        0.034,0.329,0.062,0.482,0.165,0.457,0.267,0.436,0.275,0.302,0.385,0.28,0.537,0.267,0.565,0.359,0.712,0.357,0.749,0.439,0.77,0.427,0.785,0.362,0.922,0.243,0.821,0.233,0.701,0.229,0.564,0.244,0.452,0.24,0.347,0.265,0.251,0.277
    review:
      alerts:
        required_zones: zone1
    objects:
      filters:
        car: {}
      mask: 
        0.032,0.479,0.186,0.474,0.377,0.428,0.544,0.389,0.68,0.351,0.838,0.324,0.946,0.258,0.993,0.291,0.997,0.454,0.979,0.513,0.879,0.562,0.725,0.629,0.588,0.685,0.435,0.698,0.251,0.773,0.133,0.766,0.013,0.766
    zones:
      zone1:
        coordinates: 0,1,0,0.275,1,0.212,1,1
        loitering_time: 0
  Camera3:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://admin:admin123456@192.168.50.194:8554/profile0
          roles:
            - record
        - path: rtsp://admin:admin123456@192.168.50.194:8554/profile1
          input_args: preset-rtsp-restream
          roles:
            - detect
            - audio
    detect:
      width: 640
      height: 320
      fps: 5
      enabled: false
      min_initialized: 2
      max_disappeared: 25
    motion:
      threshold: 39
      contour_area: 24
      improve_contrast: 'true'
    zones:
      zone1:
        coordinates: 0,0,0,1,1,1,1,0
        loitering_time: 0

  Camera4:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://admin:admin@192.168.50.114/channel=1_stream=1.sdp
          roles:
            - record
        - path: rtsp://admin:admin@192.168.50.114/channel=0_stream=0.sdp
          input_args: preset-rtsp-restream
          roles:
            - detect
            - audio
    detect:
      width: 640
      height: 320
      fps: 5
      enabled: false
      min_initialized: 2
      max_disappeared: 25

    best_image_timeout: 60

    mqtt:
      enabled: true
      timestamp: true
      bounding_box: true
      crop: true
      height: 270
      quality: 70

    ui:
      order: 0
      dashboard: true

    birdseye:
      order: 0
      restream: true

    motion:
      threshold: 44
      contour_area: 38
      improve_contrast: 'true'
telemetry:
  network_interfaces:
    - eth
    - enp
    - eno
    - ens
    - wl
    - lo
  stats:
    amd_gpu_stats: true
    intel_gpu_stats: true
    network_bandwidth: false
  version_check: true
version: 0.14
camera_groups:
  one:
    order: 1
    icon: LuWebcam
    cameras:
      - birdseye
      - Camera1
      - Camera2
      - Camera3
      - Camera4

Configuration.yaml:

default_config:

frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

################# DUCK DNS #################
http:
  ################# NGINX #################
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
  ################# IP BAN #################
  ip_ban_enabled: false
  login_attempts_threshold: 5

################# stream #################
stream:
camera:
  - platform: ffmpeg
    name: camera1
    input: rtsp://admin:admin@192.168.50.144:8554/profile0
  - platform: ffmpeg
    name: camera2
    input: rtsp://admin:admin@192.168.50.137:8554/profile0
  - platform: ffmpeg
    name: camera3
    input: rtsp://admin:admin@192.168.50.194:8554/profile0
  - platform: ffmpeg
    name: camera4
    input: rtsp://admin:admin@192.168.50.114/channel=0_stream=0.sdp

################# Card Frigate #################
lovelace:
  resources:
    - url: /hacsfiles/frigate-hass-card/frigate-hass-card.js
      type: module

################# ALARM #################
alarm_control_panel:
  - platform: manual
    name: Home Alarm
    code: !secret alarmCode
    arming_time: 15
    delay_time: 20
    trigger_time: 4
    disarmed:
      trigger_time: 0
    armed_home:
      arming_time: 0
      delay_time: 0

################# BOT Telegram #################
telegram_bot:
  - platform: polling
    api_key: 7454498413:AAECVw1O4c06oWM4lZ0Q-mI_bOV2dUYJRIM
    allowed_chat_ids:
      - 899677294

################# Notifier Telegram #################
notify:
  - platform: telegram
    name: HQ972_bot
    chat_id: 899677294

################# Proxmox Sensor #################
sensor:
  - platform: template
    sensors:
      proxmox_cpu_temp:
        friendly_name: "Procesor"
        value_template: '{{ states("input_number.proxmox_input_cpu_temp") | multiply(0.001) | round(1) }}'
        unit_of_measurement: °C
  - platform: template
    sensors:
      proxmox_acpi_interface:
        friendly_name: "ACPI vmesnik"
        value_template: '{{ states("input_number.proxmox_input_acpi_interface") | multiply(0.001) | round(1) }}'
        unit_of_measurement: °C
  - platform: template
    sensors:
      proxmox_isa_adapter:
        friendly_name: "ISA adapter"
        value_template: '{{ states("input_number.proxmox_input_isa_adapter") | multiply(0.001) | round(1) }}'
        unit_of_measurement: °C
input_number:
  proxmox_input_cpu_temp:
    name: Procesor
    min: 0
    max: 200000
  proxmox_input_acpi_interface:
    name: ACPI
    min: 0
    max: 200000
  proxmox_input_isa_adapter:
    name: ISA adapter
    min: 0
    max: 200000

Vous trouverez ci join la configuration de frigate card

type: custom:frigate-card
cameras:
  - hide: false
    triggers:
      motion: false
      entities:
        - image.camera1_person
    go2rtc:
      modes:
        - mse
        - webrtc
        - mp4
        - mjpeg
    webrtc_card:
      entity: camera.camera1
    camera_entity: camera.camera1_profile_000
    live_provider: jsmpeg
view:
  default: live
  camera_select: live
  dark_mode: 'on'
  update_force: false
  update_cycle_camera: false
  scan:
    enabled: false
    show_trigger_status: true
    untrigger_reset: true
menu:
  buttons:
    recordings:
      enabled: true
    image:
      enabled: true
    download:
      enabled: true
    expand:
      enabled: true
    microphone:
      enabled: true
      priority: 50
    play:
      enabled: true
    mute:
      enabled: true
    screenshot:
      enabled: true
      priority: 49
live:
  microphone:
    always_connected: true
  controls:
    timeline:
      style: ribbon
  layout:
    fit: fill
  preload: true
  auto_unmute: selected
performance:
  style:
    border_radius: true
    box_shadow: true
  profile: high

Log Go2rtc

23:51:53.835 TRC [api] GET /api/config 172.30.32.2:42714
23:51:54.779 TRC [api] GET /api/config 172.30.32.2:42714
23:51:54.795 TRC [api] POST /api/config 172.30.32.2:42714
23:51:55.845 TRC [api] POST /api/restart 172.30.32.2:42714
23:51:55.845 DBG [api] restart /usr/local/bin/go2rtc
23:51:55.853 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
23:51:55.854 INF config path=/config/go2rtc.yaml
23:51:55.854 TRC [api] register path path=/
23:51:55.854 TRC [api] register path path=/api
23:51:55.854 TRC [api] register path path=/api/config
23:51:55.854 TRC [api] register path path=/api/exit
23:51:55.854 TRC [api] register path path=/api/restart
23:51:55.854 TRC [api] register path path=/api/log
23:51:55.854 TRC [api] register path path=/api/ws
23:51:55.854 TRC [api] register path path=/api/streams
23:51:55.854 TRC [api] register path path=/api/streams.dot
23:51:55.854 INF [api] listen addr=:1984
23:51:55.854 TRC [api] register path path=/api/webrtc
23:51:55.854 TRC [api] register path path=/api/frame.mp4
23:51:55.854 TRC [api] register path path=/api/stream.mp4
23:51:55.854 TRC [api] register path path=/api/stream.m3u8
23:51:55.854 TRC [api] register path path=/api/hls/playlist.m3u8
23:51:55.854 TRC [api] register path path=/api/hls/segment.ts
23:51:55.854 TRC [api] register path path=/api/hls/init.mp4
23:51:55.854 TRC [api] register path path=/api/hls/segment.m4s
23:51:55.854 TRC [api] register path path=/api/frame.jpeg
23:51:55.854 TRC [api] register path path=/api/stream.mjpeg
23:51:55.854 TRC [api] register path path=/api/stream.ascii
23:51:55.854 TRC [api] register path path=/api/stream.y4m
23:51:55.854 TRC [api] register path path=/static
23:51:55.855 TRC [api] register path path=/streams
23:51:55.855 TRC [api] register path path=/stream/
23:51:55.855 TRC [api] register path path=/api/hass
23:51:55.855 TRC [api] register path path=/onvif/
23:51:55.855 TRC [api] register path path=/api/onvif
23:51:55.855 TRC [api] register path path=/api/webtorrent
23:51:55.855 TRC [api] register path path=/api/stream.flv
23:51:55.855 TRC [api] register path path=/api/ffmpeg
23:51:55.855 TRC [api] register path path=/api/ffmpeg/devices
23:51:55.855 TRC [api] register path path=/api/ffmpeg/hardware
23:51:55.855 TRC [api] register path path=/api/stream
23:51:55.855 TRC [api] register path path=/api/dvrip
23:51:55.855 TRC [api] register path path=/api/stream.ts
23:51:55.855 TRC [api] register path path=/api/stream.aac
23:51:55.855 TRC [api] register path path=/api/roborock
23:51:55.855 TRC [api] register path path=/api/homekit
23:51:55.855 TRC [api] register path path=/api/nest
23:51:55.855 TRC [api] register path path=/api/gopro
23:51:55.856 TRC [api] register path path=/api/stack
23:51:56.702 INF [ngrok] add external candidate for WebRTC addr=3.13.191.225:18852
23:54:11.200 TRC [api] GET /log.html 172.30.32.2:56004
23:54:11.221 TRC [api] GET /main.js 172.30.32.2:56004
23:54:11.236 TRC [api] GET /api/log 172.30.32.2:56004
23:54:16.252 TRC [api] GET /api/log 172.30.32.2:56004
23:54:20.863 TRC [api] GET /api/ws?src=camera1 [::1]:57596
23:54:21.077 TRC [api] ws msg type=webrtc/offer
23:54:21.077 TRC [api] ws msg type=mse
23:54:21.083 TRC [api] ws msg type=webrtc/candidate
23:54:21.085 TRC [api] ws msg type=webrtc/candidate
23:54:21.301 TRC [api] ws msg type=webrtc/candidate
23:54:21.402 TRC [api] ws msg type=webrtc/candidate
23:54:27.164 TRC github.com/AlexxIT/go2rtc/internal/api/ws/ws.go:124 > error="websocket: close 1000 (normal)"
23:54:27.765 TRC [api] GET /api/ws?src=camera1 127.0.0.1:47066
23:54:27.896 TRC [api] ws msg type=webrtc/offer
23:54:27.896 TRC [api] ws msg type=mse
23:54:27.929 TRC [api] ws msg type=webrtc/candidate
23:54:28.032 TRC [api] ws msg type=webrtc/candidate
23:54:28.033 TRC [api] ws msg type=webrtc/candidate
23:54:28.033 TRC [api] ws msg type=webrtc/candidate
23:54:28.287 TRC [api] ws msg type=webrtc/candidate
23:54:31.160 TRC github.com/AlexxIT/go2rtc/internal/api/ws/ws.go:124 > error="websocket: close 1000 (normal)"
23:54:31.673 TRC [api] GET /api/ws?src=camera1 [::1]:37542
23:54:31.803 TRC [api] ws msg type=webrtc/offer
23:54:31.807 TRC [api] ws msg type=mse
23:54:32.313 TRC [api] ws msg type=webrtc/candidate
23:54:32.332 TRC [api] ws msg type=webrtc/candidate
23:54:36.759 TRC [api] GET / 172.30.32.2:38720
23:54:36.866 TRC [api] GET /main.js 172.30.32.2:38720
23:54:36.983 TRC [api] GET /api 172.30.32.2:38720
23:54:36.984 TRC [api] GET /api/streams 172.30.32.2:45804
23:54:38.035 TRC [api] GET /api/streams 172.30.32.2:45804
23:54:39.074 TRC [api] GET /api/streams 172.30.32.2:45804
23:54:39.802 TRC [api] GET /log.html 172.30.32.2:45804
23:54:39.910 TRC [api] GET /main.js 172.30.32.2:45804
23:54:40.021 TRC [api] GET /api/log 172.30.32.2:45804
23:54:45.130 TRC [api] GET /api/log 172.30.32.2:45804
23:54:50.133 TRC [api] GET /api/log 172.30.32.2:45804
23:54:55.034 TRC [api] GET /api/log 172.30.32.2:45804
23:55:00.058 TRC [api] GET /api/log 172.30.32.2:45804
23:55:05.073 TRC [api] GET /api/log 172.30.32.2:45804
23:55:10.070 TRC [api] GET /api/log 172.30.32.2:45804
23:55:15.081 TRC [api] GET /api/log 172.30.32.2:45804
23:55:16.436 TRC [api] GET /streams [::1]:41444
23:55:16.437 TRC [api] POST /stream/camera.birdseye/add [::1]:41444
23:55:16.438 TRC [api] POST /stream/camera.birdseye/channel/0/webrtc [::1]:41444
23:55:18.642 TRC [api] GET /api 172.30.32.2:45804
23:55:18.643 TRC [api] GET /api/streams 172.30.32.2:42660
23:55:19.685 TRC [api] GET /api/streams 172.30.32.2:42660
23:55:20.729 TRC [api] GET /api/streams 172.30.32.2:42660
23:55:21.672 TRC [api] GET /api/streams 172.30.32.2:42660
23:55:22.711 TRC [api] GET /api/streams 172.30.32.2:42660

Log Frigate

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service certsync-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2024-08-06 04:03:19.487238490  [INFO] Preparing Frigate...
2024-08-06 04:03:19.502240437  [INFO] Starting NGINX...
2024-08-06 04:03:19.515056936  [INFO] No TLS certificate found. Generating a self signed certificate...
2024-08-06 04:03:19.571769042  [INFO] Starting Frigate...
2024-08-06 04:03:19.571893573  [INFO] Preparing new go2rtc config...
2024-08-06 04:03:19.629004029  [INFO] Got IP address from supervisor: 192.168.50.132
2024-08-06 04:03:19.657966237  [INFO] Got WebRTC port from supervisor: 8555
2024-08-06 04:03:20.194732504  [INFO] Starting go2rtc...
2024-08-06 04:03:20.311105932  00:03:20.311 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-08-06 04:03:20.311231194  00:03:20.311 INF config path=/dev/shm/go2rtc.yaml
2024-08-06 04:03:20.311528896  00:03:20.311 INF [rtsp] listen addr=:8554
2024-08-06 04:03:20.311671343  00:03:20.311 INF [api] listen addr=:1984
2024-08-06 04:03:20.311739807  00:03:20.311 INF [webrtc] listen addr=:8555/tcp
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
2024-08-06 04:03:21.028965569  [INFO] Starting certsync...
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2024-08-06 04:03:21.151783651  127.0.0.1 - - [06/Aug/2024:00:03:21 -0400] "" 400 0 "-" "-" "-"
2024-08-06 04:03:21.759910955  [2024-08-06 00:03:21] frigate.app                    INFO    : Starting Frigate (0.14.0-7c39b17)
2024-08-06 04:03:21.760004227  [2024-08-06 00:03:21] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-08-06 04:03:21.760393539  [2024-08-06 00:03:21] frigate.util.config            INFO    : Checking if frigate config needs migration...
2024-08-06 04:03:21.828148467  [2024-08-06 00:03:21] frigate.util.config            INFO    : frigate config does not need migration...
2024-08-06 04:03:21.918659204  [2024-08-06 00:03:21] peewee_migrate.logs            INFO    : Starting migrations
2024-08-06 04:03:21.919265160  [2024-08-06 00:03:21] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-08-06 04:03:21.924785528  2024/08/06 00:03:21 [error] 171#171: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate-fa-beta:5000"
2024-08-06 04:03:21.924790222  2024/08/06 00:03:21 [error] 171#171: *2 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate-fa-beta:5000"
2024-08-06 04:03:21.962124086  [2024-08-06 00:03:21] frigate.app                    INFO    : Recording process started: 314
2024-08-06 04:03:21.965760142  [2024-08-06 00:03:21] frigate.app                    INFO    : Recording process started: 316
2024-08-06 04:03:21.967888763  [2024-08-06 00:03:21] frigate.app                    INFO    : go2rtc process pid: 102
2024-08-06 04:03:22.009277576  [2024-08-06 00:03:22] frigate.app                    INFO    : Output process started: 345
2024-08-06 04:03:22.021161069  [2024-08-06 00:03:22] detector.coral                 INFO    : Starting detection process: 343
2024-08-06 04:03:22.021360846  [2024-08-06 00:03:22] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-08-06 04:03:22.420961251  [2024-08-06 00:03:22] frigate.app                    INFO    : Camera processor started for Camera1: 389
2024-08-06 04:03:22.428438400  [2024-08-06 00:03:22] frigate.app                    INFO    : Camera processor started for Camera2: 390
2024-08-06 04:03:22.429356762  [2024-08-06 00:03:22] frigate.app                    INFO    : Camera processor started for Camera3: 391
2024-08-06 04:03:22.437319993  [2024-08-06 00:03:22] frigate.app                    INFO    : Camera processor started for Camera4: 400
2024-08-06 04:03:22.442517003  [2024-08-06 00:03:22] frigate.app                    INFO    : Capture process started for Camera1: 417
2024-08-06 04:03:22.447525400  [2024-08-06 00:03:22] frigate.app                    INFO    : Capture process started for Camera2: 424
2024-08-06 04:03:22.461072134  [2024-08-06 00:03:22] frigate.app                    INFO    : Capture process started for Camera3: 428
2024-08-06 04:03:22.467226491  [2024-08-06 00:03:22] frigate.app                    INFO    : Capture process started for Camera4: 430
2024-08-06 04:03:22.467229925  [2024-08-06 00:03:22] frigate.app                    INFO    : Audio process started: 439
2024-08-06 04:03:23.225882070  [2024-08-06 00:03:23] frigate.record.util            INFO    : Deleting 26769 recording DB entries with missing files
2024-08-06 04:03:23.230651738  [2024-08-06 00:03:23] frigate.record.util            WARNING : Deleting 0.885863% of recordings DB entries, could be due to configuration error. Aborting...
2024-08-06 04:03:29.491952834  [INFO] Starting go2rtc healthcheck service...
2024-08-06 04:03:30.032036556  [2024-08-06 00:03:30] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2024-08-06 04:03:44.858596253  127.0.0.1 - - [06/Aug/2024:00:03:44 -0400] "POST /api/events/Camera4/speech/create HTTP/1.1" 200 95 "-" "python-requests/2.32.3" "-"

Log Mosquitto

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[00:01:58] INFO: Certificates found: SSL is available
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[00:01:58] INFO: Starting NGINX for authentication handling...
s6-rc: info: service legacy-services successfully started
[00:01:59] INFO: Starting mosquitto MQTT broker...
2024-08-06 00:01:59: Warning: Mosquitto should not be run as root/administrator.
2024-08-06 00:01:59: mosquitto version 2.0.18 starting
2024-08-06 00:01:59: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-08-06 00:01:59: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-08-06 00:01:59:  ├── Username/password checking enabled.
2024-08-06 00:01:59:  ├── TLS-PSK checking enabled.
2024-08-06 00:01:59:  └── Extended authentication not enabled.
2024-08-06 00:01:59: Opening ipv4 listen socket on port 1883.
2024-08-06 00:01:59: Opening ipv6 listen socket on port 1883.
2024-08-06 00:01:59: Opening websockets listen socket on port 1884.
2024-08-06 00:01:59: Opening ipv4 listen socket on port 8883.
2024-08-06 00:01:59: Opening ipv6 listen socket on port 8883.
2024-08-06 00:01:59: Opening websockets listen socket on port 8884.
2024-08-06 00:01:59: mosquitto version 2.0.18 running
2024-08-06 00:01:59: New connection from ::1:39772 on port 1883.
2024-08-06 00:01:59: Client <unknown> disconnected due to protocol error.
[00:02:00] INFO: Successfully send discovery information to Home Assistant.
[00:02:00] INFO: Successfully send service information to the Supervisor.
2024-08-06 00:02:42: New connection from 192.168.50.132:33715 on port 1883.
2024-08-06 00:02:42: New client connected from 192.168.50.132:33715 as 7scnocmsCalwjicjQiRfdh (p2, c1, k60, u'mqttuser').
2024-08-06 00:02:53: New connection from 172.30.32.1:42502 on port 1883.
2024-08-06 00:02:53: New client connected from 172.30.32.1:42502 as mqttjs_9498c7a5 (p2, c1, k60, u'addons').
2024-08-06 00:03:21: New connection from 172.30.32.1:36484 on port 1883.
2024-08-06 00:03:21: New client connected from 172.30.32.1:36484 as frigate (p2, c1, k60, u'mqttuser').
2024-08-06 00:05:20: New connection from 172.30.32.2:58694 on port 1883.
2024-08-06 00:05:20: Client <unknown> closed its connection.

[center]## System Information

version core-2024.8.0b3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.33-haos
arch x86_64
timezone America/Caracas
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4994
Installed Version 1.34.0
Stage running
Available Repositories 1459
Downloaded Repositories 24
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.4
update_channel beta
supervisor_version supervisor-2024.08.0
agent_version 1.6.0
docker_version 26.1.4
disk_total 30.8 GB
disk_used 26.5 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization kvm
board ova
supervisor_api ok
version_api ok
installed_addons Samba share (12.3.2), Advanced SSH & Web Terminal (18.0.0), AirCast (4.2.1), Studio Code Server (5.15.0), go2rtc (1.9.4), Terminal & SSH (9.14.0), eWeLink Smart Home (1.4.3), Node-RED (18.0.4), VLC (0.3.0), ZeroTier One (0.18.0), Assist Microphone (1.2.0), Samba Backup (5.2.0), Duck DNS (1.18.0), Nginx Proxy Manager (1.0.1), NGINX Home Assistant SSL proxy (3.9.0), PS5 MQTT (1.3.3), MariaDB (2.7.1), Google Assistant SDK (2.5.0), phpMyAdmin (0.9.1), Home Assistant Google Drive Backup (0.112.1), Mosquitto broker (6.4.1), Frigate (Full Access) Beta (0.14.0-rc1)
Dashboards
dashboards 5
resources 16
views 25
mode storage
Recorder
oldest_recorder_run 26 juillet 2024 à 23:41
current_recorder_run 5 août 2024 à 23:23
estimated_db_size 341.98 MiB
database_engine sqlite
database_version 3.45.3
Sonoff
version 3.7.3 (e240aaf)
cloud_online 7 / 8
local_online 7 / 7

Hello,

  1. Est-ce que tu vois les flux dans l’interface de Frigate?
  2. Est-ce que tu vois les flux avec VLC?
  3. As-tu mis à jour la Frigate card récemment?
1 « J'aime »

Hello

Tu avais bien fixé les IP de tes caméras ?
Dans la négative, il est possible qu’elles aient changé

1 « J'aime »

Je ne comprends pas trop d’où sort ta config go2rtc?

Tu as go2rtc en plus de Frigate? Si c’est le cas ce n’est pas nécessaire, Frigate a go2rtc intégré.

En plus dans ta config de Frigate tu n’utilises pas go2rtc pour tes caméras, tu utilises le stream de tes caméras.

Donc tu as, si je ne me trompe pas, 3 connections à tes caméras:

  1. pour le go2rtc
  2. pour le go2rtc de frigate
  3. une pour frigate

Par exemple pour camera1 tu devrais avoir:

cameras:
  camera1:
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera1
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/camera1_sub
          roles:
            - detect
            - audio

Ce n’est pas ta question première mais c’est déjà quelque chose qui me semble louche, ça peut épurer et simplifier tes config et être moins lourd sur tes caméras.

Mais déjà répond aux questions que j’ai mises plus haut, ça aidera.

1 « J'aime »

Salut, alors je vois effectivement le flux dans frigate et VLC.
Je ne me souviens pas avoir fait de mise à jour de la Card.
Les adresses IP des Caméras n’a pas changé.

Quand je troubleshoot Frigate, je fais une config mininale (je commente tout le reste, avec CTRL+/ tu (dé)commentes tout ce qui est sélectionné) avec 1 caméra et je redémarre.
Puis ensuite redémarrer HA.

1 « J'aime »

bonjour,

Perso ca m’a choqué aussi, go2rtc est intégré dans frigate, donc tu devrais avoir uniquement un config dans frigate et la cate frigate avec le flux de frigate et non de ta caméra.

Je te mets mes config, si ca peut aider :

CONFIG FRIGATE :

mqtt:
  host: 192.x.x.x
  port: 1883


birdseye:
  enabled: false
rtmp:
  enabled: false

# Optional: Snapshot configuration  
snapshots:
  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: Camera override for retention settings (default: global values)
  retain:
    # Required: Default retention days (default: shown below)
    default: 7
    # Optional: Per object retention days
    objects:
      person: 7

# Optional: Record configuration
# NOTE: Can be overridden at the camera level
record:
  enabled: true
  # Optional: Number of minutes to wait between cleanup runs (default: shown below)
  # This can be used to reduce the frequency of deleting recording segments from disk if you want to minimize i/o
  expire_interval: 60
  # Optional: Retention settings for recording
  retain:
    # Optional: Number of days to retain recordings regardless of events (default: shown below)
    # NOTE: This should be set to 0 and retention should be defined in events section below
    #       if you only want to retain recordings of events.
    days: 7
    # Optional: Mode for retention. Available options are: all, motion, and active_objects
    #   all - save all recording segments regardless of activity
    #   motion - save all recordings segments with any detected motion
    #   active_objects - save all recording segments with active/moving objects
    # NOTE: this mode only applies when the days setting above is greater than 0
    #mode: active_objects
  # Optional: Event recording settings
  events:
    # Optional: Number of seconds before the event to include (default: shown below)
    pre_capture: 5
    # Optional: Number of seconds after the event to include (default: shown below)
    post_capture: 5
    # Optional: Objects to save recordings for. (default: all tracked objects)
    objects:
    - person

    # Optional: Retention settings for recordings of events
    retain:
      # Required: Default retention days (default: shown below)
      default: 7
      # Optional: Mode for retention. (default: shown below)
      #   all - save all recording segments for events regardless of activity
      #   motion - save all recordings segments for events with any detected motion
      #   active_objects - save all recording segments for event with active/moving objects
      #
      # NOTE: If the retain mode for the camera is more restrictive than the mode configured
      #       here, the segments will already be gone by the time this mode is applied.
      #       For example, if the camera retain mode is "motion", the segments without motion are
      #       never stored, so setting the mode to "all" here won't bring them back.
      mode: active_objects
      # Optional: Per object retention days
      objects:
        person: 7


go2rtc:
  streams:
    CamJardin:
    - rtsp://log:pass@192.x.x.x:554/Preview_01_main
    - ffmpeg:CamJardin#audio=aac
    CamEntree:
    - rtsp://log:pass@192.x.x.x:554/Preview_01_main
    - ffmpeg:CamEntree#audio=aac


ffmpeg:
  hwaccel_args: preset-vaapi
  output_args:
    record: preset-record-generic-audio-copy

cameras:
  CamJardin:
    ffmpeg:
      inputs:
      - path: rtsp://127.0.0.1:8554/CamJardin
        input_args: preset-rtsp-restream
        roles:
        - detect
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: true

    objects:
      track:
      - person

  #        - dog
  #        - cat
  #        - bird
  #        - mouse
     # filters:
       # person:
          # 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

  CamEntree:
    ffmpeg:
      inputs:
      - path: rtsp://127.0.0.1:8554/CamEntree
        input_args: preset-rtsp-restream
        roles:
        - detect
    detect:
      width: 1280
      height: 720
      fps: 5
      enabled: true

    objects:
      track:
      - person

  #        - dog
  #        - cat
  #        - bird
  #        - mouse
      #filters:
       # person:
          # 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
    motion:
      mask:
      - 426,0,426,29,375,29,296,28,207,33,198,0

CARTE FRIGATE :

type: custom:frigate-card
cameras:
  - camera_entity: camera.camentree
    live_provider: go2rtc
    go2rtc:
      modes:
        - webrtc
  - camera_entity: camera.camjardin
    live_provider: go2rtc
    go2rtc:
      modes:
        - webrtc
menu:
  buttons:
    substreams:
      icon: mdi:motion-sensor
1 « J'aime »

J’avais loupé la config des caméras dans configuration.yaml

@HQ_972 le but c’est d’avoir tes flux caméras qui vont vers go2rtc et ensuite tout le reste doit prendre les flux depuis go2rtc.

Flux caméra → go2rtc (intégré dans l’addon Frigate)-> frigate → ha

Step 1: utiliser uniquement go2rtc dans la config de frigate
Step 2: utiliser ces streams dans ta config des caméras dans frigate
Step 3: utiliser les entités des caméras créées dans HA via l’intégration Frigate pour mettre dans tes cartes

2 « J'aime »

Déjà dans Go2rtc, je n’ai pas le flux apparent, mais bizarrement dans Frigate oui

Pour te répondre, j’ai juste le module d’installer sur HA

Ah oui, je comprends mieux.