Command-line operation
Use packager -c /path/config.toml start to run a standalone instance. Without
-c, it loads /etc/packager/config.toml. A .json suffix selects JSON parsing;
other paths are read as TOML.
packager start --source <source> --sink <destination> runs one source to one
destination without a configuration file. See Run without a config file
for its flags and environment variables.
Two start flags override the configuration in every mode, including a
configuration file and managed mode:
| Flag | Environment variable | Meaning |
|---|---|---|
--api-bind | PACKAGER_API_BIND | Address and port of the HTTP API and /metrics, IPv4 or IPv6. |
--log-level | PACKAGER_LOG_LEVEL | trace, debug, info, warn or error. |
packager start --print-config prints the effective configuration as TOML and
exits without starting. It works with a configuration file and with flags, but
not in managed mode.
The following commands query a running instance using the API bind address in the configuration:
packager -c config.toml sources list
packager -c config.toml sources describe input
packager -c config.toml sinks list
packager -c config.toml sinks describe srt
packager -c config.toml transcoders list
packager -c config.toml transcoders describe encode
Start/stop requests are available for sources, sinks, and transcoders:
packager -c config.toml sources stop input
packager -c config.toml sources start input
These commands work against an instance without an API key. For an instance
with api_key, and to add, change or remove tasks at runtime, use the
HTTP API.
NDI discovery
packager -c config.toml sources discover ndi
Discovery prints detected NDI source names/URLs repeatedly; stop with Ctrl+C. The NDI runtime and discovery network must be available in the same environment as the command. See NDI input and output. There is no discovery command for DeckLink devices; see Select the device.
For control-plane operation and environment variables, see Managed mode.