-
Notifications
You must be signed in to change notification settings - Fork 0
Plugins: Input
This is a listing of the available input plugins.
The stdin
plugin reads a data stream from standard input.
There can only be a single source defined using the standard input plugin - defining multiple sources will make the program exit with a failure message.
No options.
[source.demo]
input = stdin
decoder = miniflac
The file
plugin reads a data stream from a named file.
The file path to read from. This is required.
[source.demo]
input = file
file = /path/to/file.flac
decoder = miniflac
The curl
plugin reads a data stream from a URL using libCURL
The URL to read from. This is required.
The maximum amount of time to spend connecting to a URL in milliseconds.
The maximum amount of time to spend reading data from a URL.
Enable libCURL's verbose logging to stderr.
By default, when connecting to an HTTP source the plugin will send the
Icy-MetaData:1
header, to receive Icecast/ShoutCast metadata. Setting
ignore icecase
to true
will disable sending the header, and ignore
any Icecast-related headers the server may send.
There may be instances where a server changes behavior based on the presence of this header, or maybe a server sends both Icecast metadata and FLAC/Vorbis comments (and you only want to handle FLAC/Vorbis).
This can be specified multiple times to set custom headers.
[source.demo]
input = curl
url = http://127.0.0.1:8000/mount.ogg
header = User-Agent: my-app 0.1
header = X-My-Custom-Header: Hey there
decoder = miniflac