TrackingFace Logo
TrackingFace
AI Campus Attendance
Hardware & IP8 min read

Connecting Dahua and Hikvision RTSP Cameras for Automated Attendance: Complete Guide

T
TrackingFace Engineering Team
Platform Systems Architecture
Published on 2026-09-22
Dahua and Hikvision commercial security cameras with RTSP PoE network setup
Dahua and Hikvision commercial security cameras with RTSP PoE network setup

Leveraging Existing CCTV Surveillance for Attendance

One of the most cost-effective advantages of TrackingFace is that schools do not need to purchase proprietary, expensive facial terminals. If your campus already has IP surveillance cameras manufactured by Dahua, Hikvision, Uniview, or any ONVIF-compliant vendor, you can seamlessly connect their video streams into the TrackingFace Local Processing Unit.

Understanding RTSP (Real-Time Streaming Protocol)

RTSP is the standardized industrial network protocol utilized by security cameras to deliver video streams over local area networks (LAN). To connect your camera to TrackingFace, you only need its local RTSP URL string, which encapsulates credentials, IP address, port (default 554), and channel path.

RTSP Stream URL Syntax Reference

Use the authoritative table below to construct the stream URL for your specific camera hardware:

Key Troubleshooting Step: Sub-Stream vs. Main-Stream

A frequent mistake during onboarding is routing the 4K Main-Stream directly into an AI inference loop. Main streams are optimized for long-term video archiving, consuming massive bandwidth and decoding overhead.

💡 High Performance Best Practice

For facial detection, configure the Sub-Stream (s1 or stream 2) at 1080p (1920x1080) or 720p (1280x720) at 15 to 25 FPS with H.264 video encoding. This delivers pinpoint facial clarity while maintaining blazing 30+ FPS detection speeds on affordable desktop hardware.

Step-by-Step Discovery with Dahua ConfigTool or Hikvision SADP

  1. Locate the Device IP: Download the vendor discovery tool (Dahua ConfigTool or Hikvision SADP) on a computer plugged into the same network router or PoE switch.
  2. Confirm Gateway Subnet: Ensure your Local Processing Unit PC has an IP address on the same subnet (e.g. 192.168.100.x) as the NVR or camera.
  3. Test in VLC Media Player: Open VLC → Media → Open Network Stream, paste your constructed RTSP URL, and verify that fluid video displays.
  4. Apply in TrackingFace Local Unit: Open the TrackingFace desktop software, navigate to Camera Settings, paste the URL, and click Test Stream.

For additional details on camera angles, height recommendations, and lighting tips, consult our dedicated Camera & IP Technical Guide.

📊 Standard RTSP Stream URL Syntaxes by Camera Manufacturer
Brand / ArchitectureStream TargetStandard RTSP URL FormatDefault Port
Dahua IP CameraSub-Stream (Recommended)rtsp://admin:password@192.168.1.100:554/cam/realmonitor?channel=1&subtype=1554
Dahua NVR (Channel 1)Sub-Stream via NVRrtsp://admin:password@192.168.1.50:554/unicast/c1/s1/live554
Hikvision IP CameraSub-Stream (Recommended)rtsp://admin:password@192.168.1.100:554/Streaming/Channels/102554
Hikvision NVR (Channel 2)Sub-Stream via NVRrtsp://admin:password@192.168.1.50:554/Streaming/Channels/202554
Uniview (UNV) CameraSub-Stream (Recommended)rtsp://admin:password@192.168.1.100:554/unicast/c1/s1/live554
Generic ONVIF CameraStream 1rtsp://admin:password@192.168.1.100:554/live/ch0554
Topic Tags:#Dahua RTSP#Hikvision Camera#NVR Setup#Camera IP Finder#RTSP Stream URL
T
Written by TrackingFace Engineering Team
Platform Systems Architecture

Dedicated to building resilient, privacy-first edge computer vision infrastructure that protects students and eliminates operational waste for schools worldwide.

Related Technical Handbooks

AI Technology

Automated Parent SMS & WhatsApp Alerts: The Secret to Modern School Safety and Trust

Read Guide
Campus Security

Stop Proxy Attendance: How Multi-Face Walk-Through AI Eliminates Buddy Punching for Good

Read Guide
Back to All Articles