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.
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:
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+ guidesHow to Extract High-Resolution JPEG Snapshots from RTSP in 100ms
Learn the fastest FFmpeg and Python OpenCV commands to capture crisp high-res snapshots from live RTSP feeds on demand.
protocolRTSP vs WebRTC: Latency, Security & Browser Playback Compared
Detailed technical analysis comparing RTSP and WebRTC protocols for live camera monitoring, NAT traversal, firewall compatibility, and sub-second latency.
protocolRTSP vs RTMP vs HLS vs SRT: The Ultimate Streaming Protocol Guide
Detailed breakdown comparing RTSP, RTMP, HLS, and SRT for live video delivery, video ingestion, and surveillance.