Sources bring in data and push it into the pipeline,
they contain two mandatory fields and one optional with specific
source types adding extra fields as necessary:
type: "video" # string: "video", "file", "youtube"
address: "rtsp://camera:554/path" # string: url or path, depending on 'type' property
rate: 30 # integer: desired input rate (optional: default 30)
addressis a URL to a camera, video stream or file. There are two forms:
- Short-form: A simple URL string. May include username and password if they don't contain special characters.
- Long-form: An object containing a URL with extra authentication properties.
url: A URL string without username and password.
user: A username for HTTP authentication.
pass: A password for HTTP authentication.
rateis the desired input data rate for the source,
sourcesthat provide data faster than the rate will drop packets appropriately.
sourcetype, there are 3 different options:
video: https or rtsp video stream.
file: stream from a video file.
youtube: stream from a youtube video.