steve_a
(Stefano Angioni)
November 20, 2021, 6:19pm
1
Hi all,
I have configured my AI thinker esp32 cam and included the recently released webserver component, see below code:
substitutions:
hostname: cam-studio
esphome:
name: $hostname
platform: ESP32
board: esp32cam
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp Cam Studio Fallback Hotspot"
password: *
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
#Configuration
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: $hostname stream
max_framerate: 24 fps
idle_framerate: 0.2 fps
resolution: SVGA
vertical_flip: false
horizontal_mirror: false
jpeg_quality: 30
contrast: 1
brightness: 0.
saturation: 0.
esp32_camera_web_server:
- port: 8080
mode: stream
# - port: 8081
# mode: snapshot
output:
# flashlight
- platform: gpio
pin: GPIO4
id: gpio_4
# statuslight
- platform: gpio
pin:
number: GPIO33
inverted: True
id: gpio_33
light:
#flashlight
- platform: binary
output: gpio_4
name: $hostname Flash
id: flash
#statuslight
- platform: binary
output: gpio_33
name: $hostname Status
sensor:
- platform: wifi_signal
name: $hostname WiFi Signal
update_interval: 60s
- platform: uptime
name: $hostname Uptime
text_sensor:
- platform: wifi_info
ssid:
name: $hostname WiFi_info
switch:
- platform: restart
name: $hostname restart
binary_sensor:
- platform: status
name: $hostname status
# sensore di movimento
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
name: "Sensore Presenza"
device_class: motion
Now, I am able to stream my cam on my browser at https://ip-address:8080 , and also VLC can stream using the same ip address.
When I try to add the camera to motioneye, it returns request time out . I have tried both “network camera” and “Simple MJPEG camera”, but they fail.
All software is latest release.
I would like to stay with ESP Home, if possible.
Any help would be greatly appreciated.
Thank you!
The docs mention:
At a given time only one stream can be served, but multiple snapshots.
Are you sure all session from your client (browser/vlc) are closed?
And where are your logs anyway?
steve_a
(Stefano Angioni)
November 21, 2021, 9:07am
3
Hi and thank you for your reply!
Yes all other clients are closed when I try to add the cam to motioneye.
Which logs do you need?
steve_a:
Which logs do you need?
If you have troubles with esphome I would expect esphome logs
steve_a
(Stefano Angioni)
November 21, 2021, 3:49pm
5
Yeah it might be motioneye’s logs sorry for being noobie. However, see below:
INFO Reading configuration /config/esphome/esp_cam.yaml...
WARNING GPIO0 is a Strapping PIN and should be avoided.
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 GPIO4 is a Strapping PIN and should be avoided.
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 cam-studio.local using esphome API
INFO Successfully connected to cam-studio.local
[16:36:39][I][app:099]: ESPHome version 2021.11.1 compiled on Nov 18 2021, 14:58:39
[16:36:39][C][wifi:488]: WiFi:
[16:36:39][C][wifi:350]: Local MAC: C8:2B:96:8E:3A:A4
[16:36:39][C][wifi:351]: SSID: [redacted]
[16:36:39][C][wifi:352]: IP Address: ***.***.***.***
[16:36:39][C][wifi:354]: BSSID: [redacted]
[16:36:39][C][wifi:355]: Hostname: 'cam-studio'
[16:36:39][C][wifi:357]: Signal strength: -79 dB ▂▄▆█
[16:36:39][C][wifi:361]: Channel: 10
[16:36:39][C][wifi:362]: Subnet: ***.***.***.***
[16:36:39][C][wifi:363]: Gateway: ***.***.***.***
[16:36:39][C][wifi:364]: DNS1: ***.***.***.***
[16:36:39][C][wifi:365]: DNS2: 0.0.0.0
[16:36:39][C][logger:233]: Logger:
[16:36:39][C][logger:234]: Level: DEBUG
[16:36:39][C][logger:235]: Log Baud Rate: 115200
[16:36:39][C][logger:236]: Hardware UART: UART0
[16:36:39][C][gpio.output:010]: GPIO Binary Output:
[16:36:39][C][gpio.output:011]: Pin: GPIO4
[16:36:39][C][gpio.output:010]: GPIO Binary Output:
[16:36:39][C][gpio.output:011]: Pin: GPIO33
[16:36:39][C][uptime.sensor:031]: Uptime Sensor 'cam-studio Uptime'
[16:36:39][C][uptime.sensor:031]: State Class: 'total_increasing'
[16:36:39][C][uptime.sensor:031]: Unit of Measurement: 's'
[16:36:39][C][uptime.sensor:031]: Accuracy Decimals: 0
[16:36:39][C][uptime.sensor:031]: Icon: 'mdi:timer-outline'
[16:36:39][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Sensore Presenza'
[16:36:39][C][gpio.binary_sensor:015]: Device Class: 'motion'
[16:36:39][C][gpio.binary_sensor:016]: Pin: GPIO13
[16:36:39][C][light:098]: Light 'cam-studio Flash'
[16:36:39][C][light:098]: Light 'cam-studio Status'
[16:36:39][C][esp32_camera:046]: ESP32 Camera:
[16:36:39][C][esp32_camera:047]: Name: cam-studio stream
[16:36:39][C][esp32_camera:048]: Internal: NO
[16:36:39][C][esp32_camera:050]: Board Has PSRAM: YES
[16:36:39][C][esp32_camera:053]: Data Pins: D0:5 D1:18 D2:19 D3:21 D4:36 D5:39 D6:34 D7:35
[16:36:39][C][esp32_camera:054]: VSYNC Pin: 25
[16:36:39][C][esp32_camera:055]: HREF Pin: 23
[16:36:39][C][esp32_camera:056]: Pixel Clock Pin: 22
[16:36:39][C][esp32_camera:057]: External Clock: Pin:0 Frequency:20000000
[16:36:39][C][esp32_camera:058]: I2C Pins: SDA:26 SCL:27
[16:36:39][C][esp32_camera:059]: Reset Pin: -1
[16:36:39][C][esp32_camera:080]: Resolution: 800x600 (SVGA)
[16:36:39][C][esp32_camera:102]: JPEG Quality: 30
[16:36:39][C][esp32_camera:104]: Contrast: 1
[16:36:39][C][esp32_camera:105]: Brightness: 0
[16:36:39][C][esp32_camera:106]: Saturation: 0
[16:36:39][C][esp32_camera:107]: Vertical Flip: OFF
[16:36:39][C][esp32_camera:108]: Horizontal Mirror: OFF
[16:36:39][C][esp32_camera:125]: Test Pattern: NO
[16:36:40][C][restart:022]: Restart Switch 'cam-studio restart'
[16:36:40][C][restart:022]: Icon: 'mdi:restart'
[16:36:40][C][status:034]: Status Binary Sensor 'cam-studio status'
[16:36:40][C][status:034]: Device Class: 'connectivity'
[16:36:40][C][captive_portal:151]: Captive Portal:
[16:36:40][C][ota:082]: Over-The-Air Updates:
[16:36:40][C][ota:083]: Address: cam-studio.local:3232
[16:36:40][C][api:134]: API Server:
[16:36:40][C][api:135]: Address: cam-studio.local:6053
[16:36:40][C][api:139]: Using noise encryption: NO
[16:36:40][C][wifi_signal.sensor:009]: WiFi Signal 'cam-studio WiFi Signal'
[16:36:40][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[16:36:40][C][wifi_signal.sensor:009]: State Class: 'measurement'
[16:36:40][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
[16:36:40][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[16:36:40][C][wifi_info:011]: WifiInfo SSID 'cam-studio WiFi_info'
[16:36:40][C][mdns:084]: mDNS:
[16:36:40][C][mdns:085]: Hostname: cam-studio
[16:36:40][C][esp32_camera_web_server:080]: ESP32 Camera Web Server:
[16:36:40][C][esp32_camera_web_server:081]: Port: 8080
[16:36:40][C][esp32_camera_web_server:083]: Mode: stream
[16:36:43][D][esp32_camera:162]: Got Image: len=11273
[16:36:45][D][esp32_camera:162]: Got Image: len=11263
[16:36:46][D][esp32_camera_web_server:191]: MJPG: 11263B 48ms (20.8fps)
[16:36:46][D][esp32_camera:162]: Got Image: len=11259
[16:36:46][D][esp32_camera_web_server:191]: MJPG: 11259B 295ms (3.4fps)
[16:36:46][D][esp32_camera:162]: Got Image: len=11256
[16:36:46][D][esp32_camera_web_server:191]: MJPG: 11256B 321ms (3.1fps)
[16:36:46][D][esp32_camera:162]: Got Image: len=11252
[16:36:46][D][esp32_camera_web_server:191]: MJPG: 11252B 325ms (3.1fps)
[16:36:47][D][esp32_camera:162]: Got Image: len=11239
[16:36:47][D][esp32_camera_web_server:191]: MJPG: 11239B 319ms (3.1fps)
[16:36:47][D][esp32_camera:162]: Got Image: len=11248
[16:36:47][D][esp32_camera_web_server:191]: MJPG: 11248B 322ms (3.1fps)
[16:36:47][D][esp32_camera:162]: Got Image: len=11227
[16:36:47][D][esp32_camera_web_server:191]: MJPG: 11227B 326ms (3.1fps)
[16:36:48][D][esp32_camera:162]: Got Image: len=11238
[16:36:48][D][esp32_camera_web_server:191]: MJPG: 11238B 311ms (3.2fps)
[16:36:48][D][esp32_camera:162]: Got Image: len=11251
[16:36:48][D][esp32_camera_web_server:191]: MJPG: 11251B 361ms (2.8fps)
[16:36:48][D][esp32_camera:162]: Got Image: len=11218
[16:36:48][D][esp32_camera_web_server:191]: MJPG: 11218B 332ms (3.0fps)
[16:36:49][D][esp32_camera:162]: Got Image: len=11240
[16:36:49][D][esp32_camera_web_server:191]: MJPG: 11240B 306ms (3.3fps)
[16:36:49][D][esp32_camera:162]: Got Image: len=11223
[16:36:49][D][esp32_camera_web_server:191]: MJPG: 11223B 316ms (3.2fps)
[16:36:49][D][esp32_camera:162]: Got Image: len=11238
[16:36:49][D][esp32_camera_web_server:191]: MJPG: 11238B 335ms (3.0fps)
[16:36:50][D][esp32_camera:162]: Got Image: len=11229
[16:36:50][D][esp32_camera_web_server:191]: MJPG: 11229B 300ms (3.3fps)
[16:36:50][D][esp32_camera:162]: Got Image: len=11230
[16:36:50][D][binary_sensor:036]: 'Sensore Presenza': Sending state ON
[16:36:50][D][esp32_camera:162]: Got Image: len=11238
[16:36:50][D][esp32_camera_web_server:191]: MJPG: 11238B 331ms (3.0fps)
[16:36:51][D][esp32_camera:162]: Got Image: len=11236
[16:36:51][D][esp32_camera_web_server:191]: MJPG: 11236B 310ms (3.2fps)
[16:36:51][D][esp32_camera:162]: Got Image: len=11230
[16:36:51][D][esp32_camera_web_server:191]: MJPG: 11230B 315ms (3.2fps)
[16:36:51][D][esp32_camera:162]: Got Image: len=12000
[16:36:51][D][esp32_camera_web_server:191]: MJPG: 12000B 331ms (3.0fps)
[16:36:52][D][esp32_camera:162]: Got Image: len=11244
[16:36:52][D][esp32_camera_web_server:191]: MJPG: 11244B 360ms (2.8fps)
[16:36:52][D][esp32_camera:162]: Got Image: len=11229
[16:36:52][I][esp32_camera_web_server:199]: STREAM: closed. Frames: 20
[16:36:52][D][esp32_camera:162]: Got Image: len=11207
cut
[16:37:57][D][esp32_camera:162]: Got Image: len=11169
[16:38:02][D][esp32_camera:162]: Got Image: len=11198
[16:38:02][D][esp32_camera_web_server:191]: MJPG: 11198B 31ms (32.3fps)
[16:38:02][D][esp32_camera:162]: Got Image: len=11232
[16:38:02][D][esp32_camera_web_server:191]: MJPG: 11232B 345ms (2.9fps)
[16:38:03][D][esp32_camera:162]: Got Image: len=11196
[16:38:03][D][esp32_camera_web_server:191]: MJPG: 11196B 320ms (3.1fps)
[16:38:03][D][esp32_camera:162]: Got Image: len=11245
[16:38:03][D][esp32_camera_web_server:191]: MJPG: 11245B 321ms (3.1fps)
[16:38:03][D][esp32_camera:162]: Got Image: len=11219
[16:38:03][D][esp32_camera_web_server:191]: MJPG: 11219B 309ms (3.2fps)
[16:38:04][D][esp32_camera:162]: Got Image: len=11166
[16:38:04][D][esp32_camera_web_server:191]: MJPG: 11166B 342ms (2.9fps)
[16:38:04][D][esp32_camera:162]: Got Image: len=11160
[16:38:04][D][esp32_camera_web_server:191]: MJPG: 11160B 338ms (3.0fps)
[16:38:04][D][esp32_camera:162]: Got Image: len=11179
[16:38:04][D][esp32_camera_web_server:191]: MJPG: 11179B 324ms (3.1fps)
[16:38:05][D][esp32_camera:162]: Got Image: len=11156
[16:38:05][D][esp32_camera_web_server:191]: MJPG: 11156B 405ms (2.5fps)
[16:38:05][D][esp32_camera:162]: Got Image: len=11166
[16:38:05][D][esp32_camera_web_server:191]: MJPG: 11166B 264ms (3.8fps)
[16:38:05][D][esp32_camera:162]: Got Image: len=11175
[16:38:05][D][esp32_camera_web_server:191]: MJPG: 11175B 333ms (3.0fps)
[16:38:06][D][esp32_camera:162]: Got Image: len=11171
[16:38:06][D][esp32_camera_web_server:191]: MJPG: 11171B 356ms (2.8fps)
[16:38:06][D][esp32_camera:162]: Got Image: len=11170
[16:38:06][D][esp32_camera_web_server:191]: MJPG: 11170B 330ms (3.0fps)
[16:38:06][D][esp32_camera:162]: Got Image: len=11152
[16:38:06][D][esp32_camera_web_server:191]: MJPG: 11152B 354ms (2.8fps)
[16:38:07][D][esp32_camera:162]: Got Image: len=11164
[16:38:07][D][esp32_camera_web_server:191]: MJPG: 11164B 328ms (3.0fps)
[16:38:07][D][esp32_camera:162]: Got Image: len=11152
[16:38:07][D][esp32_camera_web_server:191]: MJPG: 11152B 299ms (3.3fps)
[16:38:07][D][esp32_camera:162]: Got Image: len=11169
[16:38:07][D][esp32_camera_web_server:191]: MJPG: 11169B 320ms (3.1fps)
[16:38:08][D][esp32_camera:162]: Got Image: len=11157
[16:38:08][D][esp32_camera_web_server:191]: MJPG: 11157B 331ms (3.0fps)
[16:38:08][D][esp32_camera:162]: Got Image: len=11163
[16:38:08][D][esp32_camera_web_server:191]: MJPG: 11163B 357ms (2.8fps)
[16:38:08][D][esp32_camera:162]: Got Image: len=11166
[16:38:08][D][esp32_camera_web_server:191]: MJPG: 11166B 330ms (3.0fps)
[16:38:09][D][esp32_camera:162]: Got Image: len=11146
[16:38:09][D][esp32_camera_web_server:191]: MJPG: 11146B 320ms (3.1fps)
[16:38:09][D][esp32_camera:162]: Got Image: len=11153
[16:38:09][D][esp32_camera_web_server:191]: MJPG: 11153B 315ms (3.2fps)
[16:38:09][D][esp32_camera:162]: Got Image: len=11137
[16:38:09][D][esp32_camera_web_server:191]: MJPG: 11137B 332ms (3.0fps)
[16:38:10][D][esp32_camera:162]: Got Image: len=11153
[16:38:10][D][esp32_camera_web_server:191]: MJPG: 11153B 353ms (2.8fps)
[16:38:10][D][esp32_camera:162]: Got Image: len=11178
[16:38:10][D][esp32_camera_web_server:191]: MJPG: 11178B 356ms (2.8fps)
[16:38:10][D][esp32_camera:162]: Got Image: len=11175
[16:38:10][D][esp32_camera_web_server:191]: MJPG: 11175B 314ms (3.2fps)
[16:38:11][D][esp32_camera:162]: Got Image: len=11173
[16:38:11][D][esp32_camera_web_server:191]: MJPG: 11173B 330ms (3.0fps)
[16:38:11][D][esp32_camera:162]: Got Image: len=11165
[16:38:11][D][esp32_camera_web_server:191]: MJPG: 11165B 365ms (2.7fps)
[16:38:11][D][esp32_camera:162]: Got Image: len=11149
[16:38:11][D][esp32_camera_web_server:191]: MJPG: 11149B 305ms (3.3fps)
[16:38:12][D][esp32_camera:162]: Got Image: len=11144
[16:38:12][D][esp32_camera_web_server:191]: MJPG: 11144B 379ms (2.6fps)
[16:38:12][D][esp32_camera:162]: Got Image: len=11153
[16:38:12][I][esp32_camera_web_server:199]: STREAM: closed. Frames: 30
[16:38:12][D][esp32_camera:162]: Got Image: len=11156
[16:38:13][D][esp32_camera:162]: Got Image: len=11163
[16:38:13][D][esp32_camera:162]: Got Image: len=11159
[16:38:13][D][esp32_camera:162]: Got Image: len=11174
[16:38:14][D][esp32_camera:162]: Got Image: len=11170
[16:38:14][D][esp32_camera:162]: Got Image: len=11164
[16:38:14][D][esp32_camera:162]: Got Image: len=11192
[16:38:15][D][esp32_camera:162]: Got Image: len=11207
[16:38:15][D][esp32_camera:162]: Got Image: len=11193
[16:38:15][D][esp32_camera:162]: Got Image: len=11189
[16:38:16][D][esp32_camera:162]: Got Image: len=11193
[16:38:16][D][esp32_camera:162]: Got Image: len=11175
[16:38:16][D][esp32_camera:162]: Got Image: len=11177
[16:38:17][D][esp32_camera:162]: Got Image: len=11214
[16:38:17][D][esp32_camera:162]: Got Image: len=11194
[16:38:17][D][esp32_camera_web_server:191]: MJPG: 11194B 44ms (22.7fps)
[16:38:18][D][sensor:113]: 'cam-studio Uptime': Sending state 265115.96875 s with 0 decimals of accuracy
[16:38:18][D][esp32_camera:162]: Got Image: len=11186
[16:38:18][D][esp32_camera_web_server:191]: MJPG: 11186B 343ms (2.9fps)
[16:38:18][D][esp32_camera:162]: Got Image: len=11157
[16:38:18][D][esp32_camera_web_server:191]: MJPG: 11157B 327ms (3.1fps)
[16:38:18][D][esp32_camera:162]: Got Image: len=11146
[16:38:18][D][esp32_camera_web_server:191]: MJPG: 11146B 315ms (3.2fps)
[16:38:19][D][esp32_camera:162]: Got Image: len=11153
[16:38:19][D][esp32_camera_web_server:191]: MJPG: 11153B 328ms (3.0fps)
[16:38:19][D][esp32_camera:162]: Got Image: len=11203
[16:38:19][D][esp32_camera_web_server:191]: MJPG: 11203B 356ms (2.8fps)
[16:38:19][D][esp32_camera:162]: Got Image: len=11162
[16:38:19][D][esp32_camera_web_server:191]: MJPG: 11162B 306ms (3.3fps)
[16:38:20][D][esp32_camera:162]: Got Image: len=11193
[16:38:20][D][esp32_camera_web_server:191]: MJPG: 11193B 338ms (3.0fps)
[16:38:20][D][esp32_camera:162]: Got Image: len=11178
[16:38:20][D][esp32_camera_web_server:191]: MJPG: 11178B 312ms (3.2fps)
[16:38:20][D][esp32_camera:162]: Got Image: len=11177
[16:38:20][D][esp32_camera_web_server:191]: MJPG: 11177B 330ms (3.0fps)
[16:38:21][D][esp32_camera:162]: Got Image: len=11174
[16:38:21][D][esp32_camera_web_server:191]: MJPG: 11174B 355ms (2.8fps)
[16:38:21][D][esp32_camera:162]: Got Image: len=11196
[16:38:21][D][esp32_camera_web_server:191]: MJPG: 11196B 315ms (3.2fps)
[16:38:21][D][esp32_camera:162]: Got Image: len=11180
[16:38:21][D][esp32_camera_web_server:191]: MJPG: 11180B 325ms (3.1fps)
[16:38:22][D][esp32_camera:162]: Got Image: len=11171
[16:38:22][D][esp32_camera_web_server:191]: MJPG: 11171B 328ms (3.0fps)
[16:38:22][D][esp32_camera:162]: Got Image: len=11196
[16:38:22][D][esp32_camera_web_server:191]: MJPG: 11196B 347ms (2.9fps)
[16:38:22][D][esp32_camera:162]: Got Image: len=11165
[16:38:22][D][esp32_camera_web_server:191]: MJPG: 11165B 324ms (3.1fps)
[16:38:23][D][esp32_camera:162]: Got Image: len=11163
[16:38:23][D][esp32_camera_web_server:191]: MJPG: 11163B 355ms (2.8fps)
[16:38:23][D][esp32_camera:162]: Got Image: len=11172
[16:38:23][D][esp32_camera_web_server:191]: MJPG: 11172B 326ms (3.1fps)
[16:38:23][D][binary_sensor:036]: 'Sensore Presenza': Sending state OFF
[16:38:23][D][esp32_camera:162]: Got Image: len=11158
[16:38:23][D][esp32_camera_web_server:191]: MJPG: 11158B 368ms (2.7fps)
[16:38:24][D][esp32_camera:162]: Got Image: len=11167
[16:38:24][D][esp32_camera_web_server:191]: MJPG: 11167B 358ms (2.8fps)
[16:38:24][D][esp32_camera:162]: Got Image: len=11146
[16:38:24][D][esp32_camera_web_server:191]: MJPG: 11146B 310ms (3.2fps)
[16:38:24][D][esp32_camera:162]: Got Image: len=11166
[16:38:24][D][esp32_camera_web_server:191]: MJPG: 11166B 362ms (2.8fps)
[16:38:25][D][esp32_camera:162]: Got Image: len=11159
[16:38:25][D][esp32_camera_web_server:191]: MJPG: 11159B 306ms (3.3fps)
[16:38:25][D][esp32_camera:162]: Got Image: len=11172
[16:38:25][D][esp32_camera_web_server:191]: MJPG: 11172B 340ms (2.9fps)
[16:38:25][D][esp32_camera:162]: Got Image: len=11198
[16:38:25][D][binary_sensor:036]: 'Sensore Presenza': Sending state ON
[16:38:26][D][esp32_camera:162]: Got Image: len=11177
[16:38:26][D][esp32_camera_web_server:191]: MJPG: 11177B 340ms (2.9fps)
[16:38:26][D][esp32_camera:162]: Got Image: len=11180
[16:38:26][D][esp32_camera_web_server:191]: MJPG: 11180B 334ms (3.0fps)
[16:38:26][D][esp32_camera:162]: Got Image: len=11158
[16:38:26][D][esp32_camera_web_server:191]: MJPG: 11158B 357ms (2.8fps)
[16:38:27][D][esp32_camera:162]: Got Image: len=11146
[16:38:27][D][esp32_camera_web_server:191]: MJPG: 11146B 367ms (2.7fps)
[16:38:27][D][esp32_camera:162]: Got Image: len=11177
[16:38:27][D][esp32_camera_web_server:191]: MJPG: 11177B 346ms (2.9fps)
[16:38:27][D][esp32_camera:162]: Got Image: len=11176
[16:38:27][I][esp32_camera_web_server:199]: STREAM: closed. Frames: 30
[16:38:28][D][esp32_camera:162]: Got Image: len=11171
[16:38:28][D][esp32_camera:162]: Got Image: len=11186
[16:38:28][D][esp32_camera:162]: Got Image: len=11184
[16:38:29][D][esp32_camera:162]: Got Image: len=11227
[16:38:29][D][esp32_camera:162]: Got Image: len=11201
[16:38:29][D][esp32_camera:162]: Got Image: len=11192
[16:38:30][D][esp32_camera:162]: Got Image: len=11205
[16:38:30][D][esp32_camera:162]: Got Image: len=11166
[16:38:30][D][esp32_camera:162]: Got Image: len=11188
[16:38:31][D][esp32_camera:162]: Got Image: len=11186
At 16.36.46 I connected to the webcam IP address throug Chrome browser, ad I was able to stream
At 16.36.52 I closed the connection
At 16.38.02 I tried to configure the camera from motioneye using option Network camera
At 16.38.18 I tried to configure the camera from motioneye using option Simple MJPEG camera
In both cases I got request time out message from motioneye GUI. Apparently, connection is working but for some reason, motioneye does not recognize the device as a camera.
Thank you,
Indeed, I would made the same conclusion as esphome is “serving” images after the initial request.
Best thing to do now might be to open a issue in the motioneye github. You might also wann try to give a shout out in the esphome discord if there is some one usind the esp32 cam successful together with motion eye.
Looks like their is a pr already to make the camera web server working together with motioneye:
esphome:dev
← ayufan-research:esp32-camera-web-server
opened 10:03AM - 21 Nov 21 UTC
# What does this implement/fix?
It appears that MotionEye is picky about HTT… P protocol
and Connection: close. For non-chunked encoding it requires
to use HTTP/1.0 with a properly aligned boundaries of next
images.
## Types of changes
- [x] Bugfix (non-breaking change which fixes an issue)
**Related issue or feature (if applicable):**
- fixes https://github.com/ccrisan/motioneye/issues/2230
- fixes https://github.com/esphome/issues/issues/2705
- fixes https://github.com/esphome/feature-requests/issues/960#issuecomment-974774357
## Test Environment
- [x] ESP32
## Checklist:
- [x] The code change is tested and works locally.
steve_a
(Stefano Angioni)
November 22, 2021, 9:10am
8
Indeed, the workaround worked! Thank you for your help!
1 Like
steve_a
(Stefano Angioni)
November 26, 2021, 8:27am
9
Release 2021.11.2 of ESP Home fixed this issue
1 Like