> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/setting-up/add-a-stream.md).

# Add a Stream

Learn how to configure a stream that you can use to run a Workflow.

To run a Workflow on your edge device managed by Deployment Manager, you need to add a Stream. A Stream accepts a camera feed as an input and runs the data from the camera on a chosen Workflow.

To add a Stream, you will need:

* A device set up with Deployment Manager.
* A camera available to the device, or a video to play on a loop.
* A Workflow that you want to deploy on your device.

Streams can read:

* An RTSP stream
* A webcam plugged directly into your edge device via USB
* A Basler camera connected via GigE (Ethernet) or USB 3.0
* A Lucid camera connected via GigE (Ethernet)
* A video from your Asset Library, played in a loop

For Basler or Lucid line scan cameras, choose "Basler Line Scan" or "Lucid Line Scan" and [configure line rate, framing, and exposure](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/configure-line-scan-cameras.md).

{% hint style="info" %}
Basler and Lucid industrial cameras are available on Enterprise plans. To enable them, [contact the sales team](https://roboflow.com/sales).
{% endhint %}

To add a Stream, click on a Device you have registered with Deployment Manager from your dashboard, then click "Add Stream":

<figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-3ae23858553ea42a0d252c1d8a1128e15bad6163%2Fenterprise-add-stream-button.png?alt=media" alt="Add Stream button in the Streams tab" width="350"><figcaption></figcaption></figure>

The window has three steps: "Camera", "Workflow", and "Capture". Click "Next" to go to the next step, and "Back" to go back.

### Camera

1. In "Camera", pick "New Camera", a camera that another Stream on the device uses (see [Shared Cameras](#shared-cameras)), or a camera the device found that has no Stream yet (ex: "Discovered: TRI032S-C (224500123)"). This field appears only when the device has cameras to pick.
2. Pick the "Stream Type" (ex: "RTSP Stream", "RTSP Simulator", "USB Camera", "Basler Camera", "Lucid Camera", "Asset Library Video").
3. Fill in the video source for that stream type:
   * "RTSP Stream": the "RTSP URL" of the camera.
   * "RTSP Simulator": a video file the device plays on a loop, for testing without a camera. See [Stream a Test Video](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/setting-up/stream-a-test-video.md).
   * "Asset Library Video": click "Select Video" and choose a video. The device downloads it and runs the Workflow on it in a continuous loop. Videos that play at the same time on a device must total under 1 GB, and the device needs at least 1 GB of free disk space beyond that. You see this type only if your role can view and search the Asset Library. If the Stream fails to start, check these limits, then update the inference service version on the device [Configuration page](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/update-device-configuration.md).
   * "USB Camera": the "USB Camera Index" of the camera plugged into your device. If you have only one camera plugged in, this is likely 0. Adding a USB camera turns on privileged mode for the inference container, which gives it more hardware access.
   * "Basler Camera": the "Serial Number" of the camera. See [Basler Cameras](#basler-cameras) below.
   * "Lucid Camera", "Lucid Line Scan", and "Basler Line Scan": the "Serial Number" or the "IP Address" of the camera. The device opens the camera by the field you set last. Use the serial number when you know it. If you use an IP address for a Lucid camera, Roboflow keeps that address [assigned to the camera](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/set-camera-static-ip.md). For a Lucid camera, leave both fields empty to fill in "Camera Index" instead, which connects to whichever Lucid camera holds that position. A Lucid Line Scan Stream starts with default line scan settings.

To prefill the source from a discovered camera, pick it in "Camera", or click "Add Stream" on its row in the "Cameras" table. See [Find Cameras](#find-cameras).

### Workflow

Pick the Workflow to run on the Stream, its version, and its parameters.

### Capture

1. Enter the "Name" for your Stream. Roboflow suggests a name from the Workflow. Use letters, numbers, hyphens, and underscores. Spaces become hyphens, and each name must be unique on the device.
2. Pick the "Mode": "Continuous" (default) runs inference continuously, while "Triggered" only runs the Workflow when explicitly triggered. See [Trigger a Stream](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/trigger-a-stream.md) for the triggering options.
3. Set the camera settings, then click "Create Stream".

A Stream you add through [Update Config](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager.md#update-config) without a `workflow_id` runs a built-in RF-DETR object detection Workflow.

Initial set up of a new stream can take several minutes as the device downloads the workflow and any associated model weights. Eventually, the Stream will appear in your list of Streams:

<figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-25e38f03d984c9f54fbae3d409b7f60b6ad7097e%2Fenterprise-streams.png?alt=media" alt="Running Streams with inference FPS, camera FPS, and sharpness"><figcaption></figcaption></figure>

When you first add the Stream, the status will show that your Stream is "Provisioning". Once your Workflow is downloaded to your device and is running, the status of your Stream will update to "Running".

When the stream status is "Running", this means:

1. Your Workflow is running on your device.
2. You can view frames and logs from your Stream.

To adjust resolution, brightness, or frame rate after setup, [configure the camera settings](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/configure-camera-settings.md).

### Find Cameras

The "Cameras" table below the Streams list shows the cameras the device can see. Click "Scan for Cameras" to search again. The device looks for USB cameras, Basler cameras on GigE or USB, Lucid GigE cameras, and ONVIF network cameras. A scan stops after about 15 seconds and lists the cameras found by then, so run it again if a camera is missing. While the device is offline or not ready, the button reads "Request Scan".

Each row offers the next step for that camera: "Add Stream" opens a prefilled Stream form, "Open Stream" opens a Stream that already uses the camera (the row also shows "Add Stream", to add another Stream on that camera), and "Add RTSP URL" appears for an ONVIF camera that did not report a video stream URL. "Set Up Camera Port" appears when the camera needs its own [camera port](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/configure-device-network.md#dedicated-camera-port) first. Until the port is set up, the camera isn't listed in "Camera".

### Shared Cameras

To run more than one Workflow on one camera, click "Add Stream" and pick the camera in "Camera". The camera's entry shows the Streams that use it (ex: "Basler Camera: 40543892 (used by line-a)"). The Streams share one capture from the camera, so the new Stream copies the camera settings and you can't change them on the "Capture" step. To change them later, edit any of the Streams: Roboflow copies the new camera settings to every Stream on that camera. If the camera needs RTSP credentials, enter them again for the new Stream.

Through [Update Config](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager.md#update-config), point each Stream's `video_reference.$ref` to one camera under `config.video_sources` (ex: `#/config/video_sources/line_camera`).

Shared capture requires a supporting inference version with "Multiprocessing" enabled in the device's [Configuration](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/update-device-configuration.md).

### Basler Cameras

Enter the serial number only. Edge works out whether the camera is GigE or USB, and for GigE it finds the port and sets a compatible IP when the stream starts. Older streams set up with an IP address keep working until you enter a serial.

In the discovered cameras table, a "Network mismatch" badge means Edge will readdress the camera itself. "Network review" means the port is shared or carries the default route, so [set the IP yourself](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/set-camera-static-ip.md). If the row's button reads "Set Up Camera Port", the camera needs a [dedicated camera port](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/configure-device-network.md#dedicated-camera-port) first.

The table also lists cameras your Streams use, including ones the device cannot find ("Never seen"). Click a camera row to open its "Diagnostics", a list of checks on the camera connection and network. A check that does not pass can show a button to fix it (ex: "Set Static IP"), and "Copy Report" copies the results to share.

### Workflow Compatibility

When you choose a Workflow, Roboflow checks it against the inference version running on the device. A red X next to the Workflow field means the device cannot run that Workflow. Hover over the icon to see which block is not supported and why. To fix it, update the inference service version on the device [Configuration page](https://docs.roboflow.com/deployment/self-hosted/enterprise/deployment-manager/making-changes/update-device-configuration.md).

The check uses what the device reports about itself. Devices that have not reported their supported blocks yet show no icon.

### RTSP Credentials

If your camera needs a username and password, enter them in the "Username" and "Password" fields instead of adding them to the RTSP URL.

On devices that support encrypted credentials, Roboflow always stores the username and password encrypted on the device, not in the stream URL. Older devices store them in the URL.

Saved credentials are not shown again. The fields read "Saved (enter to change)", and you need to enter both to replace them.

### RTSPS Certificates

An RTSP URL that starts with `rtsps://` connects over TLS, and the device checks the camera's certificate. If your camera presents a self-signed certificate, check "Allow self-signed TLS certificate". The checkbox only appears for `rtsps://` URLs, and it clears if you change the URL back to `rtsp://`.

This setting applies to the whole device. Turning it on for one stream skips certificate checks for every RTSPS stream on that device. When you can, add the issuing certificate under "CA Certificates" in the device's "Networking" tab instead.
