Go to file
John Varghese 135de98f81 web_config.cpp
2025-06-03 20:23:50 +05:30
2025-06-03 20:23:50 +05:30
2025-06-03 17:36:54 +05:30

ESP32-CAM | ONVIF | DVR/NVR Stream and Recording

ESP32-CAM ONVIF RTSP Camera

Platform License

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-CAMs 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_service endpoint (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

  1. Clone this repository
  2. Edit Wi-Fi credentials in the source code
  3. Flash to your ESP32-CAM using Arduino IDE or PlatformIO
  4. 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!

Description
No description provided
Readme MIT 347 KiB
Languages
C++ 56.6%
JavaScript 17.5%
HTML 16.2%
CSS 7.3%
C 2.4%