rzeldent / esp32cam-rtsp

Simple RTSP (streaming image) server for the ESP32CAM. Easy configuration and monitoring through the web interface.
630 stars 111 forks source link

Setting WIFI credentials from code #125

Open alkhachatryan opened 4 months ago

alkhachatryan commented 4 months ago

Hi! For first I want to thank you for this brilliant project. There are few projects in a web for chip programming which made like this one. Really good, thank you.

But I have two questions:

  1. Isn't it possible to set wifi credentials from code to immediatelly connect to that network and then start to steram? Like in a default CameraWebServer example from arduino ide? I mean I don't need to set AP, then manually config it to set wifi cerdentials so after it esp could connect to my network. The meaning of that - I want to use this code in 30 esp chips for builiding my DIY surviellance system and I dont want to manually set that config for 30 esps. Like I have a working code and what I do - just burn it in all chips I have.

  2. Isn't it possible to speed-up somehow RTSP? JPEG streaming works faster, I mean there is few delay between frames, while frame delays for RTSP are about a whole second. https://github.com/rzeldent/esp32cam-rtsp/assets/22774727/3a62843a-baa2-48b3-9891-7f30c96ef63b

RTSP speed up is not so critical, but wifi auto connection is. I use Esp32 AI Thinker ordinary chip. Thanks

rzeldent commented 3 months ago

By default the module will have an name and behaved like an access point. You can already connect to it (with the default password) and stream from there!

The Jpeg stream just sends the frames without any timing. RTS requires timing so this might be sent more often by editing the RTSP library...