Contains all streams processed by spectr. Each stream has the following parameters:
id— unique flow ID, can consist only of lowercase Latin letters and an emphasis symbol.alias— if specified, used in place of the ID in the URL of the stream, should not match the ID or alias of another thread.name— the name of the stream.group— flow group.enabled— includes stream processing and broadcasting.src— list of available sources, stream must have at least one source.dst— list of broadcast types used.params— additional parameters.src_timeout— timeout of waiting data from the source.
Source parameters:
name— source name.address— address.buffer_size— the amount of data processed per cycle.enabled— includes the use of flow.
Broadcast type parameters:
type— the name of the type of broadcast.params— additional parameters.
When starting the stream, the first source included will be used.
Available variants of broadcast types dst:
- httpts
- hls
Available additional parameters for broadcast type hls:
segment— the number of segments in the playlist, spectr will also additionally save three legacy segments, by default 5.segment_length— the length of each segment in seconds, by default 10.segment_clear_directory— if truespectr will remove all segments from the target directory when the segmentation restarts.segment— directory path for segmentation, by default /tmp/segments/.old_segment_num— the number of segments that are removed from the playlist, but still remain on the disk. Segments of a separate stream will be recorded in the directory%segment_path%/%ID_flow%(e.g. /tmp/segments/stream1/).
Type of broadcasting httpts it has no additional parameters.