streams
Define one or more input sources. The stream type is auto-detected from the URI.
streams:
- uri: "file:///path/to/video.mp4"
source_id: 0
- uri: "rtsp://192.168.1.100:554/live"
source_id: 1
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
uri | string | Yes | — | Input source URI |
source_id | integer | Yes (multi-stream) | list index | Unique ID for this stream (used to map per-stream outputs) |
note
When using multiple streams with per-stream outputs (mode: "multi"), you must explicitly set source_id on each stream so they can be matched to their corresponding sink entries. For a single stream, source_id can be omitted.
Supported URI formats
| URI Prefix | Type |
|---|---|
file:///path/to/video.mp4 | Local file |
rtsp://host/path | RTSP stream |
rtmp://host/path | RTMP stream |
http:// / https:// | HLS stream |