jameszah / ESP32-CAM-Video-Recorder

Video Recorder for ESP32-CAM with http server for config and ftp (or http) server to download video
GNU General Public License v3.0
443 stars 101 forks source link

get configured fps api on web server #40

Closed quockhanh1198 closed 2 years ago

quockhanh1198 commented 3 years ago

Hi @jameszah , how can I get configured fps api by http_get when I set in arduino code ?, thank you so much !

jameszah commented 3 years ago

You want a particular frames-per-second to be sent to your computer web browser?

In settings.h there is the line

int stream_interval = 333; // milliseconds between frames delivered during the live stream - 333 is 3 fps

You can modify that to 200 for 5 fps, etc. It can use up resources that were going to recording, but you can experiment with it.

quockhanh1198 commented 3 years ago

Thanks for your reply, so how can I only stream on browser without store video or record video from SD card, bro ?

jameszah commented 3 years ago

If you just want streaming, you can use the free program that comes with the esp32 arduino library.

image

Here is a good introduction video and website:

https://randomnerdtutorials.com/esp32-cam-video-streaming-web-server-camera-home-assistant/