The RTSP Inference node performs real-time object detection on a live video stream delivered over RTSP (Real Time Streaming Protocol). Use it in automations that need to monitor camera feeds — security cameras, factory floor cameras, or any RTSP-capable source — and detect objects or events in the video as they happen.
Overview
The node connects to an RTSP stream, runs an object detection model against the incoming frames for a specified duration, and buffers the detection results. You then fetch the results from the buffer, which clears it on each fetch. When monitoring is complete, stop the session to release resources. The node can also capture a single frame from a stream as a Base64 string with Capture RTSP Frame as Base64.


Starting a Session
Start inference by providing:
RTSP stream URL: required. The full URL of the RTSP stream to analyze, for example rtsp://host:554/stream. Use the same URL in Fetch and Stop.
Duration: required. How long to run inference on the stream, in seconds. The maximum is 60 minutes.
Frame sample rate: the number of frames processed for inference each second. For example, 2 means two frames are processed each second.
Region of interest (ROI): an optional polygon defining the area of the frame to analyse, as a JSON object with a
pointsarray of [x,y] pairs in normalized 0 to 1 coordinates, with at least 3 points. For example: {"points": [[0.1,0.1],[0.9,0.1],[0.5,0.9]]}. Leave it empty to analyse the full frame. Useful for focusing detection on a specific zone (an entrance, a conveyor belt section) and reducing noise from irrelevant motion.Model: the object detection model to use: yolov8n.pt or yolo11n.pt (default).
The start operation is asynchronous — the automation continues while inference runs in the background. Use subsequent steps to wait, fetch results, or take action based on detections.
Fetching Results
Use the Fetch Results operation to retrieve the detections accumulated since the last fetch. Each fetch call clears the buffer — results are not cumulative across fetches. If you need to retain all detections, store the fetched results in a Variable or a Storage node before fetching again.
Stopping the Session
Call Stop when monitoring is complete. This terminates the connection to the stream and releases the inference session. One session per stream URL is allowed at a time — starting a new session on the same URL while one is active will fail or replace the existing session.
Note: Always call Stop when you are done — leaving sessions open wastes resources and may prevent new sessions on the same URL from starting.
Capturing a Single Frame
Use Capture RTSP Frame as Base64 to capture one frame from an RTSP stream without starting an inference session.
Input Field | Description |
|---|---|
RTSP stream URL | Required. The RTSP URL for which you want to capture the frame. |
Output: Frame Base64, the captured frame as a Base64 string.
Notes
Keep the following in mind when using the RTSP Inference node:
Only one active inference session per stream URL is permitted at a time.
Fetch results clear the buffer. Store results immediately if you need to preserve them across multiple fetches.
The maximum session duration is 60 minutes. Duration is set in seconds, so design your automation to stay within this limit.
Inference runs asynchronously; use a Loop or a wait step between fetch calls if you need to poll over time.
Always call Stop when monitoring is complete to free the session and allow new inference sessions to start on the same stream URL.