What a camera link is
A camera link is the camera’s RTSP address, as it’s reached from the internet, with its login:
If the username or password contains anything other than letters and numbers, percent-encode those characters in the link. For example, write
@ as %40, : as %3A, / as %2F, # as %23 and ? as %3F.
Before you start
- Cameras that send H.264 or H.265 video. When you test a link, the result shows each camera’s video format.
- Each camera’s RTSP path and a login for it. A read-only login is best. See Find your camera’s RTSP URL.
- Access to your router, or to whoever looks after it, to forward a port. See Ports and firewalls.
- Your site’s public IP address. If it changes from time to time, ask your internet provider for a static one. See CGNAT and public IP addresses. Whoever looks after your network can use a dynamic DNS name instead.
Step 1: Forward a port
If your cameras record to an NVR or DVR, forward one port to the recorder. On your router, forward TCP outside port 554, or 8554 if your provider blocks 554, to the recorder’s address, inside port 554. Then add a link for each channel. See Set up port forwarding and Connect an NVR. If your cameras don’t use a recorder, forward a port to each camera instead. For example, forward port 554 to192.168.1.64 port 554. With more than one camera, give each one its own outside port, such as 5541, 5542 and 5543, each forwarded to a different camera’s port 554.
For a VMS, see Connect a VMS.
Step 2: Add and test the links
1
Open the cameras step
In TruRec AI, open the Cameras step of setup. Under Where are your cameras?, choose I’ll add cameras individually.
2
Paste your links
Paste one link per line under Camera links, one per line. You can add up to 16 at a time.
3
Test them
Choose Test connection. TruRec AI connects to each link from our cloud, and checks the camera answers, accepts the login and has a stream at that path. Each working link shows its video size and frame rate, such as
1920x1080 · 25 fps, or Connected if the camera doesn’t say. Each one that didn’t work shows the reason underneath. See If a link fails the test.4
Name them and connect
Tick the working cameras to add. Each starts as Camera 1, Camera 2 and so on: give each a clear name, such as
loading-bay-2, because you’ll see it on every alert. Then choose Connect, for example Connect 2 cameras. Only links that passed the test can be ticked.
Two camera links tested: 1 of 2 working. The first shows its video size and frame rate and has been named front-door; the second shows why it couldn't be reached.
RTSP or RTSPS
rtsp://works with almost every camera. The video isn’t encrypted on its way to us, and if the camera uses a basic login, anyone listening in can read the login too.rtsps://encrypts the video on its way to us. Use it if your camera supports it.
Keep a port-forwarded camera safe
A forwarded port can be reached by anyone on the internet, not just TruRec AI. To protect it:- Use a read-only login with a strong password that isn’t used anywhere else. See Create a read-only user.
- Forward only the RTSP port. Never forward the camera’s or recorder’s web page, or its admin ports.
- Use
rtsps://if your camera supports it. - Keep the camera’s firmware up to date.
If a link fails the test
The test says why. The usual reasons:Coming later: the TruRec connector
We’re building the TruRec connector, a small program for a computer at your site. It sends your cameras’ video out to TruRec AI, so you won’t need to forward any ports. It isn’t available yet. We’ll announce it in the changelog.On Enterprise: how your cameras connect is planned with you. If TruRec AI runs in your own environment, it reads your cameras on your own network.
