How to Get the Rtsp Url from Ip Cameras

Finding the RTSP URL from your IP camera is essential for integrating it with security software or viewing streams remotely. This guide walks you through step-by-step methods, including accessing web interfaces, checking documentation, and using diagnostic tools. Whether you’re using Dahua, Hikvision, or Axis cameras, we’ve got you covered.

Quick Answers to Common Questions

Can I use the same RTSP URL for multiple cameras?

No—each IP camera has a unique IP address and often a different stream path. However, you can organize them in a playlist file (.m3u) for easy playback in VLC.

Do all IP cameras support RTSP?

Most professional-grade cameras do, but some budget models only offer ONVIF or proprietary apps. Check your manual or try ONVIF Device Manager to confirm.

Why does my RTSP work in VLC but not in Blue Iris?

This could be a codec issue. Try enabling hardware decoding in Blue Iris or switch to a lower-resolution substream. Also, ensure the camera’s time zone matches your system.

Is RTSP secure?

By default, RTSP transmits data unencrypted. For sensitive applications, consider using HTTPS for configuration and SRTP for encrypted video, if supported.

How do I find my camera’s MAC address?

Check the physical label on the camera or log into its web interface under Network > Basic Settings. The MAC address helps identify the device on your router.

How to Get the RTSP URL from IP Cameras: A Complete Guide

Are you trying to set up your IP camera with a video surveillance system, NVR, or third-party app? One of the first hurdles you’ll face is locating the camera’s RTSP URL. RTSP (Real-Time Streaming Protocol) URLs allow you to access live video feeds directly from your camera over a network. Whether you’re a home user, small business owner, or IT professional, knowing how to extract this URL opens the door to advanced features like remote monitoring, recording, and integration with AI analytics tools.

This comprehensive guide will walk you through multiple methods to find the RTSP URL from your IP camera—regardless of brand. We’ll cover everything from checking the camera’s web interface to using diagnostic tools and decoding manufacturer-specific formats. By the end, you’ll have a reliable RTSP stream and the confidence to troubleshoot common issues.

What Is an RTSP URL?

An RTSP URL is a web address that tells your computer or surveillance software how to connect to and stream video from an IP camera. Think of it like a phone number for your camera’s video feed. Without it, most third-party apps can’t “call” your camera to view its footage.

How to Get the Rtsp Url from Ip Cameras

Visual guide about How to Get the Rtsp Url from Ip Cameras

Image source: wallpaperaccess.com

A typical RTSP URL looks like this:

rtsp://admin:password@192.168.1.100:554/stream1

Let’s break it down:

  • rtsp:// – The protocol used to request the stream.
  • admin:password – Username and password for authentication.
  • 192.168.1.100 – The IP address of the camera on your local network.
  • :554 – The port number (default is 554).
  • /stream1 – The specific video stream path (main or sub-stream).

Not all cameras use the same path. Some may use /cam/realmonitor?channel=1&subtype=0, while others use /videoMain. That’s why knowing your camera model matters.

Step 1: Access Your Camera’s Web Interface

The most direct way to find the RTSP URL is by logging into your camera’s built-in web server. Almost all IP cameras come with a web interface accessible via a browser.

How to Log In

  1. Connect your computer to the same network as the camera. Use Ethernet for reliability, though Wi-Fi works too.
  2. Find the camera’s IP address. You can check your router’s connected devices list or use tools like nmap or Angry IP Scanner.
  3. Type the IP address into your browser. For example: http://192.168.1.100
  4. Log in using the default credentials. Common defaults are:
    • Username: admin
    • Password: admin, 12345, or blank

    Tip: Change these immediately after setup!

Locating the RTSP Information

Once logged in, look for one of these sections:

  • Network > Advanced Settings > Multicast – Some cameras list RTSP paths here.
  • Status > System Info – Displays active streams and URLs.
  • Configuration > Stream > RTSP – Explicitly shows enabled RTSP settings.
  • Tools > Network > ONVIF – ONVIF-compliant cameras often show RTSP endpoints here.

For example, on a Hikvision camera, go to Configuration > Storage > Local Storage > Schedule > Record > General, and scroll down—you might see an RTSP test link.

Step 2: Check the Manufacturer’s Default RTSP Paths

Each camera brand uses slightly different RTSP paths. Here are common ones:

Brand Default RTSP URL Format Example
Dahua rtsp://[user]:[pass]@[ip]/cam/realmonitor?channel=1&subtype=0 rtsp://admin:12345@192.168.1.100/cam/realmonitor?channel=1&subtype=0
Hikvision rtsp://[user]:[pass]@[ip]/Streaming/Channels/101 rtsp://admin:abc123@192.168.1.100/Streaming/Channels/101
Axis rtsp://[user]:[pass]@[ip]/axis-media/media.amp rtsp://root:pass@192.168.1.100/axis-media/media.amp
Amcrest rtsp://[user]:[pass]@[ip]/cam/realmonitor?channel=1&subtype=0 rtsp://admin:admin123@192.168.1.100/cam/realmonitor?channel=1&subtype=0
Generic ONVIF rtsp://[user]:[pass]@[ip]/onvif1 rtsp://admin:1234@192.168.1.100/onvif1

Note: Substreams (lower quality) often use 102 instead of 101. For example, Hikvision uses /Streaming/Channels/102 for substreams.

Step 3: Use ONVIF Device Managers

If you’re unsure about the exact path, try an ONVIF-compliant tool. These utilities can scan your network and retrieve supported streams directly from the camera.

Recommended Tools

  • ONVIF Device Manager (ODM) – Free, open-source, and widely used.
  • Milestone XProtect – Professional VMS with device discovery.
  • Blue Iris – Popular surveillance software with auto-discovery.

How to Use ONVIF Device Manager

  1. Download and install ODM from SourceForge.
  2. Open the app and click Scan.
  3. Wait for devices to appear. Double-click your camera.
  4. Go to the Media Profile tab.
  5. Copy the URI field—this is your RTSP URL.

This method works even if you don’t know the camera’s IP or login details (as long as they’re default).

Step 4: Test the RTSP URL in VLC Media Player

VLC is a free, cross-platform media player that supports RTSP out of the box. It’s perfect for testing whether your URL is valid.

How to Test

  1. Open VLC Media Player.
  2. Click Media > Open Network Stream.
  3. Paste your RTSP URL into the field.
  4. Click Play.

If you see video, the URL is correct. If not, double-check:

  • Username and password
  • IP address and port
  • Firewall settings blocking port 554
  • Camera’s RTSP service enabled in settings

Step 5: Decode the RTSP URL Using Diagnostic Tools

Sometimes, the camera doesn’t expose the RTSP URL directly. In such cases, reverse-engineering the URL helps.

Method: Analyze HTTP Requests

Some cameras generate RTSP URLs dynamically. Use browser developer tools (F12) to inspect network traffic when loading the camera’s homepage or live view page. Look for requests containing rtsp:// or streaming.

Method: Brute-Force Common Paths

If you suspect the camera uses a standard path but aren’t sure, try variations:

  • rtsp://admin:pass@192.168.1.100:554/stream1
  • rtsp://admin:pass@192.168.1.100:554/stream2
  • rtsp://admin:pass@192.168.1.100:554/video

Test each in VLC until one works.

Troubleshooting: Why Isn’t My RTSP URL Working?

Even with the right format, you might encounter issues. Here’s how to fix them:

Problem: “Connection Refused”

This means the camera isn’t listening on the specified port. Check:

  • Is RTSP enabled in the camera settings?
  • Is the camera’s firewall blocking port 554?
  • Are you using the correct IP address?

Try pinging the camera from your PC. If it doesn’t respond, there’s a network issue.

Problem: “Authentication Failed”

Double-check username/password. Some cameras require special characters to be URL-encoded (e.g., %40 for @). Also, ensure caps lock is off—many cameras are case-sensitive.

Problem: Video Shows as Black or Frozen

This could be due to:

  • Incorrect stream type (main vs. substream)
  • Codec mismatch (try disabling hardware acceleration in VLC)
  • Bandwidth limitations

Switch to a lower resolution or use a substream if available.

Problem: RTSP Works Locally but Not Over Internet

RTSP over the internet requires port forwarding on your router and a static IP. Alternatively, use a cloud-based solution like ONVIF Cloud or a P2P service (e.g., Hikvision’s P2P).

Advanced: Automating RTSP Discovery with Scripts

For tech-savvy users, scripting can automate RTSP discovery. Below is a Python snippet using the requests library to fetch RTSP info from ONVIF endpoints:

import requests

def get_rtsp_url(ip, username, password):
    url = f"http://{ip}/onvif/device_service"
    headers = {
        "Content-Type": "application/soap+xml; charset=utf-8"
    }
    body = '''
        
            
                
            
        '''

    response = requests.post(url, data=body, headers=headers, auth=(username, password))
    # Parse XML response to extract RTSP URL
    # (Full parsing logic omitted for brevity)
    return "rtsp://" + ip + "/onvif1"

print(get_rtsp_url("192.168.1.100", "admin", "password"))

This script sends an ONVIF SOAP request to retrieve media profiles and extract the RTSP URI. Libraries like zeep make XML parsing easier.

Best Practices for Managing RTSP URLs

To avoid headaches later, follow these tips:

  • Document every camera’s RTSP URL in a spreadsheet with IP, model, and path.
  • Use descriptive usernames instead of “admin” to reduce confusion.
  • Update firmware regularly—manufacturers often fix RTSP bugs.
  • Disable unused services like FTP or Telnet to reduce attack surface.
  • Use HTTPS for configuration pages when possible.

Conclusion

Getting the RTSP URL from an IP camera doesn’t have to be a mystery. With this guide, you now know how to access the camera’s web interface, decode manufacturer-specific paths, use ONVIF tools, and test your stream with VLC. Whether you’re setting up a DIY security system or integrating cameras into a professional VMS, the RTSP URL is your gateway to real-time video.

Remember: the exact URL depends on your camera’s brand and model. When in doubt, consult the manual or manufacturer’s support page. And always prioritize security—secure your cameras with strong passwords and network segmentation.

Now go forth and stream securely!