https://github.com/jackgruber/esp32-timelapse-webcam
ESP32-CAM with webinterface as wireless camara or for taking timelapse with Webinterface
https://github.com/jackgruber/esp32-timelapse-webcam
esp32 esp32-cam platformio sd-card stream time-lapse time-lapse-imaging timelapse timelapse-image
Last synced: 8 months ago
JSON representation
ESP32-CAM with webinterface as wireless camara or for taking timelapse with Webinterface
- Host: GitHub
- URL: https://github.com/jackgruber/esp32-timelapse-webcam
- Owner: JackGruber
- Created: 2020-03-29T11:13:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-25T13:15:32.000Z (almost 5 years ago)
- Last Synced: 2025-02-06T23:06:42.894Z (8 months ago)
- Topics: esp32, esp32-cam, platformio, sd-card, stream, time-lapse, time-lapse-imaging, timelapse, timelapse-image
- Language: C++
- Homepage:
- Size: 950 KB
- Stars: 14
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP32 Timelapse / Webcam
ESP32 Cam project for timelapse and streaming.
The project was started with the code of [bitluni/ESP32CamTimeLapse](https://github.com/bitluni/ESP32CamTimeLapse).
## Functions
* Webpage
* Rotate Img / Stream
* Changed values are saved permanently
* To reset saved settings to default use webpage or restart ESP32 twice within 10 seconds## Configure
* Rename `include\wifi_credentials.example` to `include\wifi_credentials.h` and enter your WiFi credentials in the file.
* Remove the comment for your board in `include\pins_camera.h` and comment all other boards## Create MP4 from timelapse JPG
Converting the images to a video you can use [ffmpeg](https://www.ffmpeg.org/download.html) encoder.
```
ffmpeg.exe -r 60 -f image2 -i "C:\Temp\timelapse\pic%05d.jpg" -codec libx264 -crf 23 -pix_fmt yuv420p -vf "transpose=1" "C:\Temp\timelapse\timelapse.mp4"
```### Parameters
* `-r ` set the framerate (fps)
* `-f ` force input format
* `-i ` inputfile, `%05d` means that all files from 00000 to 99999 are used
* `-codec ` Set the video codec
* `-crf ` CRF scale is 0–51, where 0 is lossless, 23 is the default, and 51 is worst quality possible
* `-pix_fmt ` specifies the pixel format
* `-start_number ` defines the start number, if not to be started at picture 0
* `-vframes ` specifies the number frames/images in the video, if not all images should be used
* `-vf "transpose="` Rotating: 0 = 90° Counterclockwise, 1 = 90° Clockwise, 2 = 90° Counterclockwise, 3 = 90° Clockwise and Vertical Flip. Use `-vf "transpose=2,transpose=2"` for 180 degrees## ToDO
* Add NTP time sync## Links
* [Original GitHub repro ESP32CamTimeLapse](https://github.com/bitluni/ESP32CamTimeLapse)
* [Project page from the ESP32CamTimeLapse](https://bitluni.net/esp32camtimelapse)
* [FFmpeg download](https://www.ffmpeg.org/download.html)