Skip to main content

Camera Stream Addresses

Most of the time you never need this page. When you add a camera, the hub searches your network and works the addresses out for you (see Finding Cameras Automatically). This page is for the camera it cannot find, where you build or type the address yourself.

A stream address is the exact location of a camera's video, the way a web address is the location of a page. It starts with rtsp://. RTSP is the standard IP cameras use to send video.

What an address looks like​

rtsp://username:password@192.168.1.100:554/stream1
PartWhat it isExample
ProtocolAlways rtsp://rtsp://
UsernameThe camera's login nameadmin
PasswordThe camera's login passwordpassword123
IP addressThe camera's address on your network192.168.1.100
PortThe streaming port, usually 554554
PathWhich stream to play, different for each brand/stream1

Add a camera by its stream address​

These steps are for a standard CleverCam hub. Dahua Direct, Hikvision Direct and CleverMail cameras are added from their own screens instead.

  1. Open the Devices tab and tap + Add, then tap Camera or Recorder.
  2. Choose the hub to add the camera to (if the site has only one, it is chosen for you). If the app offers Step by step or Talk to the hub, choose Step by step.
  3. On the network scan screen, tap Build the stream address myself. (On the first screen you can also tap Add a camera manually.)
  4. On Add camera manually, pick a mode at the top:
    • Guided: pick the camera's brand and the app fills in the right path. Enter the user, password, host or IP and port. Under Quick adjust, set the Channel and choose Main or Sub stream. The Preview updates as you type.
    • Paste URL: paste the full rtsp:// address into Stream address.
  5. Tap Test stream to check that it plays.
  6. Tap Add stream, then Continue.
  7. Choose the stream, give the camera a name and a group, and tap Save.
Add camera manually: build the stream address, preview it, then Test stream and Add stream.
Add camera manually: build the stream address, preview it, then Test stream and Add stream.
tip

Use the sub stream where you can. It is lighter on your network and is what the hub reads for detection.

Set a password on the camera's stream​

Your camera should ask for a username and password before it hands out video. To set this:

  1. Open the camera's own web page (type its IP address into a browser).
  2. Go to its Network, RTSP or Streaming settings.
  3. Turn authentication on and set a strong username and password.
  4. Save on the camera.
  5. Update the camera in CleverAlert with the new login.

Usual addresses by brand​

The Guided mode builds these for you. Replace IP, user and pass with your camera's own details. Examples are for channel 1.

Brand (as listed in the app)Main stream pathSub stream path
Dahua, Imou/cam/realmonitor?channel=1&subtype=0/cam/realmonitor?channel=1&subtype=1
Hikvision, Ezviz/Streaming/Channels/101/Streaming/Channels/102
Tiandy/1/1/1/2
Uniview/media/video1/media/video2
Uniview NVR/unicast/c1/s0/live/unicast/c1/s1/live
Provision, TVT camera/profile1/profile2
TVT, Provision recorder/chID=1&streamType=main&linkType=tcp/chID=1&streamType=sub&linkType=tcp
TP-Link/stream1/stream2
Keda/realtime?id=1(one stream)
Swann/ch01/0(one stream)
AVTech/live/h264/ch1(one stream)

Each path goes after rtsp://user:pass@IP:554. For example, a Hikvision main stream is rtsp://user:pass@IP:554/Streaming/Channels/101.

For a brand that is not in the list, use Paste URL. Two common ones:

Axis:    rtsp://user:pass@IP:554/axis-media/media.amp
Hanwha: rtsp://user:pass@IP:554/profile2/media.smp

TVT and Provision-ISR​

Provision-ISR recorders and cameras are made by TVT and work the same way, so pick the entry for what the device is, not the name on the box:

  • A recorder (NVR or DVR) serves each channel at /chID=N&streamType=sub&linkType=tcp, where N is the channel number. Choose TVT or Provision recorder. A channel number past the recorder's last channel answers 404 Stream Not Found: that is the end of the list, not a fault.
  • An IP camera serves /profile1 (main) and /profile2 (sub). Choose Provision or TVT camera.

The scan usually finds these devices for you, and when you add a TVT or Provision-ISR device with the wizard the hub checks each channel's sub stream (see Add Camera). To set a recorder's sub streams yourself:

  1. Open the recorder's web page and sign in.
  2. Go to Function Panel → Record → Encode Parameters → Record Substream.
  3. Set Mode to Manual. On Auto the recorder chooses the sub stream settings itself.
  4. For each channel, set Encode H.264, Resolution 640x480 (704x576 is fine too), FPS 8 and Max Bitrate 512 to 1024 Kbps, and press Apply.

A channel whose row is greyed out on that page is one the recorder cannot set. Open that camera's own web page and set its second stream there.

To let the hub change these settings for you instead, switch on the recorder's API: Function Panel → Network → Port, tick Enable under API Server and press Apply. It is off when the recorder leaves the factory. On the same page, leave Anonymous under RTSP unticked: ticked, anyone on the network can watch the recorder's cameras without a password.

Check that the stream works​

  1. Open the Devices tab.
  2. The camera should show a status such as Available or Connected.
  3. Tap the camera and tap Watch to see the live picture.
  4. If the camera shows an error, check that:
    • the IP address is right and the camera is on the network
    • the port is right (554 is the usual one)
    • the username and password are right
    • the path matches your camera's model and firmware
tip

If you cannot find the address for your camera, check the maker's documentation or support site. Letting the hub find the camera automatically also fills the address in for you.

warning

Avoid special characters in a camera password where you can. Some characters do not survive inside a stream address. In Guided mode the app handles the encoding for you.