Interactive RTSP URL Builder
Select your camera brand and generate live URLWhy "Test" is Green but Stream is Black?
Top Dahua & NVR onboarding errors & fixesDahua cameras ship with H.265 or Smart Codec (H.264+/H.265+) enabled by default. FFMPEG and OpenCV cannot decode Dahua proprietary Smart Codecs in real time, causing a blank screen with 0 FPS.
If your camera is plugged into the back of an NVR, the NVR isolates that camera on an internal virtual subnet. The PC on your office Wi-Fi/LAN cannot reach the camera IP directly.
channel=1 (or 2, 3), OR plug the camera into an external Gigabit switch on the same LAN as the PC./unicast/c1/s0/live is Uniview syntax. Dahua accepts port 554 connection (causing the green "Ping" badge), but rejects the stream with 404 Not Found.
/cam/realmonitor?channel=1&subtype=0.Multi-Camera & NVR Architecture: One NVR IP vs. Multiple Cameras
How multiple cameras connected to the same NVR are addressed, managed, and routed to TrackingFace Gate Units192.168.1.100). Cameras plugged into the PoE ports on the rear of the NVR live on the NVR's private, internal virtual switch (e.g. 10.1.1.X), which is isolated and cannot be reached directly from your Gate PC.Instead, the NVR acts as a single gateway multiplexing and streaming all camera feeds over its single IP address. You differentiate Camera 1 and Camera 2 by changing the Channel Number in the RTSP path (not the IP address).
| Brand / System | Camera 1 (Entrance Gate) | Camera 2 (Exit Gate) | Channel Syntax Rule |
|---|---|---|---|
| Hikvision / HiLook | .../Streaming/Channels/102 | .../Streaming/Channels/202 | Channel * 100 + Stream (101=Ch1 Main, 102=Ch1 Sub, 202=Ch2 Sub) |
| Dahua / Amcrest / CP PLUS | .../cam/realmonitor?channel=1&subtype=1 | .../cam/realmonitor?channel=2&subtype=1 | channel=X&subtype=1 (subtype=0 Main, 1 Sub) |
| Uniview (UNV) | .../unicast/c1/s1/live | .../unicast/c2/s1/live | c{channel}/s1 (s0 Main, s1 Sub) |
| Tiandy / TVT / Sunell | .../live/sub_ch0 | .../live/sub_ch1 | Zero-indexed: sub_ch{channel-1} |
Both cameras plug directly into the PoE ports on the back of the NVR. Only the NVR connects to the school router/switch.
- IP Scheme: 1 IP address on LAN (e.g.
192.168.1.100). - Gate PC Config: Gate 1 connects to Channel 1, Gate 2 connects to Channel 2.
- Pros: Zero extra network switches needed; NVR records 24/7 uninterrupted.
- Requirement: Must use Sub-Stream (subtype=1) to prevent overloading the NVR processor.
Cameras plug into an external PoE switch connected to the school LAN. NVR also connects to the same switch to record over LAN.
- IP Scheme: Each camera gets its own unique IP (e.g.
192.168.1.51,192.168.1.52). - Gate PC Config: Each Gate PC connects directly to its assigned camera IP on Channel 1.
- Pros: Direct camera feed with zero latency; no load on the NVR; maximum scaling.
- Requirement: Requires a dedicated PoE Gigabit switch.
TrackingFaceGate.exe on PC 1 configured with Channel 1 Sub-stream, and run TrackingFaceGate.exe on PC 2 configured with Channel 2 Sub-stream. Both units operate concurrently in real time without interfering with each other or the NVR storage!Recommended Gate Computer Specifications
Benchmark standards to avoid frame dropping and multi-camera lagIf your gate software shows an "HTTP 403 / HTML page" error, expand ⚙️ Advanced: Cloud Server URL on the setup screen and set the endpoint to https://trackingface.vercel.app/api.