Back to All Guides
protocolAugust 13, 2026•7 min read•RTSPLink Dev Team

ONVIF WS-Discovery & Automated RTSP Stream URI Resolution

Discover IP cameras on the local network automatically and query their RTSP stream URIs via ONVIF SOAP APIs.

#ONVIF#WS-Discovery#SOAP API#GetStreamUri#Automation
Live RTSP Test Feed

Need an active live RTSP stream to test this integration?

Generate a free 20-minute authenticated live H.264 video feed with frame counters to test in VLC, OpenCV, or NVR software.

#1Python ONVIF GetStreamUri Example

Query camera stream URI dynamically using onvif-zeep:

Python ONVIF Script
from onvif import ONVIFCamera

cam = ONVIFCamera('192.168.1.64', 80, 'admin', 'password')
media_service = cam.create_media_service()
profiles = media_service.GetProfiles()
stream_setup = {'Stream': 'RTP-Unicast', 'Transport': {'Protocol': 'RTSP'}}
stream_uri = media_service.GetStreamUri({'StreamSetup': stream_setup, 'ProfileToken': profiles[0].token})

print("Resolved RTSP URI:", stream_uri.Uri)

Ready to test your live RTSP video stream?

Generate free authenticated 20-minute RTSP links with unlimited bandwidth and inspect frame timestamps in seconds.

Related Tutorials & Setup Guides

View all 100+ guides