Open Rudd-O opened 8 months ago
Don't forget that with HA API you normally have a real time encrypted connection, that may slow down a bit such transfers of bigger data packs.
By that much? I suspect something else beyond CPU execution time might be wrong.
Describe the problem you have/What new integration you would like
Current frame rates with 640x480 of an OV2640 are > 10 FPS when streaming with MJPEG web camera component, but 2.5 FPS when watching the same feed through HA. Rates remain high when both videos are playing, however when the MJPEG component ceases to stream, rates drop to 2.5 FPS.
Similar effect is seen with the OV5640, where the MJPEG streaming rate is 6.5 FPS average, and drops to 1.5 when streaming through HA API.
(These tests were performed using a Freenove device, although other ESP devices were tested with similar results. Freenove needed a custom component with minimal edits compared to the upstream component: https://github.com/Rudd-O/esphome_freenove_camera_component )
Please describe your use case for this integration and alternatives you've tried:
A higher frame rate would enable much more uses of OV cameras with ESP32 devices.
Additional context
No additional context. I do have this code to calculate the frame rate: