Skip to content

Getting started

This walks you from a fresh checkout to watching a live stream in your browser. It takes a few minutes, most of them waiting for the first build.

  • Linux, or WSL2 if you’re on Windows.

  • Rust. Install it with rustup. The repo has a rust-toolchain.toml, so rustup grabs the right stable version for you.

  • libsrt 1.5 or newer, with its development files. On Debian or Ubuntu that’s:

    Terminal window
    sudo apt install libsrt-openssl-dev pkg-config
  • Node.js (the current LTS) to build the admin panel.

  • FFmpeg or OBS to send a test stream.

Grab the code, build the panel first so it gets baked into the binary, then build the server:

Terminal window
git clone https://github.com/MiuStudioDevs/nyquist.git
cd nyquist
cd web && npm ci && npm run build && cd ..
cargo build --release
./target/release/nyquist --version

Skipped the panel? Everything else still works, the panel page just reminds you to build it.

Terminal window
./target/release/nyquist run

Nyquist looks for nyquist.toml in the folder you run it from and creates an empty one if there isn’t any. Want it somewhere else? Use -c, like nyquist run -c /etc/nyquist/nyquist.toml. An empty file is perfectly fine, every setting has a default.

Out of the box Nyquist listens on port 8080 for the panel, the API and playback, on port 1935 for RTMP and on port 5090 for SRT. You can move them in [server].

There are no default users, passwords or streams, so nobody gets in before you do. Instead, a fresh server prints a one time setup code in its log:

Nyquist isn't set up yet! Open /admin on port 8080 of this server and enter the setup code XXXX-XXXX-XXXX to create your admin account

Open http://localhost:8080/admin, type the code, pick a user name and a password, and you’re in. The code stops working the moment your admin exists.

In the panel, hit New stream, call it live/demo and keep the password it generates for you. The stream page shows everything you need to send video to it.

Streams can have any name you like, and the slash groups them, so live/demo is the stream demo in the group live.

  1. Open Settings, then Stream.
  2. Set Service to Custom.
  3. Set Server to rtmp://localhost/live.
  4. Set Stream Key to demo?password=YOUR_PASSWORD, with the password from the stream page.
  5. Hit Start Streaming.

No camera handy? FFmpeg can make up a test pattern with a beep:

Terminal window
ffmpeg -re -f lavfi -i testsrc2 -f lavfi -i sine -c:v libx264 -g 60 -c:a aac \
-f flv "rtmp://localhost/live/demo?password=YOUR_PASSWORD"

Either way, the stream page in the panel turns live within a second or two.

The stream page plays a live preview right in the panel. To watch it anywhere else, use one of these:

Format URL
HLS http://localhost:8080/live/demo/index.m3u8
LL-HLS http://localhost:8080/live/demo/index.ll.m3u8
DASH http://localhost:8080/live/demo/index.mpd
MPEG-TS http://localhost:8080/live/demo/mpegts

In VLC, pick Media, then Open Network Stream and paste one of them. Or from a terminal:

Terminal window
ffplay http://localhost:8080/live/demo/index.m3u8
  • Streams explains names, titles, passwords and copies.
  • Publishing covers RTMP and SRT in depth, top level streams included.
  • Playback helps you pick a format and a player.
  • Editing the config shows how settings get saved and applied.