Skip to main content

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.

Check your IP cameras every minute
Free, no card: up to 55 monitors, alerts in Telegram or by email.
Add a camera
Layers of a camera checkFive layers of checks from cheap to deep, and what checks each one in PingZen: ping replies, port 554 is open, RTSP answers 200 OK, yet the stream has zero frames per second and there is no picture. Only the video sample sees it.from cheap checks to deep ones ↓Ping (ICMP)ping monitorrepliesPort 554 (TCP)TCP monitoropenRTSP: OPTIONS, DESCRIBERTSP · every check200 OKStream: frames, bitrateRTSP · video sample0 fpsPictureframe preview, on demandno frame
Ping, the port and even the RTSP answer can all look fine after the video is gone. Only the stream itself shows it.

What a Check Does

  • Every check sends RTSP OPTIONS and DESCRIBE. 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) and rtsps:// (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.
An RTSP session between a checker and a cameraThe availability check sends OPTIONS and DESCRIBE: the camera asks for a password with a 401, then describes its stream in SDP. The video sample adds SETUP and PLAY, receives RTP packets for a few seconds and closes the session with TEARDOWN.Availability check · at most once a minuteVideo sample · 3–10 s, every 5–60 minCheckerCameraOPTIONS200 OKDESCRIBE401 · password neededDESCRIBE + login200 OK · SDP: codec, resolutionSETUP200 OK · sessionPLAYRTP packets · 3–10 s TEARDOWN
The availability check needs only OPTIONS and DESCRIBE — no video moves. The video sample opens a real stream for 3–10 seconds and closes it right away.

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.

The Bitrate column, heaviest streams first. A paused camera and a down camera sit at the end with “—”. Demo data, addresses hidden.
A camera frame on its monitor page. For publishing we blurred the date, the camera number, a QR code, a wall sign and a screen; PingZen shows the frame as it is and never stores it.

Statuses

What happenedStatus
Connection refused, the address does not resolve, the connection droppedDown
No answer within the timeoutTimeout
The camera answers 403, 404 or 454, or the stream description has no videoDown
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 declaresDegraded
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 onDegraded

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 like nvr or nvr.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, and localhost is the container itself. See Docker network limits.
  • A checker checks cameras from version 0.9.8. The form offers only the checkers that can.
Where to check cameras fromTop: the camera has a public IP, port 554 is forwarded on the router, and a public PingZen checker checks it from the internet over RTSP with a password. Bottom: a private checker sits in the local network next to the cameras, checks them over RTSP and opens only an outbound connection to PingZen, which sends the notifications.A camera with a public IPPubliccheckerRouterforward :554CameraRTSP + loginchecked from the internet, with a passwordA checker next to the camerasLocal networkPingZennotificationsPrivatecheckerCamerasrecorderRTSPoutbound only
Two equal placements: a public checker checks a public-IP camera with a password, a private checker sits next to the cameras and calls out to PingZen.

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.
One login per check and an hour's pause after a refusal: the camera never gets to lock the account, and a new password lifts the pause at once.

Adding a Camera

  1. Monitors → Create Monitor, then paste the stream link (rtsp://…) or pick RTSP.
  2. Under How to add, choose One camera, I have a link or Recorder (NVR).
  3. 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.
  4. Enter the Login and Password. A login inside the link is moved into these fields.
  5. Pick the checker, then Check the connection.
  6. 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.

ManufacturerMain streamSubstream
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.
A recorder outage: eight notifications or oneThe recorder “Warehouse” with eight channels stops answering. Without grouping the phone gets eight notifications, one per channel. With grouping it gets one: the recorder is unreachable, 8 of 8 channels not answering.Recorder “Warehouse”12345678no answerWithout groupingGroupedChannel 1 downChannel 2 downChannel 3 downChannel 4 downChannel 5 downChannel 6 downChannel 7 downChannel 8 downRecorder “Warehouse”is unreachable —8 of 8 channelsnot answering8 notifications1 notification
When the whole recorder stops answering, one message says so instead of eight. A single broken channel still gets its own notification.

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 seeWhyWhat to do
Timeout, or Down: connection refusedThe checker cannot reach the camera: the RTSP port is not forwarded, or the camera is in a local networkFor 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 connectionInside Docker, mDNS names (.local) do not resolve and localhost is the container itselfEnter 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 pausedWrong login or password, for example the camera’s password was changedSave the new password in the monitor — the pause lifts at once
Down with 404 or 454Wrong stream path or channel numberPick the manufacturer and stream, or take the path from the camera’s manual
Down with SETUP 461 after a video checkThe camera sends video only over UDP, and PingZen reads it over TCPSet Video quality to Do not check: the availability check keeps working
Degraded, camera busy (453, 503)The camera is overloaded or out of simultaneous connectionsClose extra clients, or check the substream
The camera frame does not loadThe stream is H.265, and the frame preview works for H.264 onlySwitch 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.