Choose and test your playback format
Use WebRTC for interactive viewing, HLS for segmented playback, or optional DASH for a player that needs it. This guide covers the server controls released in CreekX 2026.11.17. Settings apply to the server, not one stream.
On this page
1. Start with one working source
Follow the OBS guide or the camera guide. Confirm the source is live, then open its watch link on a second device. Keep this stream as your test while changing delivery settings.
Check the video codec, audio codec, resolution, frame rate and keyframe interval. A protocol change cannot make an unsupported codec playable on every browser. Read the codec checklist.
2. Choose the HLS preset
The default is low-latency. A server administrator edits
/etc/creekx/creekx.env on a standard Ubuntu installation. Back up the file
first, preserve existing settings and edit only the relevant entries. Older installations
may retain the compatible /etc/perpetua/perpetua.env path.
| Preset | Output | What to check |
|---|---|---|
low-latency |
Fragmented MP4 with partial segments | Player support, proxy timeouts and startup time |
balanced |
Ordinary fragmented MP4 HLS | Player compatibility and segment availability |
compatibility |
MPEG-TS HLS | The actual target player and its buffer |
CREEKX_HLS_PRESET=balanced
This is an example, not a recommendation to replace the default on every server.
3. Change timing only when the test calls for it
| Setting | Default | Accepted values |
|---|---|---|
CREEKX_HLS_SEGMENT_COUNT |
7 | 3–30 |
CREEKX_HLS_SEGMENT_DURATION_MS |
1000 for low-latency; otherwise 2000 | 500–10000 milliseconds |
CREEKX_HLS_PART_DURATION_MS |
200 | 100 up to the configured segment duration |
CREEKX_HLS_CLOSE_AFTER_MS |
60000 | At least three segments plus one part; at most 600000 |
Actual segment boundaries depend on source keyframes. Part duration matters to low-latency HLS. Idle cleanup stops an unused HLS muxer; it does not set camera-recording retention. A smaller number is not automatically a better setting.
4. Restart during a maintenance window
Restarting can interrupt live sessions. On the standard installation, run:
sudo systemctl restart creekx
sudo creekx status
Wait for the source to return, then repeat playback from a second device. If startup fails, restore the previous environment settings and restart again. For a split-role installation, update the configuration and restart the processes that own the affected media service.
5. Enable DASH only if your player needs it
CREEKX_DASH=on
Restart the API after enabling it. Use the same watch code or playback token as your active stream, with this API path:
https://video.example.com/v1/watch/STREAM_ID/WATCH_CODE/dash/index.mpd
Replace the placeholders locally. The URL is a credential: do not paste private links into public tickets or analytics. Use an authorized DASH player that resolves segment addresses relative to the manifest.
This is standard DASH, not low-latency DASH. It starts an H.264/AAC conversion on demand, using two-second segments and a six-segment manifest window. Each API process allows at most four conversions and removes them after a minute without requests. Conversion consumes CPU; measure your workload before enabling it broadly.
The first request can take up to 15 seconds. A 503 with
Retry-After means the conversion is starting or capacity is full. Every
manifest and segment request still checks the watch credential and viewing rules. This
endpoint supports live streams and channels, not library VOD.
6. Verify access and the viewer experience
- Watch the same source through the selected player on desktop and a phone.
- Measure first-frame time separately from ongoing video delay.
- Check the allowed viewer, an invalid credential and a blocked network.
- Revoke a temporary token and test a fresh connection.
- For DASH, check CPU usage while the conversion runs and confirm idle cleanup after closing the player.
Keep the source, device, network, duration and settings with your results. Do not treat a local test as a promise for every deployment. Next: configure viewer access, check CDN delivery, or measure startup time.