diff --git a/README.md b/README.md index 705766b..a14adba 100644 --- a/README.md +++ b/README.md @@ -7,20 +7,20 @@ Easy configuration through the web interface. Flashing this software on a ESP32CAM module will make it a **RTSP streaming camera** server, a **HTTP Motion JPEG streamer*** and a **HTTP image server**. -### RTSP +**RTSP** The RTSP protocol is an industry standard and allows many CCTV systems and applications (like for example [VLC](https://www.videolan.org/vlc/)) to connect directly to the ESP32CAM camera stream. It is also possible to stream directly to a server using [ffmpeg](https://ffmpeg.org). This makes the module a camera server allowing recording and the stream can be stored on a disk and replayed later. The URL is rtsp://<ip address of the module>:554/mjpeg/1 -### HTTP Motion JPEG +**HTTP Motion JPEG** The HTTP JPEG streamer makes it possible to watch the camera stream directly in your browser. The URL is http://<ip address of the module>/stream -### HTTP image server -The HTTP Image server returns an HTTP jpeg image of the camera. +**HTTP image** +The HTTP Image returns an HTTP JPEG image of the camera. The URL is http://<ip address of the module>/snapshot @@ -45,6 +45,8 @@ This software provides a **configuration web server**, that can be used to: - Select the image size, - Select the frame rate, - Select the JPEG quality +- Enable the use of the PSRAM +- Set the number of frame buffers - Configure the camera options: - Brightness - Contrast @@ -259,23 +261,55 @@ Make sure the power is 5 volts and stable, although the ESP32 is a 3.3V module, If not stable, it has been reported that restarts occur when starting up (probably when power is required for WiFi). The software disables the brown out protection so there is some margin in the voltage. -### PSRAM +### PSRAM / Buffers / JPEG quality Some esp32cam modules have additional ram on the board. This allows to use this ram as frame buffer. -Detecting and using this special RAM is handled automatically. The availability of PSRAM can be seen in the HTML status overview. -### Camera modules +Not all the boards are equipped with PSRAM: + +| Board | PSRAM | +|--- |--- | +| ESP32CAM | Yes | +| ESP32CAM (USB-C) | No | +| AI THINKER | Yes | +| TTGO T-CAM | No | +| M5 STACK| | No | +| WROVER KIT | Yes | + +Depending on the image resolution, framerate and quality, the PSRAM must be enabled and/or the number of frame buffers increased to keep up with the data generated by the sensor. +There are (a lot of?) boards around with faulty PSRAM. If the camera fails to initialize, this might be a reason. See on [Reddit](https://www.reddit.com/r/esp32/comments/z2hyns/i_have_a_faulty_psram_on_my_esp32cam_what_should/). +In this case disable the use of PSRAM in the configuration and do not use camera modes that require PSRAM, + +For the setting JPEG quality, a lower number means higher quality. +Be aware that a very high quality (low number) can cause the ESP32 cam to crash or return no image. + +The default settings are: + +- No PSRAM + - SVGA (800x600) + - 1 frame buffer + - JPEG quality 12 + +- With PSRAM + - UXGA (1600x1200) + - 2 frame buffers + - JPEG quality 10 + +### Camera module Be careful when connecting the camera module. Make sure it is connected the right way around (Camera pointing away from the board) and the ribbon cable inserted to the end before locking it. ## Credits -esp32cam-ready depends on PlatformIO, Bootstrap5 and Micro-RTSP by Kevin Hester. +esp32cam-rtsp depends on PlatformIO, Bootstrap 5 and Micro-RTSP by Kevin Hester. ## Change history +- March 2023 + - Added options to set PSRAM / Frame buffers + - Added JPEG Motion streaming - Feb 2023 - Added additional settings for camera configuration - Nov 2022 diff --git a/html/index.html b/html/index.html index 7276492..f09319b 100644 --- a/html/index.html +++ b/html/index.html @@ -26,6 +26,10 @@
Not connected to an access point. Consider configuring the access point.
+Connected to the access point
+Camera was initialized successfully!
+Failed to initialize the camera!
-Result: {{CameraInitResultText}}
+Result: {{CameraInitResult}} ({{CameraInitResultText}})
Please check hardware or correct the camera settings and restart.
- +The configuration has been changed.
It is recommended to restart the device.
Not connected to an access point. Consider configuring the access point.
Connected to the access point
Camera was initialized successfully!
Failed to initialize the camera!
Result: {{CameraInitResultText}}
Please check hardware or correct the camera settings and restart.
The configuration has been changed.
It is recommended to restart the device.
Result: {{CameraInitResult}} ({{CameraInitResultText}})
Please check hardware or correct the camera settings and restart.
The device is restarting.
In some cases, the device requires a hard reset (power cycle).
If this page takes longer than a minute, consider performing a power cycle.