A comprehensive tool for analyzing Network Video Recorder (NVR) devices and their connected cameras.
- Multi-brand support: Automatically detects or manually specifies NVR brand (Dahua, Hikvision, ONVIF)
- Multiple information gathering methods:
- Direct API calls to NVR configuration endpoints
- ONVIF protocol for standardized access
- RTSP stream analysis for reliable fallback
- Camera screenshot capture: Saves a snapshot from each working camera
- Overlay text extraction: Uses AI to extract camera names from video overlays
- Accurate bitrate calculation: Captures short video segments to calculate actual bitrate
- Comprehensive reporting: Generates CSV reports and detailed logs
- Multi-NVR scanning: Can scan multiple NVRs in a single run
# Make the script executable
chmod +x nvr-analyzer.py
# Install dependencies
./nvr-analyzer.py --install-deps
# Run the analyzer
./nvr-analyzer.py --ips 192.168.1.100 --username admin --password your_password
For detailed documentation, see nvr-analyzer.md.
- Python 3.6 or higher
- FFmpeg (required for stream analysis and screenshot capture)
- Python libraries:
- requests
- pillow (optional, for image resolution detection)
This tool is provided as-is with no warranty. Use at your own risk.