| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…eaming by handling stream failures with backoff and setting static wifi buffers
|
⚡ Static analysis result ⚡ 🔴 cppcheck found 1 issue! Click here to see details.Lines 1 to 5 in cf569c1 !Line: 0 - information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]
|
Sorry, something went wrong.
There was a problem hiding this comment.
This PR updates the ESP-IDF camera-streamer example to use the newer managed esp32-camera component and adjusts the RTSP streaming loop and system configuration to improve throughput and resiliency.
Changes:
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file| File | Description |
|---|---|
| sdkconfig.defaults | Adds PSRAM/WiFi/LWIP tuning defaults and adjusts camera/I2C-related settings. |
| partitions.csv | Switches the littlefs partition subtype from spiffs to littlefs. |
| main/main.cpp | Updates RTSP server startup flow, capture pacing/backoff logic, and adds memory/task monitoring output. |
| main/idf_component.yml | Moves to managed espressif/esp32-camera component dependency. |
| dependencies.lock | Updates component versions/hashes and adds esp32-camera/esp_jpeg to the lock. |
| .gitmodules | Removes the components/esp32-camera submodule entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| { | ||
| std::lock_guard<std::recursive_mutex> lock(server_mutex); | ||
| if (!rtsp_server || !rtsp_server->has_active_sessions()) { | ||
| wait_until(start + idle_capture_poll_period); | ||
| return false; | ||
| } | ||
| auto recommended_capture_period = rtsp_server->get_recommended_capture_period(); | ||
| auto capture_cooldown = rtsp_server->get_capture_cooldown(); | ||
| if (capture_cooldown > 0ms) { | ||
| wait_until(start + std::max(recommended_capture_period, capture_cooldown)); | ||
| return false; | ||
| } | ||
| } |
| std::span<const uint8_t> jpg_buf(_jpg_buf, _jpg_buf_len); | ||
| espp::JpegFrame image(jpg_buf); | ||
| std::lock_guard<std::recursive_mutex> lock(server_mutex); | ||
| rtsp_server->send_frame(image); | ||
| rtsp_server->send_frame(jpg_buf); | ||
| frames_streamed++; | ||
|
|
| @@ -263,10 +349,44 @@ | |||
| } | |||
| # | ||
| # ESP32S3-specific | ||
| # |
ESP-IDF Size Report for 'Camera Streamer'
FLASH uses app .bin size or json2 flash sum. RAM sums DRAM+IRAM via idf_size. Percentages shown when totals are available. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Motivation and Context
How has this been tested?
Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):
Types of changes
Checklist:
Software
Hardware