Four kinds of access in one platform: connecting GB28181, RTSP, ONVIF and RTMP devices to SPNVR
The first hurdle of any video aggregation platform is always getting the devices connected. Sites usually mix brands and generations: some devices speak GB28181, some only offer an RTSP address, some can only be discovered over ONVIF, and body cameras or drones push their streams. SPNVR puts all four into the same three-step wizard: choose the protocol, fill in the parameters, test the stream.
GB28181: channels appear when the device registers
Choose GB28181 when adding a device and enter its 20-digit code; the page lists the platform parameters to set on the device (SIP server address, port, code and domain). Once the device registers, all its channels sync automatically, with no channel-by-channel setup; live view, playback with speed control, PTZ, recording queries and device alarms then all go through GB28181 signalling.
When a device does not come online, the usual cause is a SIP server address, port, code or domain on the device that does not match the platform, or a firewall that blocks port 5060 (UDP and TCP) and the media ports.
RTSP: pick the brand, enter the IP, get the address
For devices that only offer RTSP, pick the Hikvision, Dahua, Uniview or Tiandy template and enter the IP and channel number to build the stream address; for recorders enter several channel numbers such as 1-8. Any RTSP address can also be entered by hand.
Recorders are even easier: in the second step enter the brand, IP and credentials and click Scan channels; the platform reads every channel and its name from the recorder, checks each one for a picture and its codec, and adds the ones you tick in one go. When the recorder gets new channels later, scan again from the device details.
ONVIF and RTMP
- ONVIF: discover ONVIF devices on the local network and read the main and sub stream addresses once you enter the credentials.
- RTMP: signed push addresses for devices that push streams; pushes without a valid signature are rejected.
- In bulk: download the Excel template with one channel per row; uploads are checked row by row, and nothing is imported if any row has an error, with the row numbers shown.
Test every channel
The Test button on a channel checks whether the main and sub streams connect, whether the credentials are right and which codec is used, and grabs a frame. When something fails it says why: network unreachable, wrong user name or password, channel not found, channel offline or media server not connected, so nobody needs to dig through logs.
H.265 in the browser too
Many new cameras default to H.265, and some desktop browsers cannot decode it in hardware, which leaves a black picture. SPNVR's player only counts playback as successful once a frame is decoded; when the browser cannot play H.265 it asks the server to transcode that channel to H.264, for live view, share pages, embedded pages and alarm playback alike. The number of simultaneous transcodes is configurable so the CPU is not exhausted.
Once connected, channels are organized in a site tree of up to five levels (drag to move them) and you can turn on recording schedules and alarm rules. For the full picture, see Introducing SPNVR.