forked from external-repos/ESP32-CAM-ONVIF
e8989db26a51d37d8aa1217103314781ad656c09
ESP32-CAM | ONVIF | DVR/NVR Stream and Recording
ESP32-CAM ONVIF RTSP Camera
Overview
ESP32-CAM ONVIF RTSP Camera is an open-source firmware project that transforms your affordable ESP32-CAM module into a network camera compatible with professional NVR/DVR systems, including Hikvision, Dahua, and other ONVIF-compliant solutions.
This project brings together:
- RTSP streaming (MJPEG) for real-time video
- Minimal ONVIF support for device discovery, stream URI reporting, and basic integration with security recorders
The goal is to make ESP32-CAM modules plug-and-play with mainstream video surveillance systems, while remaining lightweight and efficient.
Features
- 📡 ONVIF Discovery: Your ESP32-CAM will appear as a discoverable camera on ONVIF-compatible NVRs/DVRs.
- 🎥 RTSP Streaming: Real-time MJPEG streaming for live view and recording.
- ⚡ Lightweight: Designed for ESP32-CAM’s limited resources.
- 🛠️ Easy Setup: Simple Wi-Fi configuration and deployment.
- 🔒 Open Source: MIT-licensed for personal and commercial use.
Roadmap
- Minimal ONVIF WS-Discovery responder
- ONVIF
/onvif/device_serviceendpoint (GetStreamUri, GetCapabilities) - RTSP video streaming (MJPEG)
- Web-based configuration interface
- Optional SD card recording
- Motion detection (future)
- Support for more ONVIF features (profiles, device info, etc.)
Quick Start
- Clone this repository
- Edit Wi-Fi credentials in the source code
- Flash to your ESP32-CAM using Arduino IDE or PlatformIO
- Connect your NVR/DVR and discover the camera via ONVIF, or add the RTSP stream manually
Compatibility
- Tested hardware: AI-Thinker ESP32-CAM
- NVR/DVR compatibility: Hikvision, Dahua, and most ONVIF-compliant recorders (MJPEG stream)
- Limitations: MJPEG only (no H.264); some recorders may require H.264 for recording
Screenshots
Coming soon!
Contributing
Pull requests, issues, and feature suggestions are welcome!
See CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License.
Acknowledgments
- Micro-RTSP for RTSP streaming on ESP32
- ONVIF community for protocol documentation and inspiration
Stay tuned for updates, features, and documentation as the project evolves!
Languages
C++
56.6%
JavaScript
17.5%
HTML
16.2%
CSS
7.3%
C
2.4%