Bonjour,
Je suis en train de configurer un esp32cam … tout fonctionne, mais ce n’est pas au point …
Je peux voir ma caméra dans frigate , mais l’image n’arrête pas de bouger sur une image fixe …
les contrastes se baladent et le plus gênant ce sont des lignes horizontales qui vont et viennent comme ci-dessous …( j ai mis une feuille blanche devant)
.
.
.
Si quelqu’un a 5 minutes , voir heures …

.
Déja , j’arrive pas a voir la caméra dans VLC … avec http://192.168.0.46:8080 , ce qui est dans frigate …
.
il n’y a rien qui puisse faire des parasites quelconque , et le signal wifi est plein pot …
.
j’ai un esp32cam : AZDelivery Module ESP32-Cam
.
.
mon fichier esp aprés pas mal d’essais …
esphome:
name: espcam
friendly_name: espcam
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "VmuyuC8RxxxxxxxxxxxxxxxxNNr/DToUkX8Hzho4tfU="
ota:
- platform: esphome
wifi:
ssid: !secret wifi_ssid3
password: !secret wifi_password3
captive_portal:
web_server:
port: 80
binary_sensor:
- platform: status
name: "Espcam Status"
sensor:
- platform: uptime
id: uptime_seconds
name: "Uptime Sensor"
update_interval: 60s
unit_of_measurement: s
accuracy_decimals: 0
force_update: false
icon: mdi:timer
internal: True # Hide to HA
- platform: wifi_signal
name: "EspCam WiFi Signal Sensor"
update_interval: 60s
text_sensor:
- platform: template
name: espcam - Uptime
update_interval: 60s
icon: mdi:clock-start
lambda: |-
int seconds = (id(uptime_seconds).state);
int days = seconds / (24 * 3600);
seconds = seconds % (24 * 3600);
int hours = seconds / 3600;
seconds = seconds % 3600;
int minutes = seconds / 60;
seconds = seconds % 60;
if ( days ) {
return { (String(days) +"d " + String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
} else if ( hours ) {
return { (String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
} else if ( minutes ) {
return { (String(minutes) +"m "+ String(seconds) +"s").c_str() };
} else {
return { (String(seconds) +"s").c_str() };
}
esp32_camera:
name: ESPCam
external_clock:
pin: GPIO0
# frequency: 20MHz
frequency: 10MHz
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
test_pattern: false
vertical_flip: false
horizontal_mirror: false
resolution: 800x600
max_framerate: 25 fps
# max_framerate: 10 fps
idle_framerate: 0.1 fps
output:
# Register the LED as a dimmable output ....
- platform: ledc
id: cam_led
pin: GPIO4
channel: 2
inverted: false
light:
# ... and then make a light out of it.
- platform: monochromatic
name: "Espcam LED"
output: cam_led
esp32_camera_web_server:
- port: 8080
mode: stream
.
.
.
.
mon fichier dans frigate
cam_01:
ffmpeg:
input_args: ""
inputs:
- path: http://192.168.0.46:8080 #ESp32 camera location
detect:
width: 640
height: 360
fps: 5
.
.
.
les log de esphome
.
INFO ESPHome 2024.7.2
INFO Reading configuration /config/esphome/espcam.yaml...
WARNING GPIO0 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from 192.168.0.46 using esphome API
INFO Successfully connected to espcam @ 192.168.0.46 in 0.009s
INFO Successful handshake with espcam @ 192.168.0.46 in 0.079s
[11:47:27][I][app:100]: ESPHome version 2024.7.2 compiled on Aug 21 2024, 10:51:08
[11:47:27][C][wifi:599]: WiFi:
[11:47:27][C][wifi:427]: Local MAC: E4:6XXXXXXX:54
[11:47:27][C][wifi:432]: SSID: [redacted]
[11:47:27][C][wifi:435]: IP Address: 192.168.0.46
[11:47:27][C][wifi:439]: BSSID: [redacted]
[11:47:27][C][wifi:440]: Hostname: 'espcam'
[11:47:27][C][wifi:442]: Signal strength: -45 dB ▂▄▆█
[11:47:27][C][wifi:446]: Channel: 6
[11:47:27][C][wifi:447]: Subnet: 255.255.255.0
[11:47:27][C][wifi:448]: Gateway: 192.168.0.254
[11:47:27][C][wifi:449]: DNS1: 192.168.0.254
[11:47:27][C][wifi:450]: DNS2: 0.0.0.0
[11:47:27][C][logger:185]: Logger:
[11:47:27][C][logger:186]: Level: DEBUG
[11:47:27][C][logger:188]: Log Baud Rate: 115200
[11:47:27][C][logger:189]: Hardware UART: UART0
[11:47:27][C][uptime.sensor:033]: Uptime Sensor 'Uptime Sensor'
[11:47:27][C][uptime.sensor:033]: Device Class: 'duration'
[11:47:27][C][uptime.sensor:033]: State Class: 'total_increasing'
[11:47:27][C][uptime.sensor:033]: Unit of Measurement: 's'
[11:47:27][C][uptime.sensor:033]: Accuracy Decimals: 0
[11:47:27][C][uptime.sensor:033]: Icon: 'mdi:timer'
[11:47:27][C][uptime.sensor:034]: Type: Seconds
[11:47:27][D][esp32_camera:196]: Got Image: len=46753
[11:47:27][C][template.text_sensor:020]: Template Sensor 'espcam - Uptime'
[11:47:27][C][template.text_sensor:020]: Icon: 'mdi:clock-start'
[11:47:27][C][ledc.output:176]: LEDC Output:
[11:47:27][C][ledc.output:177]: Pin GPIO4
[11:47:27][C][ledc.output:178]: LEDC Channel: 2
[11:47:27][C][ledc.output:179]: PWM Frequency: 1000.0 Hz
[11:47:27][C][ledc.output:180]: Phase angle: 0.0°
[11:47:27][C][ledc.output:181]: Bit depth: 16
[11:47:27][C][light:103]: Light 'Espcam LED'
[11:47:27][C][light:105]: Default Transition Length: 1.0s
[11:47:27][C][light:106]: Gamma Correct: 2.80
[11:47:27][C][status:034]: Status Binary Sensor 'Espcam Status'
[11:47:27][C][status:034]: Device Class: 'connectivity'
[11:47:27][C][esp32_camera:048]: ESP32 Camera:
[11:47:27][C][esp32_camera:049]: Name: ESPCam
[11:47:27][C][esp32_camera:050]: Internal: NO
[11:47:27][C][esp32_camera:052]: Data Pins: D0:5 D1:18 D2:19 D3:21 D4:36 D5:39 D6:34 D7:35
[11:47:27][C][esp32_camera:053]: VSYNC Pin: 25
[11:47:27][C][esp32_camera:054]: HREF Pin: 23
[11:47:27][C][esp32_camera:055]: Pixel Clock Pin: 22
[11:47:27][C][esp32_camera:056]: External Clock: Pin:0 Frequency:10000000
[11:47:27][C][esp32_camera:060]: I2C Pins: SDA:26 SCL:27
[11:47:27][C][esp32_camera:062]: Reset Pin: -1
[11:47:27][C][esp32_camera:083]: Resolution: 800x600 (SVGA)
[11:47:27][C][esp32_camera:129]: JPEG Quality: 10
[11:47:27][C][esp32_camera:131]: Contrast: 0
[11:47:27][C][esp32_camera:132]: Brightness: 0
[11:47:27][C][esp32_camera:133]: Saturation: 0
[11:47:27][C][esp32_camera:134]: Vertical Flip: OFF
[11:47:27][C][esp32_camera:135]: Horizontal Mirror: OFF
[11:47:27][C][esp32_camera:136]: Special Effect: 0
[11:47:27][C][esp32_camera:137]: White Balance Mode: 0
[11:47:27][C][esp32_camera:140]: Auto Exposure Control: 1
[11:47:27][C][esp32_camera:141]: Auto Exposure Control 2: 0
[11:47:27][C][esp32_camera:142]: Auto Exposure Level: 0
[11:47:27][C][esp32_camera:143]: Auto Exposure Value: 300
[11:47:27][C][esp32_camera:144]: AGC: 1
[11:47:27][C][esp32_camera:145]: AGC Gain: 0
[11:47:27][C][esp32_camera:146]: Gain Ceiling: 0
[11:47:27][C][esp32_camera:152]: Test Pattern: NO
[11:47:27][C][psram:020]: PSRAM:
[11:47:27][C][psram:021]: Available: YES
[11:47:27][C][psram:024]: Size: 4095 KB
[11:47:28][C][captive_portal:088]: Captive Portal:
[11:47:28][C][web_server:173]: Web Server:
[11:47:28][C][web_server:174]: Address: espcam.local:80
[11:47:28][C][mdns:116]: mDNS:
[11:47:28][C][mdns:117]: Hostname: espcam
[11:47:28][C][esphome.ota:073]: Over-The-Air updates:
[11:47:28][C][esphome.ota:074]: Address: espcam.local:3232
[11:47:28][C][esphome.ota:075]: Version: 2
[11:47:28][C][safe_mode:018]: Safe Mode:
[11:47:28][C][safe_mode:020]: Boot considered successful after 60 seconds
[11:47:28][C][safe_mode:021]: Invoke after 10 boot attempts
[11:47:28][C][safe_mode:023]: Remain in safe mode for 300 seconds
[11:47:28][C][api:139]: API Server:
[11:47:28][C][api:140]: Address: espcam.local:6053
[11:47:28][C][api:142]: Using noise encryption: YES
[11:47:28][C][wifi_signal.sensor:009]: WiFi Signal 'EspCam WiFi Signal Sensor'
[11:47:28][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[11:47:28][C][wifi_signal.sensor:009]: State Class: 'measurement'
[11:47:28][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
[11:47:28][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[11:47:28][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[11:47:28][C][esp32_camera_web_server:089]: Port: 8080
[11:47:28][C][esp32_camera_web_server:091]: Mode: stream
[11:47:28][D][esp32_camera:196]: Got Image: len=46176
[11:47:28][D][esp32_camera_web_server:198][httpd]: MJPG: 46176B 320ms (3.1fps)
[11:47:28][D][esp32_camera:196]: Got Image: len=42899
[11:47:28][D][esp32_camera_web_server:198][httpd]: MJPG: 42899B 259ms (3.9fps)
[11:47:28][D][esp32_camera:196]: Got Image: len=42714
[11:47:28][D][esp32_camera_web_server:198][httpd]: MJPG: 42714B 246ms (4.1fps)
[11:47:28][D][esp32_camera:196]: Got Image: len=42680
[11:47:29][D][esp32_camera_web_server:198][httpd]: MJPG: 42680B 248ms (4.0fps)
[11:47:29][D][esp32_camera:196]: Got Image: len=42639
[11:47:29][D][esp32_camera_web_server:198][httpd]: MJPG: 42639B 221ms (4.5fps)
[11:47:29][D][esp32_camera:196]: Got Image: len=42419
[11:47:29][D][esp32_camera_web_server:198][httpd]: MJPG: 42419B 256ms (3.9fps)
[11:47:29][D][esp32_camera:196]: Got Image: len=42415
[11:47:29][D][esp32_camera_web_server:198][httpd]: MJPG: 42415B 277ms (3.6fps)
[11:47:30][D][esp32_camera:196]: Got Image: len=42414
[11:47:30][D][esp32_camera_web_server:198][httpd]: MJPG: 42414B 314ms (3.2fps)
[11:47:30][D][esp32_camera:196]: Got Image: len=42416
[11:47:30][D][esp32_camera_web_server:198][httpd]: MJPG: 42416B 316ms (3.2fps)
[11:47:30][D][esp32_camera:196]: Got Image: len=42912
[11:47:30][D][esp32_camera_web_server:198][httpd]: MJPG: 42912B 235ms (4.3fps)
[11:47:30][D][esp32_camera:196]: Got Image: len=42577
[11:47:30][D][esp32_camera_web_server:198][httpd]: MJPG: 42577B 265ms (3.8fps)
[11:47:31][D][esp32_camera:196]: Got Image: len=42424
[11:47:31][D][esp32_camera_web_server:198][httpd]: MJPG: 42424B 278ms (3.6fps)
[11:47:31][D][esp32_camera:196]: Got Image: len=42391
[11:47:31][D][esp32_camera_web_server:198][httpd]: MJPG: 42391B 239ms (4.2fps)
[11:47:31][D][esp32_camera:196]: Got Image: len=42490
[11:47:31][D][esp32_camera_web_server:198][httpd]: MJPG: 42490B 263ms (3.8fps)
[11:47:31][D][esp32_camera:196]: Got Image: len=42380
[11:47:31][D][esp32_camera_web_server:198][httpd]: MJPG: 42380B 195ms (5.1fps)
[11:47:32][D][esp32_camera:196]: Got Image: len=42515
[11:47:32][D][esp32_camera_web_server:198][httpd]: MJPG: 42515B 265ms (3.8fps)
[11:47:32][D][esp32_camera:196]: Got Image: len=44256
[11:47:32][D][esp32_camera_web_server:198][httpd]: MJPG: 44256B 253ms (4.0fps)
[11:47:32][D][esp32_camera:196]: Got Image: len=42563
[11:47:32][D][esp32_camera_web_server:198][httpd]: MJPG: 42563B 225ms (4.4fps)
[11:47:32][D][esp32_camera:196]: Got Image: len=42482
[11:47:32][D][esp32_camera_web_server:198][httpd]: MJPG: 42482B 236ms (4.2fps)
[11:47:33][D][esp32_camera:196]: Got Image: len=43044
[11:47:33][D][esp32_camera_web_server:198][httpd]: MJPG: 43044B 250ms (4.0fps)
[11:47:33][D][esp32_camera:196]: Got Image: len=42449
[11:47:33][D][esp32_camera_web_server:198][httpd]: MJPG: 42449B 224ms (4.5fps)
[11:47:33][D][esp32_camera:196]: Got Image: len=42404
[11:47:33][D][esp32_camera_web
.
je viens de m’apercevoir d’un autre probléme … lors d’une detection , j’ai bien l’icon dans event , mais si je veux voir l’image ou la video, j’ai un écran noir et une erreur :
The media could not be loaded, either because the server or network failed or because the format is not supported.