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.
What you need
Section titled “What you need”-
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.
Build it
Section titled “Build it”Grab the code, build the panel first so it gets baked into the binary, then build the server:
git clone https://github.com/MiuStudioDevs/nyquist.gitcd nyquistcd web && npm ci && npm run build && cd ..cargo build --release./target/release/nyquist --versionSkipped the panel? Everything else still works, the panel page just reminds you to build it.
Fire it up
Section titled “Fire it up”./target/release/nyquist runNyquist 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].
Create your admin
Section titled “Create your admin”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 accountOpen 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.
Create your first stream
Section titled “Create your first stream”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.
Send some video
Section titled “Send some video”With OBS
Section titled “With OBS”- Open Settings, then Stream.
- Set Service to Custom.
- Set Server to
rtmp://localhost/live. - Set Stream Key to
demo?password=YOUR_PASSWORD, with the password from the stream page. - Hit Start Streaming.
With FFmpeg
Section titled “With FFmpeg”No camera handy? FFmpeg can make up a test pattern with a beep:
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.
Watch it
Section titled “Watch it”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:
ffplay http://localhost:8080/live/demo/index.m3u8What’s next
Section titled “What’s next”- 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.