Datasource: RTSP Stream
Use RTSP Stream for camera-driven computer vision pipelines.
This datasource opens an RTSP stream and emits sampled frames as events at controlled FPS and resolution.
Best Use Cases
- Live defect detection
- Security and monitoring analytics
- Edge vision workflows with controlled sampling
Configuration Fields
| Field | Required | Type | Default | Purpose |
|---|---|---|---|---|
url | Yes | string | - | RTSP stream URL |
authType | No | select | none | Auth mode: none, basic, digest |
username | Conditional | string | - | Required when auth is basic or digest |
password | Conditional | password | - | Required when auth is basic or digest |
fps | No | number | 5 | Frame sampling rate (1-8) |
resolution | No | select | 640x480 | Output frame resolution |
How to Configure Correctly
- Select RTSP Stream datasource type.
- Set valid camera URL (
rtsp://host:port/path). - Configure auth fields only if camera requires authentication.
- Start with
fps=3-5for baseline throughput. - Choose resolution based on model requirements and compute budget.
- Save and run a short validation workflow.
Example Config
{
"url": "rtsp://camera-user:camera-pass@192.168.1.45:554/stream1",
"authType": "basic",
"username": "camera-user",
"password": "<secret>",
"fps": 5,
"resolution": "640x480"
}
Performance Guidance
- Lower FPS reduces CPU/GPU load and storage cost
- Match resolution to model training/inference input expectations
- Use edge environments when camera latency is critical
Common Problems
- Stream cannot open: invalid URL/path or network reachability
- Black frames/timeouts: camera instability or bitrate constraints
- High latency: FPS/resolution too high for available resources
Related Pages
- Continue with Datasource - File Stream for replay and testing workflows.
- Continue with Workflows for vision pipeline design.
