What is RTSP The address your camera's live video is served from

RTSP, the Real Time Streaming Protocol, is the standard way a CCTV camera or recorder serves its live video to other software over a network, by default on port 554. Each camera or recorder channel has an RTSP address that a player can open. It is how GoKavach connects to the cameras you already have.

Free forever for 1 camera · no card · uses your cameras

Free: app and email alerts. WhatsApp from Starter (₹999 a month in India), phone calls from Pro. See plans

How does RTSP work?

RTSP works like a remote control for a video stream. The software that wants the video, called the client, connects to the camera or recorder and sends short text commands: OPTIONS asks what the device can do, DESCRIBE asks what streams it has, SETUP agrees how the video will travel, PLAY starts it and TEARDOWN ends it. The device asks for a user name and password before it answers DESCRIBE.

The video itself travels beside those commands as a series of small packets in a companion format called RTP, either over UDP or inside the same TCP connection as the commands. TCP resends anything lost and passes through routers and firewalls more reliably, which is why GoKavach uses RTSP over TCP.

RTSP only carries what the camera already produces, usually H.264 or H.265 video. It doesn't record, detect or store anything.

What does an RTSP URL look like?

An RTSP URL starts with rtsp:// and then names the user, the device's address, the port and a path that picks the camera and stream. A Hikvision recorder's first camera is typically rtsp://user:password@192.168.1.64:554/Streaming/Channels/101. A Dahua recorder uses a path such as /cam/realmonitor?channel=1&subtype=0. The path is different for every maker, which is the part people get stuck on.

The guide to finding your RTSP URL lists the formats, and the page on RTSP cameras covers brands without a preset. The last digit or the subtype usually chooses between the main stream and the sub stream.

How do you read an RTSP address part by part?

Take rtsp://viewer:Shop%402024@192.168.1.64:554/Streaming/Channels/301, the third camera on a Hikvision recorder. Each part answers one question.

  • rtsp:// says which protocol to speak, the way https:// does for a web page.
  • viewer:Shop%402024 is the user name and password. The password here is Shop@2024; an @ inside a password is written as %40 so it isn't mistaken for the @ that ends the login.
  • 192.168.1.64 is the recorder's address on the local network. From outside the building this becomes the site's public IP address or a hostname.
  • :554 is the port. It can be left out when the device uses 554.
  • /Streaming/Channels/301 is the path. On this firmware the first digit is the channel and the last two pick the stream, so 301 is camera 3's main stream and 302 its sub stream.

Where will you meet RTSP as a CCTV owner?

You meet RTSP the first time you connect your cameras to anything other than the maker's own app: a video player on a computer, a different recorder, or a monitoring service. On most wired DVRs, NVRs and IP cameras it is switched on already. On some it is a tick box in the network settings, and a few consumer cameras don't offer it at all and only work through their maker's app.

In a recorder's menu it usually sits under the network settings, on a page listing the device's ports: an HTTP port for its web page, an RTSP port showing 554, and one or two ports for the maker's own software. That page is where you check the number or change it.

How is RTSP different from ONVIF, HTTP and the maker's app?

They do different jobs on the same device. HTTP, usually port 80, serves the recorder's settings pages to a browser. ONVIF is a standard for finding cameras on a network and changing their settings, and it hands over to RTSP when the picture itself is needed. RTSP delivers the live video and nothing else.

The maker's phone app normally uses none of these directly. You scan a code on the recorder and the app reaches it through the maker's own servers. That is convenient, but it gives you no address that other software can open, which is why a camera that only works through its app can't be read by anything else.

What are the common RTSP problems and how do you recognise them?

Most failures fall into four kinds, and the error tells you which.

  • Asked for the login again, or error 401: the user name or password is wrong, the account is locked after too many tries, or a special character in the password needs encoding.
  • Not found, or error 404: the device answered but the path is wrong for that brand, or the channel number doesn't exist.
  • Times out with no answer: the address or port is wrong, RTSP is switched off, or from outside the port isn't forwarded.
  • Opens, then the picture breaks up or freezes: packets are being lost, common over UDP or a weak link. Switching the player to TCP or choosing the sub stream usually steadies it.

What should you ask an installer about RTSP?

Ask five things, and write the answers down: whether RTSP is enabled on the recorder, which port it uses, the recorder's brand and model, its address on the local network, and a user name and password that can view live video. Many recorders let the administrator create a second user limited to live view. That is the account to give to outside software, so the administrator password stays private.

If the installer set up remote viewing, also ask whether the RTSP port is forwarded on the router and under which outside number. Installers often forward only the port their own app needs.

How does GoKavach use RTSP to send alerts?

GoKavach reads each camera's RTSP stream over TCP and checks a picture from it every few seconds. You choose the recorder's brand and type its address and login, and it builds the path: the main stream on Hikvision and Prama, the sub stream on Dahua, CP Plus and Honeywell. If the first format doesn't connect, the other of the Hikvision and Dahua formats is tried automatically. You can also paste any RTSP URL. Camera addresses are stored encrypted.

The address has to be reachable from outside the building, either by port forwarding or, with no router changes, through the site connector described in adding AI to existing CCTV. If a stream stops answering, a camera offline alert follows after the delay you set.

RTSP: key facts

Stands for
Real Time Streaming Protocol
Default port
554
Defined in
RFC 2326 (1998); version 2.0 is RFC 7826
Carries
Live video, usually H.264 or H.265, plus audio if the camera sends it
Address starts with
rtsp://
GoKavach uses it
Over TCP, to read each camera or recorder channel

What GoKavach is, and isn't

GoKavach is AI monitoring for the CCTV cameras you already have. It watches Hikvision, Dahua, CP Plus and almost any other brand around the clock and, when someone is where they shouldn't be, alerts you within seconds: in the app and by email on every plan, by WhatsApp and SMS on paid plans, and by phone call on the larger ones.

  • GoKavach connects by RTSP, not ONVIF, so a device must offer an RTSP address to be connected.
  • A camera that only works through its maker's own app, with no RTSP address, can't be connected.
  • GoKavach only reads the stream. It can't switch RTSP on, change the port or create a user on your recorder.

RTSP FAQ Questions, answered

What owners ask before they connect their first camera.

Is RTSP the same as ONVIF?

No. RTSP is the protocol that delivers the video. ONVIF is a wider standard for finding cameras and changing their settings, and it relies on RTSP underneath to deliver the picture. A device can offer RTSP without ONVIF. GoKavach connects by RTSP and doesn't use ONVIF.

What port does RTSP use on a DVR or NVR?

The default RTSP port is 554. A recorder's network settings show the port and let you change it. If the recorder is reached from outside the building, the router forwards an outside port to 554 on the recorder, and the outside number can be different.

Is an RTSP stream secure?

Plain RTSP isn't encrypted, although most recorders send the login as a digest and not as readable text. Give the recorder a strong password, keep its firmware current, and avoid opening the port to the whole internet when a connector that makes only an outgoing connection will do.

How do I test whether my camera's RTSP address works?

Open it in a free video player that can open network streams, such as VLC, from a computer on the same network as the recorder. If the picture appears, the address, user name and password are right. If it asks for a login again or times out, check the path and that RTSP is enabled.

Does RTSP use TCP or UDP for CCTV video?

The commands always travel over TCP. The video can go either way: as separate UDP packets, or interleaved inside the same TCP connection. UDP has slightly less delay but drops packets on a poor link and is often blocked by routers. GoKavach reads every camera over TCP for that reason.

Does reading a camera's RTSP stream affect what the recorder records?

No. A program reading the RTSP stream is one more viewer, like a phone opening the live picture. The recorder keeps writing its own footage to its hard disk at the same quality. Recorders do limit how many viewers can connect at once, and the limit varies by model.

Still have questions? connect@gokavach.com

GoKavach pricing Start free. Move up a plan as you add cameras.

Every plan watches every camera around the clock, with intruder alerts in the hours you set. Bigger plans add cameras, people, phone-call alerts and longer storage of alert clips.

Free

Try it on one camera, for as long as you like.

$0

The same in every country

Free forever

  • 1 camera
  • 1 team member
  • Checks every 10 seconds, and every second while something moves
  • Email and app alerts
  • Alert pictures and clips kept 30 days
Start free

Starter

For one shop or home.

$19 /month

₹999/month in India

Renews until you cancel

  • 2 cameras
  • 2 team members
  • Checks every 5 seconds, and every second while something moves
  • WhatsApp, SMS, email and app alerts
  • Alert pictures and clips kept 60 days
  • 1 AI check in your own words
Choose Starter

Business

For many locations and larger teams.

$129 /month

₹6,999/month in India

Renews until you cancel

  • 16 cameras
  • 10 team members
  • Checks every 5 seconds, and every second while something moves
  • Phone calls, WhatsApp, SMS, email and app alerts
  • Alert pictures and clips kept 180 days
  • 10 AI checks in your own words
Choose Business

Enterprise

For more than 16 cameras, chains and guard companies.

Let's talk
  • More than 16 cameras and as many team members as you need
  • Checks every camera as often as every 5 seconds
  • Help setting up at each location
  • A named contact and agreed response times

Every plan includes

  • Areas, lines and hours you choose
  • A picture and clip with every alert
  • Live view on phone and computer
  • Camera offline and DVR disk alerts
  • Arming by your shop hours
  • Counter-left-empty alerts
  • Daily and weekly summaries
  • Reports on alerts and busy hours
  • A panic button for owners, admins and operators

Paid plans start the day you upgrade. Switch or cancel any time from Settings; after cancelling, your plan runs to the end of the paid period, then moves to Free. Prices exclude taxes.

Book a free demo Prefer we set it up with you?

In a free 15-minute call we connect one of your cameras and send a live test alert to your phone. Or start free on your own.

  • Works with the DVR or NVR you already have
  • We help with the connection, public IP or not
  • A live WhatsApp and phone-call alert to your phone
  • Free forever for 1 camera, no card needed

Book your free demo

Leave your number and we'll call to pick a time.

We reply within a day. No spam, no card. By submitting you agree to be contacted on WhatsApp/phone and to our privacy policy.