How do you use the RTSP URL generator?
Work down the form; the address updates as you type.
- Firmware: choose the family your recorder or camera belongs to. The list below says which brands each covers.
- Address or IP: the device's local address, such as 192.168.1.64, or its public address or DDNS name if you'll open it from outside.
- RTSP port: 554 unless someone changed it in the device's network settings, or the router forwards a different outside port.
- Username and password: the device's own login, not a phone app account. Leave the username empty only if the device asks for no login.
- Channel: the camera's number on the recorder, from 1. A single camera is channel 1.
- Stream: sub for the smaller, lighter stream, main for full quality.
- Copy address, then test it in VLC before using it anywhere else.
Which firmware should you choose for your brand?
Pick by the firmware inside the box, which is often not the name on the front. These are the families the generator builds, and the brands each one covers:
- Hikvision firmware: Hikvision, Prama.
- Dahua firmware: Dahua, CP Plus, most Honeywell recorders.
- Uniview: Uniview.
- Ezviz: Ezviz.
- TP-Link Tapo and VIGI: TP-Link Tapo, VIGI.
- Axis: Axis.
Why are the channel and stream boxes sometimes greyed out?
Because that firmware's address has no place for them. A TP-Link Tapo or VIGI camera is one camera with its own address, so the path has no channel and the channel box switches off. The Axis path names the camera but not a stream, so the stream box switches off instead. Every other family takes both.
Other things change the address too. If the username box is empty, the generator leaves the login out entirely: rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=1. Most recorders refuse that, so it's only for devices with authentication switched off.
What do generated RTSP links look like?
Here are worked examples, with PASSWORD in place of a real password:
- Hikvision NVR at 192.168.1.64, camera 5, full quality: rtsp://admin:PASSWORD@192.168.1.64:554/Streaming/Channels/501
- Dahua or CP Plus recorder at 192.168.1.108, camera 2, sub stream: rtsp://admin:PASSWORD@192.168.1.108:554/cam/realmonitor?channel=2&subtype=1
- Uniview NVR at 192.168.1.30, camera 3, sub stream: rtsp://admin:PASSWORD@192.168.1.30:554/unicast/c3/s1/live
- Tapo camera at 192.168.0.21 with the camera account tapocam: rtsp://tapocam:PASSWORD@192.168.0.21:554/stream2
- Axis camera at 192.168.1.90: rtsp://viewer:PASSWORD@192.168.1.90:554/axis-media/media.amp?camera=1
- A Dahua-type recorder reached from outside on a DDNS name, with the router passing port 8554: rtsp://USER:PASSWORD@shop.example.net:8554/cam/realmonitor?channel=4&subtype=1
What does the generator do with symbols in a password?
It percent-encodes them. Characters such as @, :, # and / mean something inside an address, so a raw password containing them cuts the address in the wrong place and the login fails. The generator replaces each with its code, so the password P@ss:word#1 on a Hikvision sub stream becomes rtsp://admin:P%40ss%3Aword%231@HOST:554/Streaming/Channels/102.
That is the most common reason a hand-typed address fails when the password is right. The password stays in your browser: the page builds the address with JavaScript and sends nothing to a server.
How do you test a generated RTSP URL in VLC?
Copy the address, open VLC, choose Media, then Open Network Stream, paste it on the Network tab and click Play. Test first from a computer on the same network as the device, which takes the router and internet out of the question.
- A picture appears: the address is right. Wave at the camera to confirm the channel.
- VLC asks for a login: the username or password was refused, or it's the phone app's account.
- It waits, then fails: the address or port is wrong, RTSP is off, or a firewall is in the way. Open the device's web page at the same address to check it answers.
- It connects but shows nothing, or another camera: the channel or stream is wrong. Try the other firmware family if the brand is rebadged.
- The picture breaks up: the network can't carry the stream. Try the sub stream. VLC's advanced settings also have an option to use RTP over RTSP (TCP), which helps on networks that block UDP.
Should you generate the main stream or the sub stream?
Generate the sub stream for anything that runs all day or leaves the building, and the main stream for close-up review on the local network. The main stream is the full-resolution picture the recorder saves; the sub stream is a smaller copy that uses a fraction of the upload. The generator starts on sub for that reason.
If you aren't sure which one an address gives, play it in VLC and open Tools, then Media Information. The codec details show the picture size: the camera's full resolution means main, a much smaller size means sub.
Where are the brand-by-brand guides?
Each guide lists every channel's address, the maker's own notes where we could read them, and the failures specific to that brand: Hikvision, Dahua, CP Plus, Uniview, Ezviz and Tapo. For a brand with no preset, the guide to finding any RTSP URL explains how to work out the path.
Do you need the generator to use GoKavach?
No. GoKavach builds the same addresses from the same presets when you add a camera: you choose the brand and enter the address, port, login and channel. Use the generator to test the address in VLC before you start, or to give the address to other software.
If the address works inside the building but you'll monitor from elsewhere, the site has to be reachable. The guide to viewing CCTV remotely without a static IP covers the options, including GoKavach's site connector. To check the line can carry the streams, use the CCTV bandwidth calculator.