Integration Esp32cam Frigate

Bonjour,

Petit soucis pour intégrer mon Esp32cam alors qu’il apparait sur le tableau de bord.
Ayant cherché de mon coté sans avoir trouvé, je me tourne vers vous…

Merci à vous


Les logs de Frigate

2025-03-01 17:37:13.851159449  [2025-03-01 18:37:13] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2025-03-01 17:37:13.851252551  [2025-03-01 18:37:13] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-03-01 17:37:13.851266052  [2025-03-01 18:37:13] ffmpeg.test.detect             ERROR   : [tcp @ 0x559ef45cc0] Connection to tcp://192.168.0.113:8080 failed: Connection timed out
2025-03-01 17:37:13.851332411  [2025-03-01 18:37:13] ffmpeg.test.detect             ERROR   : http://192.168.0.113:8080: Connection timed out
2025-03-01 17:37:18.972212244  [2025-03-01 18:37:18] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2025-03-01 17:37:18.973129268  [2025-03-01 18:37:18] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...
2025-03-01 17:37:23.873208392  [2025-03-01 18:37:23] watchdog.test                  ERROR   : Ffmpeg process crashed unexpectedly for test.
2025-03-01 17:37:23.873313824  [2025-03-01 18:37:23] watchdog.test                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-03-01 17:37:23.873329799  [2025-03-01 18:37:23] ffmpeg.test.detect             ERROR   : [tcp @ 0x55a3201cc0] Connection to tcp://192.168.0.113:8080 failed: Connection timed out
2025-03-01 17:37:23.874101436  [2025-03-01 18:37:23] ffmpeg.test.detect             ERROR   : http://192.168.0.113:8080: Connection timed out
2025-03-01 17:37:28.991549255  [2025-03-01 18:37:28] frigate.video                  ERROR   : test: Unable to read frames from ffmpeg process.
2025-03-01 17:37:28.991970224  [2025-03-01 18:37:28] frigate.video                  ERROR   : test: ffmpeg process is not running. exiting capture thread...

Frigate.yaml

mqtt:
  enabled: false

cameras:
#  name_of_your_camera: # <------ Name the camera
#    enabled: true
#    ffmpeg:
#      inputs:
#        - path: rtsp://10.0.10.10:554/rtsp # <----- The stream you want to use for detection
#          roles:
#            - detect
#    detect:
#      enabled: false # <---- disable detection until you have a working camera feed
#      width: 1280
#      height: 720

  test: # <------ Name the camera
    enabled: true
    ffmpeg:
      inputs:
        - path: http://192.168.0.113:8080 # <----- The stream you want to use for detection
          roles:
            - detect
    detect:
      enabled: false # <---- disable detection until you have a working camera feed
      width: 1280
      height: 720
version: 0.15-1

Configuration esp32

esphome:
  name: test
  friendly_name: test

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "+rJlJqRfRP*****************Usz7qVmk+WcQ="

ota:
  - platform: esphome
    password: "96cb2*************49326a52d5d9"

wifi:
  ssid: Mobistar-F142C
  password: E6********6

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test Fallback Hotspot"
    password: "VFC6*****YEl5"

captive_portal:

esp32_camera:
  external_clock:
    pin: GPIO0
    frequency: 20MHz
  i2c_pins:
    sda: GPIO26
    scl: GPIO27
  data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
  vsync_pin: GPIO25
  href_pin: GPIO23
  pixel_clock_pin: GPIO22
  power_down_pin: GPIO32

  #Image settings
  name: My ESP32-CAM 

#Flashlight
light:
  - platform: binary
    name: "flashlight"
    output: flash

output:
  - id: flash
    platform: gpio
    pin: GPIO4 

esp32_camera_web_server:
  - port: 8080
    mode: stream
  - port: 8081
    mode: snapshot

Ma configuration


System Information

version core-2025.2.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.1
os_name Linux
os_version 6.6.62-haos-raspi
arch aarch64
timezone Europe/Brussels
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.5
Stage running
Available Repositories 1562
Downloaded Repositories 2
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 14.2
update_channel stable
supervisor_version supervisor-2025.02.4
agent_version 1.6.0
docker_version 27.2.0
disk_total 116.5 GB
disk_used 10.8 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi5-64
supervisor_api ok
version_api ok
installed_addons File editor (5.8.0), Get HACS (1.3.1), Duck DNS (1.18.0), Mosquitto broker (6.5.0), Zigbee2MQTT (2.1.1-1), ESPHome Device Builder (2025.2.1), Frigate (0.15.0)
Dashboards
dashboards 2
resources 0
views 2
mode storage
Network Configuration
adapters lo (disabled), wlan0 (enabled, default, auto), docker0 (disabled), hassio (disabled), veth3170260 (disabled), vethc26179e (disabled), veth18e676e (disabled), veth99402f0 (disabled), veth4d1f79f (disabled), vethc9f6717 (disabled), veth3e7bf55 (disabled), veth708c51f (disabled), vethf51d81e (disabled), veth11128b5 (disabled)
ipv4_addresses lo (127.0.0.1/8), wlan0 (192.168.0.42/24), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), veth3170260 (), vethc26179e (), veth18e676e (), veth99402f0 (), veth4d1f79f (), vethc9f6717 (), veth3e7bf55 (), veth708c51f (), vethf51d81e (), veth11128b5 ()
ipv6_addresses lo (::1/128), wlan0 (fe80::a3:7188:3249:e3cd/64), docker0 (fe80::42:16ff:fee5:a52f/64), hassio (fe80::42:baff:fe68:71c6/64), veth3170260 (fe80::406f:50ff:fe5c:9915/64), vethc26179e (fe80::f1:3dff:fee4:9760/64), veth18e676e (fe80::2cc2:e6ff:fe16:d097/64), veth99402f0 (fe80::1b:6dff:feb2:4b8d/64), veth4d1f79f (fe80::649a:a6ff:feec:b4c4/64), vethc9f6717 (fe80::2016:44ff:fe2d:d3e6/64), veth3e7bf55 (fe80::f458:aeff:fe8d:499d/64), veth708c51f (fe80::e0c9:8aff:fed6:35cf/64), vethf51d81e (fe80::249f:9dff:fed1:b1bf/64), veth11128b5 (fe80::34eb:59ff:fe66:2dbc/64)
announce_addresses 192.168.0.42, fe80::a3:7188:3249:e3cd
Recorder
oldest_recorder_run 12 février 2025 à 17:16
current_recorder_run 26 février 2025 à 11:41
estimated_db_size 16.71 MiB
database_engine sqlite
database_version 3.47.1

voici la solution que j’utilise à l’époque

1 « J'aime »

Pareil que le message précédent, je te joins mon code frigate.
Partie go2RTC avec mon ESPCAM

go2rtc:
  streams:
    mjpeg_cam: ffmpeg:http://192.168.1.81:8080#video=h264#hardware

Dans la partie « camera: » avec l’IP de ton container

piscine:
    enabled: true
    ffmpeg:
      inputs: 
        - path: rtsp://127.0.0.1:8554/mjpeg_cam 
          roles:
            - detect
            - record
1 « J'aime »

@Gael1980 @Manu663 Sauvé! Merci à vous!

1 « J'aime »