Direct answer
Monitor at least four layers: endpoint reachability, RTSP method success, media packet arrival and decoded-frame freshness. A TCP connection alone is not a healthy camera view.
Why this happens
A camera can accept port 554 while returning 401, advertising the wrong track, sending no packets or delivering frames that the decoder cannot use.
Reliable camera viewing depends on bounded retries, observable health and a deliberate main/substream policy.
A controlled test
Set different intervals and timeouts for lightweight reachability and full media probes so monitoring does not become a load test.
Change one variable at a time. Keep the camera model, firmware, endpoint and account recorded; then test network reachability, protocol response, media transport and decoding as separate layers.
Use a dedicated view-only account and a trusted local diagnostic tool. Redact credentials, private addresses and identifying data before sharing output.
Diagnostic sequence
| Check | Action | Evidence of progress |
|---|---|---|
| Network | Check route and service acceptance. | The host and RTSP service respond. |
| Protocol | Verify an authorized DESCRIBE or equivalent flow. | A valid media resource is advertised. |
| Media | Track bytes, packets and timestamp progress. | The stream is not stalled. |
| Decode | Track time since last good frame. | Operators can actually see current video. |
Evidence to keep
Expose health state, last transition, last good frame, failure reason and retry count. Alerts should identify the failed layer.
Boundary and safety note
Do not store credentials in monitoring labels or export full camera URLs to third-party telemetry by default.
For remote viewing, use a managed VPN instead of exposing RTSP or camera administration ports directly to the public internet.
SmartRTSP
SmartRTSP is a camera-focused RTSP and ONVIF viewer for Apple devices, Windows and Android. It fits direct viewing, discovery and multi-camera checks; keep a dedicated NVR or VMS when continuous recording, evidence export or centralized enterprise controls are required.
Frequently asked questions
Is an open RTSP port a valid health check?
It proves only that a connection was accepted, not that an authorized media stream is usable.
How often should a full probe run?
Often enough for the operational objective but not so often that it consumes camera sessions or bandwidth.
What is frame freshness?
The elapsed time since a valid decoded frame, which directly reflects whether the view is current.
Primary references
- IETF RFC 7826 — Real-Time Streaming Protocol 2.0
- FFmpeg — RTSP protocol options and examples
- CISA — Secure by Design guidance
Related SmartRTSP guide
Open related guideBuild health checks around session setup, last good frame, media continuity, clock and reconnect behavior.