RTSP Camera Monitoring
PingZen checks IP cameras and video recorder (NVR) channels over RTSP, the protocol the camera streams its video with. A ping only proves that the camera has power and a network. An RTSP check proves that it accepts your login and has a stream at that address, and, if you turn it on, that the stream is actually delivering frames. An overview for camera and recorder owners is on IP camera and NVR monitoring.
What a Check Does
- Every check sends RTSP
OPTIONSandDESCRIBE. No video is transferred. The result says whether the camera answers, whether it accepts the login, and whether there is a stream at that path, plus its codec and resolution. - Login: Basic and Digest. Addresses are
rtsp://(port 554 by default) andrtsps://(port 322 by default; the camera’s certificate is not verified). - Video check, if you turn it on: every 5, 15 or 60 minutes (15 for a new camera) the checker reads up to 10 seconds of the stream over TCP, inside the RTSP connection, and records frames per second, bitrate, keyframe interval, packet loss and delivery stalls. A bad sample counts only when the next sample confirms it. How this is measured without decoding the video is in the RTSP monitoring write-up.
- Frame preview: on the monitor page you can load one keyframe of the stream. Your browser decodes it; PingZen does not store it. It works for H.264 for now and never appears on status pages or in alerts.
- Live minute: “Watch 1 min” on the monitor page shows the camera’s own video for one minute, passed on by the checker that checks the camera. Your browser decodes it; PingZen records nothing. It works for H.264 and checkers 0.9.16 or newer, and colleagues who open the camera during that minute watch the same one.
Bitrate and the Camera Frame
Cameras get a Bitrate column in the monitors list: the last video-check sample, and you can sort by it. The column appears when the monitors list has cameras and fills in only for cameras with the video check on.
Statuses
| What happened | Status |
|---|---|
| Connection refused, the address does not resolve, the connection dropped | Down |
| No answer within the timeout | Timeout |
| The camera answers 403, 404 or 454, or the stream description has no video | Down |
| During the video check: the stream closed, no frames arrived, or the camera refuses to send video over TCP (461 Unsupported Transport) | Down |
| The password was rejected (401) | Degraded, and logins pause for an hour |
| The camera is busy (453, 503) | Degraded |
| During the video check: delivery stalled for more than 2 s, a gap in the video, packet loss above 1%, frames per second below half of what the camera declares | Degraded |
| One of Your own limits is broken (frames per second, keyframe interval, bitrate), or the video format changed with Warn if the video format changes on | Degraded |
Degraded alerts come only if the alert rule has the Degradation (DEGRADED) trigger on; Service Down (DOWN) covers the rest, Timeout included.
Where the Check Runs
- Cameras are checked by checkers only, never by the PingZen server. Each camera has exactly one checker.
- A camera with a public address can use a public checker: Moscow, Novosibirsk or Minsk.
- A camera inside a local network (
192.168.x.x,10.x.x.x, a name likenvrornvr.lan) needs a private checker in that network. Public checkers refuse private addresses. - A private checker runs in Docker: mDNS names (
.local) do not resolve there, andlocalhostis the container itself. See Docker network limits. - A checker checks cameras from version 0.9.8. The form offers only the checkers that can.
Passwords and Lockouts
- PingZen logs in at most once per check and closes the session afterwards.
- After a rejected password, PingZen stops logging in to that device (address and port) with that login for an hour, so the camera does not lock the account after several attempts. Saving a new password clears the pause at once.
- The login and password are stored in the PingZen database as you enter them, because every check needs them. Give PingZen a separate view-only account on the camera, not the administrator.
Adding a Camera
- Monitors → Create Monitor, then paste the stream link (
rtsp://…) or pick RTSP. - Under How to add, choose One camera, I have a link or Recorder (NVR).
- For Hikvision, Dahua, Reolink and Tapo, pick the Manufacturer and PingZen fills in the video path. For any other camera choose Other and enter the Video path from its manual.
- Enter the Login and Password. A login inside the link is moved into these fields.
- Pick the checker, then Check the connection.
- Under How often to check, set Camera availability and Video quality (Do not check turns the video check off). The video check uses the substream by default: it is lighter for the camera.
Stream Paths PingZen Fills In
N is the channel number: 1 for a single camera, the channel for a recorder. The main stream is full quality; the substream is lighter and almost always H.264.
| Manufacturer | Main stream | Substream |
|---|---|---|
| Hikvision | /Streaming/Channels/N01 | /Streaming/Channels/N02 |
| Dahua | /cam/realmonitor?channel=N&subtype=0 | /cam/realmonitor?channel=N&subtype=1 |
| Reolink | /h264Preview_0N_main | /h264Preview_0N_sub |
| Tapo | /stream1 | /stream2 |
For example, Hikvision’s first channel on the main stream is rtsp://host:554/Streaming/Channels/101. Reolink uses a two-digit channel: h264Preview_01_main, h264Preview_12_sub. The full address with the login, for VLC or another recorder, is built by the RTSP URL generator.
Checking a Stream by Hand
If you are not sure about the address or the password, check the stream from a computer in the same network as the checker with ffprobe from FFmpeg:
ffprobe -rtsp_transport tcp \
"rtsp://user:password@camera_address:554/Streaming/Channels/101"A Stream #0:0: Video: h264 ... line means the stream is alive. 401 Unauthorized is a wrong login or password, 404 Not Found a wrong path.
Video Recorders (NVR)
- Recorder (NVR) adds 2 to 64 channels at once, all on one checker. Each channel becomes its own monitor and counts toward the monitor limit.
- Channel numbers are filled in for Hikvision, Dahua and Reolink.
- Channels of a recorder are checked every 5 minutes unless you choose otherwise.
- When the whole recorder stops answering, you get one alert, «Recorder … is unreachable — N of M channels not answering», instead of one per channel. Incidents, uptime and webhooks stay per channel.
Import from CSV
- A file can hold up to 500 rows and 1 MB. The login and password can sit in the link (
rtsp://user:pass@host/…); they are moved into the login fields. - The checker is chosen for every camera. A local address goes only to a private checker; a row with no suitable checker fails with the reason.
- Repeated names get «(2)», «(3)». See CSV import for the file format.
Common Problems
| What you see | Why | What to do |
|---|---|---|
| Timeout, or Down: connection refused | The checker cannot reach the camera: the RTSP port is not forwarded, or the camera is in a local network | For a camera in a local network, run a private checker; for a public IP, check that port 554 is forwarded |
Down: the address does not resolve (nvr.local), or a stream on the checker’s own host refuses the connection | Inside Docker, mDNS names (.local) do not resolve and localhost is the container itself | Enter the camera’s IP address, or the host’s LAN address for a stream on that host; see Docker network limits |
| Degraded, password rejected (401), logins paused | Wrong login or password, for example the camera’s password was changed | Save the new password in the monitor — the pause lifts at once |
| Down with 404 or 454 | Wrong stream path or channel number | Pick the manufacturer and stream, or take the path from the camera’s manual |
| Down with SETUP 461 after a video check | The camera sends video only over UDP, and PingZen reads it over TCP | Set Video quality to Do not check: the availability check keeps working |
| Degraded, camera busy (453, 503) | The camera is overloaded or out of simultaneous connections | Close extra clients, or check the substream |
| The camera frame does not load | The stream is H.265, and the frame preview works for H.264 only | Switch the monitor to the substream |
Limits
- The shortest interval is 60 seconds: every check is a login to the camera.
- On the Free plan every camera and every recorder channel is a monitor, up to 55; one checker per monitor; up to 10 private checkers.
- Cameras that send video only over UDP are not supported yet: the availability check works, but the video check reports the camera down and the frame preview does not load.
- Not supported: ONVIF, recording, non-stop live video, PTZ control, a frame preview or a live minute for H.265.