ESP32 Camera Stream and Save to WebServer

kian79
Posts: 30
Joined: Thu Jun 13, 2019 3:27 am

ESP32 Camera Stream and Save to WebServer

Postby kian79 » Wed Oct 23, 2019 7:58 am

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.

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: ESP32 Camera Stream and Save to WebServer

Postby mikemoy » Wed Oct 23, 2019 12:37 pm

Yes to both questions

kian79
Posts: 30
Joined: Thu Jun 13, 2019 3:27 am

Re: ESP32 Camera Stream and Save to WebServer

Postby kian79 » Sat Oct 26, 2019 11:42 am

Are there any examples/tutorials online that I can refer to? I don't know what is the correct google search keywords to use.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: ESP32 Camera Stream and Save to WebServer

Postby PeterR » Fri Nov 01, 2019 8:17 pm

'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.
& I also believe that IDF CAN should be fixed.

kian79
Posts: 30
Joined: Thu Jun 13, 2019 3:27 am

Re: ESP32 Camera Stream and Save to WebServer

Postby kian79 » Tue Nov 19, 2019 6:55 am

Thanks PeterR!

Who is online

Users browsing this forum: Bing [Bot] and 116 guests