Command Line
Outpace is one executable with three commands. Daemon behaviour is configured with OUTPACE_*
environment variables, not flags; see Configuration and the
A–Z list.
outpace [serve] run the daemon (the default)
outpace play [--vod] [--peer IP:PORT]... <input>
outpace broadcast [--public-host HOST] <name>
outpace --version | --help | <command> --help
outpace serve
Runs the daemon:
- the HTTP API on
OUTPACE_BIND; - RTMP ingest on
OUTPACE_RTMP_BIND; - SRT ingest, if configured and built in;
- the peer services that are enabled.
It takes no flags. Running outpace with no command does the same.
At startup it prints, for example:
outpace: RTMP ingest listening on rtmp://127.0.0.1:1935/live/<name>
outpace: listening on http://127.0.0.1:6878 networks=["ace"]
If any setting is invalid, it exits with an error before opening a listener. It stops cleanly
on SIGTERM or Ctrl+C; see Deployment.
outpace play
Plays one stream to standard output without starting the HTTP API. Progress and errors go to standard error, so piping and redirecting are safe.
outpace play acestream://0123456789abcdef0123456789abcdef01234567 | mpv -
outpace play acestream://0123456789abcdef0123456789abcdef01234567 > live.ts
outpace play --vod acestream://0123456789abcdef0123456789abcdef01234567 > movie.mp4
| Flag | Meaning |
|---|---|
--vod | Treat the input as a single-file VOD. Every piece is checked against its hash before it is written, and the command exits when the file is complete. |
--peer IP:PORT | An extra IPv4 bootstrap peer. Repeat it for several. In private mode it must be in the allowlist. |
Accepted inputs
| Form | Meaning |
|---|---|
acestream://<content-id> | A content id (40 hex characters). The only option accepted after ? is index=0. |
acestream:?content_id=<id> | The same, in query form. |
acestream:?infohash=<hash> | An infohash. It needs a verified descriptor from the catalog. |
acestream:?url=<encoded URL> | A transport-file URL. Percent-encode its own query, e.g. %26 for &. |
acestream:?magnet=<encoded magnet> | A BitTorrent v1 magnet, reduced to its infohash. |
https://host/path.acelive?a=1&b=2 | A transport-file URL given directly. Use this form when the URL has its own & query. |
magnet:?xt=urn:btih:<hash> | A v1 magnet (40 hex or 32 base32 characters). urn:btmh: (v2) isn't supported. |
local:<alias> | A local descriptor in private peer mode. |
Rules for these inputs:
-
When an
acestream:?link carries several selectors, the first present wins:content_id, theninfohash, thenurl, thenmagnet. -
Transport-file URLs are fetched over HTTP(S) with a 1 MiB limit, no redirects, and a time limit. Private and loopback hosts are refused unless
OUTPACE_ALLOW_NON_GLOBAL_TRANSPORT=1. -
The
acestream://link of a broadcast made by another Outpace daemon needsOUTPACE_BEP9_CONTENT_ID_FALLBACK=1, unless you play its catalog link instead (see registering with the catalog). -
playrejects duplicate query keys and the file-selection options_idxandstream_id.
How play behaves
- It reads the same
OUTPACE_*environment asserve: data directory and identity, buffering, recovery, seeding, private peers and the outbound proxy. It never opens a listener, and never announces itself. - It writes
outpace play: <input>and the resolved id to standard error. Remove these lines before you share logs; see Troubleshooting. - A live stream runs until you stop it (Ctrl+C) or the reader closes the pipe.
- It exits non-zero if the input can't be resolved or played.
outpace broadcast
Creates the named broadcast, or resumes it, then runs the normal daemon so you can feed it.
outpace broadcast my-channel
outpace broadcast my-channel --public-host stream.example.com
| Argument | Meaning |
|---|---|
<name> | 1–64 ASCII letters, digits, ., _ or -. Not . or ... |
--public-host HOST | Host name or address used in the printed URLs. Defaults to the bind address. |
On standard error it prints:
- the raw HTTP ingest URL,
http://<host>:<port>/broadcast/<name>; - the RTMP ingest URL,
rtmp://<host>:<port>/live/<name>; - the broadcast's
acestream://link (the descriptor hash); - with
OUTPACE_BROADCAST_CATALOG_REGISTER=1, a note that the catalog link follows in the log once registration succeeds.
The command:
- always turns inbound peer serving on, because a broadcast needs it;
- refuses to run in private peer mode, or with
OUTPACE_PROXY_MODE=on(see Outbound Proxy); - applies the name's profile from
OUTPACE_BROADCAST_OPTIONS, if there is one.
outpace service (Windows)
This command exists only in Windows builds:
| Command | What it does |
|---|---|
outpace service install | Registers the automatic-start outpace service, running as its own NT SERVICE\outpace account, and creates its private data directory. It doesn't start the service. Needs an elevated prompt. |
outpace service uninstall | Stops the service if it's running, then removes it. Needs an elevated prompt. |
outpace service run | The entry point the Service Control Manager starts. Not for running by hand. |
See Deployment for settings, data and logs.
outpace healthcheck
Checks that a running daemon answers /healthz,
then exits 0 if it does and 1 if it doesn't. Use it for container and service health checks
on systems without curl, such as the minimal image.
outpace healthcheck # probes OUTPACE_BIND, else 127.0.0.1:6878
outpace healthcheck --addr 127.0.0.1:7000 --timeout 5
| Option | Meaning |
|---|---|
--addr IP:PORT | The HTTP API to probe. Defaults to OUTPACE_BIND. A wildcard bind (0.0.0.0 or [::]) is probed on loopback. |
--timeout SECONDS | How long to wait for the connection and the response. Default 3. |
It reads no other settings and doesn't start anything.
--version and --help
outpace --version # e.g. "outpace 1.2.1"
outpace --help
outpace play --help
edge builds report the workspace version at their source commit, which can be the upcoming
release's; see
Releases and Versions.
In a container
The image's entry point is outpace and its default command is serve, so arguments go after
the image name:
docker run --rm ghcr.io/outpace-stream/outpace-engine:1.2.1 --version
docker run --rm -v outpace-data:/var/lib/outpace ghcr.io/outpace-stream/outpace-engine:1.2.1 \
play acestream://0123456789abcdef0123456789abcdef01234567 > live.ts
docker run -d -p 127.0.0.1:6878:6878 -p 127.0.0.1:1935:1935 -p 8621:8621/tcp \
-v outpace-data:/var/lib/outpace ghcr.io/outpace-stream/outpace-engine:1.2.1 broadcast my-channel
Related pages
These pages are generated from docs/wiki/ in the main repository and published both as the GitHub wiki and as the documentation site. To fix or improve a page, open a pull request there; both are republished automatically when it merges, and edits made in the wiki web UI are overwritten.