Page 1 of 1

ESP32 Camera Stream and Save to WebServer

Posted: Wed Oct 23, 2019 7:58 am
by kian79
Hi all,

I have a ESP-EYE and have tried the default Camer Web Server example on Arduino IDE. My question is, is it possible to save the video on the web server?

My application is as follows:
When a motion sensor is triggered, the ESP32 camera is activated and starts streaming to a webserver which records for the next 5 minutes and go back to sleep.

On a side note, is it even possible to save video locally on a SDCard connected to the ESP32?

Thanks in advance.

Re: ESP32 Camera Stream and Save to WebServer

Posted: Wed Oct 23, 2019 12:37 pm
by mikemoy
Yes to both questions

Re: ESP32 Camera Stream and Save to WebServer

Posted: Sat Oct 26, 2019 11:42 am
by kian79
Are there any examples/tutorials online that I can refer to? I don't know what is the correct google search keywords to use.

Re: ESP32 Camera Stream and Save to WebServer

Posted: Fri Nov 01, 2019 8:17 pm
by PeterR
'Webcam' + 'server' revealed a few RPI tutorials. Then you will need to adapt from whatever RPI's uses as its client and the ESP HTTP client. I am guessing that most tutorials will use an AWS style server.

The simplest examples will have you HTTP POST to a webserver. To view the video you would HTTP GET. Conceptually this is no different from saving a value and then retrieving the value and/or text file. Only MIME and size have changed & binary encoding of course. Live streaming will be more complicated.

EDIT: I'm being overly focused on HTTP, going through a RESTful phase! FTP upload would be another approach.

Re: ESP32 Camera Stream and Save to WebServer

Posted: Tue Nov 19, 2019 6:55 am
by kian79
Thanks PeterR!