Skip to main content

"device" Source

Ingests video data from a connected USB device (e.g. a webcam), decodes the frames, and creates a new metadata object for each one.

If the source fails to connect or is disconnected from the USB device, the source will try to reconnect indefinitely.

Along with the required source parameter type, the device source accepts the following additional properties:

  • address: The /dev/* device path of the connected USB device.

Examples

REST API

Create Source:

{
"type": "device",
"address": "/dev/video0"
}

Configuration File

sources:
- type: device
address: "/dev/video0"